This action will automatically merge an open Pull request if all the
tests have passed and the label automerge
is set in the PR.
- name: automerge
uses: mhristof/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Name | Description | Default | Required |
---|---|---|---|
ASSERT_ACTION_REF | Assert the running version of the action matches the branch name. Used for debug | false | |
GITHUB_TOKEN | Github token for contacting the API | true | |
label | Label of the PR to check for automerge. If label is not set, no action will be taken | automerge | false |
merge_method | Merge method. Valid options are Possible values are "merge", "squash" or "rebase". More details at https://docs.github.com/en/rest/reference/pulls#merge-a-pull-request | squash | false |