Repository navigation
Conversation
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>
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.
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 only for commit authors GitHub can't match to an account.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