imperialCHEPI / healthgps

Global Health Policy Simulation model (Health-GPS)
https://imperialchepi.github.io/healthgps/
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Fix automerge workflow: use PR author not GitHub actor #444

Closed alexdewar closed 2 weeks ago

alexdewar commented 2 weeks ago

Currently auto-merge is being automatically enabled for some non-bot PRs.

@AdrianDAlessandro has pointed out that this is because the pre-commit workflow is automatically pushing fixes to our PRs and, in that case, the last committer (the "GitHub actor") will be the pre-commit bot, so this workflow is being erroneously activated.

It seems like the right way to fix this is to use the PR's author instead: https://github.com/orgs/community/discussions/25502

Fixes #443.

alexdewar commented 2 weeks ago

@jamesturner246 Yep, exactly.