Multiple runs of automerge for each opened PR
Created by: pecigonzalo
We added automerge to deploy-sourcegraph-dot-com to make Renovate PRs merge consistently as Renovate was not able to keep up with the rate of changes.
We have an ongoing issue that automerge seems to be triggered for every opened PR, so on every merge to release we get 20 github-action runs, plus some more.
I have been trying to find the cause of this without much success so I opened a case with GitHub support.
Additional information
-
automergeruns are reported against the latest commit onreleaseand as triggered viastatuschanges. - I checked the
statusesAPI withgh api https://api.github.com/repos/sourcegraph/deploy-sourcegraph-dot-com/commits/SHA/statusesand there are no new status updates that would triggerautomergeruns, but I still see new runs of the action. - I thought this could be the action creating a status update, and triggering itself but:
- I believe github-actions do not trigger for events on themselves to protect against loops, but I dont know if this applies to
statusevents or only to things like commits. - If there were status updates, they should show in the query I shared before, but there are none.
- I believe github-actions do not trigger for events on themselves to protect against loops, but I dont know if this applies to