-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (32 loc) · 953 Bytes
/
merge-gatekeeper.yml
File metadata and controls
35 lines (32 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: merge-gatekeeper
on:
pull_request:
types:
- opened
- synchronize
- reopened
- auto_merge_enabled # needed for PRs opened via CI workflows without PATs
merge_group:
jobs:
merge-gatekeeper:
runs-on: ubuntu-latest
permissions:
checks: read
statuses: read
steps:
- name: Run Merge Gatekeeper
if: github.event_name != 'merge_group'
uses: upsidr/merge-gatekeeper@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
timeout: 900 # 15-minute timeout, since checks may take 8 minutes to run
interval: 15
- name: Run Merge Gatekeeper in Merge Queue
if: github.event_name == 'merge_group'
uses: upsidr/merge-gatekeeper@v1
with:
ref: ${{github.ref}}
token: ${{ secrets.GITHUB_TOKEN }}
timeout: 900 # 15-minute timeout, since checks may take 8 minutes to run
interval: 15