Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

fix: fallback increment when GitHub API returns 0 contributors#5

Merged
0x5t4l1n merged 1 commit into
mainfrom
copilot/fix-auto-increment-issue
May 3, 2026
Merged

fix: fallback increment when GitHub API returns 0 contributors#5
0x5t4l1n merged 1 commit into
mainfrom
copilot/fix-auto-increment-issue

Conversation

Copilot AI commented May 3, 2026

Copy link
Copy Markdown
Contributor

auto-increment-contributors.yml silently makes 0 commits when the GitHub contributor API returns empty results (rate limits, network issues), leaving the counter stuck.

Changes

  • Fallback increment: After the main contributor loop, if $ITERATION -eq 0, increment the counter directly as github-actions[bot] and push — guaranteeing at least one counter increment per workflow run
  • Fallback mirrors the same grep/sed/git pullcommitpush pattern already used in the main loop

@0x5t4l1n 0x5t4l1n marked this pull request as ready for review May 3, 2026 06:50
@0x5t4l1n 0x5t4l1n merged commit 3ac3313 into main May 3, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants