-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: how to trigger automerge after the checks finish? #170
Q: how to trigger automerge after the checks finish? #170
Comments
Did you have a look at all the events that triggered automerge-action runs? It might be that the build sends the "status" event and not "check_suite" |
I did try to look it up, but I couldn't find a reasonable event. I assumed one by default would use such an even so would know how it's called. Hence, posted here. I will try to add
Seems that status doesn't have any types |
Yes, it doesn't have any types, see the usage example in the README: https://github.com/pascalgn/automerge-action#usage |
thank you so i ended up adding
and just tested, and it merged it! :) Thank you for your help and the auto-merger itself! |
Hi, I think it could be useful to add a comment like: status: {} # necessary to trigger the action after the other checks have been completed in the usage sample. |
For me, # CI.yaml
...
# last step of the CI job
- name: Trigger automerge
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.TOKEN }} # generate a personal access token with `public_repo` scope (write access)
event-type: checks-complete and then explicitly add this event as trigger to the automerge workflow: # automerge.yaml
on:
# trigger when checks complete (manually triggered as final step of CI workflow)
repository_dispatch:
types: [checks-complete] |
Same here. Sometimes it works; other times, it doesn't. Removing and reading the tags triggers the workflow, but the experience is not as smooth as it could be. |
* - https://stackoverflow.com/a/66206183 - pascalgn/automerge-action#170 (comment) * fix * debug log * fix * client-payload
I assumed that check_suite type completed would be the check which runs after all checks passes. Howerver, it happened now twice: if PR reviews happens before the build check passes, then it's not being merged.
My config
Merge not happening after the checks complete
The text was updated successfully, but these errors were encountered: