Ability to automatically merge a pull request
Assignees must use one of the approval phrases (Approve, Approved, LGTM, Looks good to me - case insensitive).
Note If others comment with one of the approval phrases, it will not count as approval
Since GitHub API support for pull request reviews API - the lookup will first search the API and only then for comments.
Note Approvals can only be read by API or comments. Mixing both approvals from API and comments is not supported.
None
strategy
(optional) - which strategy to use when merging. can bemerge
,squash
orrebase
(default:merge
)require
(optional) - the number of approvals required (default: 0 meaning require all assignees to approve)label
(optional) - label the issue instead of merging (dry-run)
rules:
example:
automerge:
require: 2
strategy: squash
or
rules:
example:
automerge:
label: approved