Repository navigation
Accept WordPress.org usernames in @propsbot add - #315
Merged
obenland merged 2 commits intoNov 12, 2026
Merged
Conversation
`@propsbot add <username>` only took GitHub usernames, so someone who contributed without a GitHub account could not be given props. The username is still looked up on GitHub first. When there is no GitHub user by that name, it is taken as a WordPress.org username and credited like a co-author without a GitHub account, if that account exists. `@propsbot add <username>@git.wordpress.org` adds a WordPress.org user whose username belongs to someone else on GitHub. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
A username alone now stands for both the GitHub user and the WordPress.org user of that name, and `<username>@git.wordpress.org` for the WordPress.org user only, in `add` and in `remove`. Commands are replayed one by one, so a removal is no longer undone by a later command for the other form. - Only fall back to WordPress.org when GitHub has no account by that name, so an organization or a bot is ignored with a warning again. - Keep an added user listed as unlinked when the WordPress.org profile check fails, instead of leaving them out like an unknown account. - Find no contributors when the only one is an added username that does not exist, instead of posting empty lists. - Document that the WordPress.org username is the one in the profile address, and what `remove` covers. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
This was referenced Nov 29, 2026
obenland
added a commit
to obenland/props-bot-action
that referenced
this pull request
Nov 30, 2026
Since WordPress#315, a WordPress.org user added with `@propsbot add` is credited under a `<username>@git.wordpress.org` address generated from the username, and the output carries it as `email`. The docs said `email` came only from commit authors, so a workflow could take the generated address for one a commit author supplied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
What?
@propsbot add <username>and@propsbot remove <username>now also take a WordPress.org username.Why?
The commands only accepted GitHub usernames, so someone who contributed without a GitHub account, for example in a call, on Slack, or on Trac, could not be given props. That is the use case from #87, which #291 listed as a limitation: "Only GitHub usernames can be added."
How?
addstill looks the username up on GitHub first, so nothing changes for names that are GitHub accounts: users are added, linked or not, and organizations and bots are ignored with a warning.@git.wordpress.orgpath as a co-author without a GitHub account, so it is listed once when the same account is already credited, and only if the WordPress.org profile exists.<username>@git.wordpress.orgstands for the WordPress.org user only, in both commands, for when the same username is someone else on GitHub.remove paulfollowed byadd paul@git.wordpress.orgleaves out the GitHub user and credits the WordPress.org one.Known limitation: when a username is one person on GitHub and another on WordPress.org,
@propsbot add <username>picks the GitHub user, even if that account is not linked. The@git.wordpress.orgform is the way to pick the WordPress.org one.This and #311 change the same loop in
src/contribution-collector.js, so whichever is merged second needs a small conflict resolved.Testing Instructions
npm run all: lint, the rebuiltdist/, and the tests pass. New tests cover parsing the two forms, replaying mixed sequences of them in order, the collector crediting added usernames as GitHub users first and WordPress.org users second, the warnings for an organization and an unknown account, a failed profile check, and an unknown account as the only contributor.@propsbot add <a GitHub username>: listed as before, linked or unlinked.@propsbot add <a WordPress.org username that is not on GitHub>: listed in the props by that username.@propsbot add <a name that is on neither>: left out, with a warning in the run log.@propsbot add <username>@git.wordpress.orgfor a name that is someone else on GitHub: the WordPress.org user is listed, and the GitHub user is not mentioned.@propsbot remove <username>@git.wordpress.orgfor the user from step 4, and@propsbot remove <username>for the user from step 2: no longer listed.See #87, #291.
🤖 Generated with Claude Code