WordPress / props-bot-action

A GitHub Action for compiling a list of contributor props.
Other
11 stars 3 forks source link

"co-authored-by" tags in commits are ignored when collecting props #86

Open jrfnl opened 6 months ago

jrfnl commented 6 months ago

Description

Given:

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

desrosj commented 6 months ago

Thanks for this @jrfnl!

Some rough thoughts on this:

I think parsing commit messages and including any trailers for SVN is a good first step here. The Git aspects need more feedback.

jeffpaul commented 6 months ago

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.

jrfnl commented 6 months ago

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.