Skip to content

Run GitHub Actions for specific number of approvals #26878

Answered by BrightRan
uditgaurav asked this question in Actions
Discussion options

You must be logged in to vote

@uditgaurav ,

According to the introduction from the README of the action “pascalgn/automerge-action”, the action will automatically check if the required number of review approvals has been reached. If the number is not reached, it will not merge the PR.

In addition, the event you set for the workflow is not the right. You should set the events that are related to pull request, such as “pull_request”, “pull_request_review”, “pull_request_review_comment” or “pull_request_target”.
In your case, the “pull_request_review” event should be the suitable.

About the second question, you can try to set the “Branch protection rules” for target branch of the PR.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants