Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.04 KB

automerge.md

File metadata and controls

41 lines (29 loc) · 1.04 KB

Automatic Merge

Goal

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

GitHub Users

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.

Requirements

None

Options

  • strategy (optional) - which strategy to use when merging. can be merge, squash or rebase (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)

Example

rules:
    example:
      automerge:
        require: 2
        strategy: squash

or

rules:
    example:
      automerge:
        label: approved