Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
Open
Changes from all commits
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
56 changes: 56 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Automerge

on:
pull_request_target:
types:
- assigned
- opened
- labeled
- unlabeled
- synchronize
- edited
- ready_for_review
- review_requested
- reopened
- unlocked
pull_request_review:
types:
- edited
- submitted

jobs:
automerge:
name: Automatically merge pull requests
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')

steps:
- name: Wait for tests
uses: fountainhead/action-wait-for-check@v1.0.0
id: wait-for-tests
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Run dialyzer
ref: ${{ github.head_ref || github.ref }}
intervalSeconds: 60
timeoutSeconds: 3600

- name: Approve PR
uses: hmarr/auto-approve-action@v2
if: steps.wait-for-tests.outputs.conclusion == 'success'
with:
github-token: "${{ secrets.PERSONAL_TOKEN }}"

- name: Merge PR
if: steps.wait-for-tests.outputs.conclusion == 'success'
uses: "pascalgn/automerge-action@v0.13.0"
env:
GITHUB_TOKEN: "${{ secrets.PERSONAL_TOKEN }}"
MERGE_LABELS: '!wip,!work in progress'
MERGE_METHOD: rebase
MERGE_FORKS: false
MERGE_RETRIES: "5"
MERGE_RETRY_SLEEP: "10000"
UPDATE_LABELS: ""
UPDATE_METHOD: "rebase"