Merge pull request action.
github token.
actions trigger when these labels are included. (json array string)
merge method.
merge
|| squash
|| rebase
commit title.
commit message.
success
|| failure
|| skipped
success: merge successful.
failure: merge failed. (see action log)
skipped: label unmatch.
name: auto merge action
on:
pull_request_review:
types:
- submitted
jobs:
autoMerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: buildsville/simple-merge@v1
id: merge
with:
token: ${{ secrets.GITHUB_TOKEN }}
method: 'squash'
labels: '[ "foo", "bar" ]'
title: 'commit title'
message: 'commit message'
- name: result
run: |
echo "result: ${{ steps.merge.outputs.result }}"