This Action will automerge PR once the PR is labeled 'automerge' and the brach protection rules are satisfied if any Read more on JS actions here
Required To be passed via "${{ secrets.GITHUB_TOKEN }}"
.
Check how to add secrets here
The automerge label which the script will be looking for.
Defaults to automerge
The method for merging which the script will be looking for.
Defaults to squash
The label for blocking merge even if it is good to merge.
Defaults to squash
name: automerge
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
status: {}
jobs:
automerge:
runs-on: self-hosted
name: automerge-bot
steps:
- name: automerge
uses: "Instawork/automerge-action-js@master"
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
AUTOMERGE: automerge
MERGE_METHOD: squash
env:
ACTIONS_STEP_DEBUG: true