Repository navigation
Warn, naming the cause, when a merged contributor is not credited - #325
Merged
Merged
Conversation
The merge-triggered contributor run failed whenever the PR's author was absent from /stats/contributors, on the theory that the stats were cached from before the merge. For lazzurs it was never the cache: every one of their commits is authored from an address that is not on their GitHub account, so GitHub links none of them, they are absent from every run including the weekly one, and each merge of theirs (#315, #320, #321) produced a red run that a rerun could not fix. The failure also skipped the step that opens the pull request. It is now a ::warning:: annotation and the script exits 0. To word it, linked_commits() asks GitHub how many of their non-merge commits on the default branch are linked to the account (merges are left out because the stats endpoint leaves them out, while a web-interface merge is linked): zero names the commit email and how to fix it, more than zero names the stale cache, and a failed lookup names both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parawanderer
temporarily deployed
to
Android Build
November 28, 2026 11:00 — with
GitHub Actions
Inactive
parawanderer
temporarily deployed
to
Android Build
November 28, 2026 11:00 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Update contributorsfailed on the merges of #315, #320 and #321 (46129851532 and two others) with "lazzurs is not in the list this run generated", blamed on GitHub's stats cache. The cause was different: every non-merge commit by @lazzurs is authored from an address GitHub does not link to their account (author.loginis null on all 23), and/stats/contributorsonly counts linked commits. They were absent from every run, the weekly one included, so a rerun could not fix it. The only linked commit is their web merge of #315, which/contributors(the repo sidebar) counts and/stats/contributorsdoes not.Change
scripts/fetch_contributors.py: an absent--expect-contributoris a::warning title=Not credited::annotation and exit 0, no longer exit 1. A failed run also skipped "Open a PR if anything changed".linked_commits(login)counts that login's non-merge commits on the default branch via/repos/{repo}/commits?author=, andwhy_missingwords the warning from it: 0 names the commit email and Settings > Emails, more than 0 names the stale cache, a failed lookup names both.update-contributors.yml: the comment explaining the flag now describes a warning.Tests
scripts/test/test_fetch_contributors.py, 6 new: each wording ofwhy_missing; a merge commit does not count as linked; a failed lookup returnsNoneinstead of raising;mainwith an absent expected login exits 0 and prints the annotation. Withreturn 1put back, the last one fails.Verified
linked_commitsagainst the live API:lazzurs0,ubrt50.Not verified
workflow_dispatch, which passes no expected login.🤖 Generated with Claude Code