ci: purge archived repos and fix date logic in contributor metrics wo… - #2356
Draft
shellyco-code wants to merge 2 commits into
Draft
ci: purge archived repos and fix date logic in contributor metrics wo…#2356shellyco-code wants to merge 2 commits into
shellyco-code wants to merge 2 commits into
Conversation
…rkflow - Remove deprecated/archived repos (flatcar/torcx and flatcar/ign-converter) from REPOSITORY metrics string. - Refactor GNU date calculation to use deterministic month-start calculations. Signed-off-by: shellyco-code <shellyco-code@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2355
This PR cleans up the monthly contributor metrics GitHub Actions workflow (
.github/workflows/issue-pr-contrib-metrics.yaml):flatcar/torcx(superseded bysysext-bakery/systemd-sysext) andflatcar/ign-converterfrom theREPOSITORYmetrics list string to ensure community reports only track active repositories.date -d "last month"with deterministic month-start calculations (date -d "$(date +%Y-%m-01) -1 month") to eliminate date calculation bugs when running workflows on month-end dates.How to use
Reviewers can validate this PR by inspecting
.github/workflows/issue-pr-contrib-metrics.yamland confirming that archived repos are removed from theREPOSITORYstring and bash date logic uses month-start bounds.Testing done
Validated YAML syntax and verified bash date string logic using local git diff inspection.
Verified commit sign-off (
git commit -s).Changelog entries added in the respective
changelog/directory (user-facing change, bug fix, security fix, update)Inspected CI output for image differences:
/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.