Open jrfnl opened 9 months ago
Thanks for this @jrfnl!
Some rough thoughts on this:
Co-authored-by
trailers in commits are not currently parsed. Thinking this through, it seems that they should be parsed, but only when collecting an list of contributors for SVN because a full list is needed when committing to develop.svn.wordpress.org.Co-authored-by
trailers from those commits. These would be parsed out with any that are added manually.Co-authored-by
trailers to be included at the bottom of a merge commit message, then we'd need to advise maintainers to collect them manually. It does not seem like there is a way to configure GitHub to do this in some way. I think parsing commit messages and including any trailers for SVN is a good first step here. The Git aspects need more feedback.
For cases where the PR will be merged in GitHub, it seems like those co-authors-on-commits would still appear in the gitlog and thus be properly credited. It would be nice to have those co-authors-on-commits gathered and presented in its own listing so that whoever is merging the PR could see that list and perhaps include them in the PR merge commit if they wanted or alternatively if those same accounts are also included in props bot listing then they could be ignored in the merge commit since they'd already be part of the gitlog history.
More importantly, and I think @desrosj gets at this, for cases where the PR is not merged into GitHub and is instead committed to SVN, then having those co-authors-on-commits referenced by the props bot for the SVN listing would be desired to ensure those folks are not missed on the SVN commit.
for cases where the PR is not merged into GitHub and is instead committed to SVN, then having those co-authors-on-commits referenced by the props bot for the SVN listing would be desired to ensure those folks are not missed on the SVN commit.
That is exactly the usecase for which I opened the issue.
Description
Given:
Co-authored-by:
tags.Co-authored-by:
tags follow the format as proscribed in the attribution page, i.e.Co-authored-by: githubusername <dotorgusername@git.wordpress.org>
I'd expect:
The props bot to include those people being acknowledged as co-authors to be included in the props list.
Instead this happened:
Only the committer is included in the props list, co-authors are ignored by the bot.
Version
v1
Workflow file
https://github.com/WordPress/wordpress-develop/blob/trunk/.github/workflows/props-bot.yml
Link
https://github.com/WordPress/wordpress-develop/pull/6235