Repository navigation
Conversation
|
Could you clarify what That address is generated from the WordPress.org username by #315. A release workflow following the README could mistake it for an address supplied by a commit author. The smallest fix looks like documenting both sources in the README and action metadata, then asserting this entry in the existing test. All 42 tests passed on the combined code. |
Workflows that build their own credits, like release notes or a readme's contributor list, had to parse the rendered comment to get at the accounts. The new `contributors` output lists each contributor's GitHub username, commit email when there is no GitHub account, and WordPress.org username. See WordPress#242. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
01a648e to
2b0978e
Compare
|
@lancewillett Thanks, fixed in 2b0978e: the README and action.yml now name both sources, and the existing test asserts that entry. |
See #242.
This is the structured-output half of #242. Workflows that build their own credits, such as release notes or a readme's contributor list, had to parse the rendered comment to get at the accounts. The new
contributorsoutput gives them the list as JSON:[ { "github": "octocat", "email": null, "wporg": "octo" }, { "github": null, "email": "co-author@git.wordpress.org", "wporg": "co-author" }, { "github": null, "email": "someone@example.com", "wporg": null }, { "github": "newcomer", "email": null, "wporg": null } ]@propsbot addandremovecommands are applied.emailis set for contributors without a GitHub account: the address from a commit GitHub can't match to an account, or the<username>@git.wordpress.orgaddress generated for a WordPress.org user added with@propsbot add(Accept WordPress.org usernames in@propsbot add#315).wporgisnullfor anyone without a linked WordPress.org account, matching the comment's unlinked list.Each contributor is listed once, under the first way they contributed, which is how the collector already dedupes them. That's why there are no per-contributor roles, which #242 suggested: adding them would mean changing the collector to keep every role.
The release-aggregation mode from #242 isn't part of this PR.
Testing
fromJSON( steps.<id>.outputs.contributors ).🤖 Generated with Claude Code