Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to auto merge PRs #2485

Merged
merged 2 commits into from
Aug 21, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: automerge
on:
pull_request_target:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "JakeChampion/automerge-action@e2f6d39bda"
env:
MERGE_LABELS: ""
MERGE_METHOD: "merge"
MERGE_METHOD_LABELS: "automerge=merge,autosquash=squash"
MERGE_METHOD_LABEL_REQUIRED: "true"
# Will automatically update the head branch with
# base branch changes
# At the moment, it needs to be a separate label
UPDATE_LABELS: "autoupdate"
# This is OK because weaveworksbot only has write permissions
# if it were an admin, it might override the checks/reviews
# see pascalgn/automerge-action#65
GITHUB_TOKEN: "${{ secrets.WEAVEWORKSBOT_TOKEN }}"