Skip to content

Commit

Permalink
Add automerge (#8214)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c authored Apr 8, 2024
1 parent fc7b60e commit f2f3814
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Automerge

env:
MERGE_METHOD: 'squash'
MERGE_RETRY_SLEEP: 300000

on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
check_suite:
types:
- completed
status: {}

jobs:
automerge:
name: Automerge if requested
runs-on: ubuntu-latest
env:
IS_POSTHOG_BOT_AVAILABLE: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN != '' }}
steps:
- name: Automerge
if: env.IS_POSTHOG_BOT_AVAILABLE == 'true'
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
- run: echo

0 comments on commit f2f3814

Please sign in to comment.