Skip to content

Commit 2180a67

Browse files
authored
Add automerge (#89)
1 parent 02242f5 commit 2180a67

File tree

2 files changed

+42
-34
lines changed

2 files changed

+42
-34
lines changed

.github/workflows/automerge.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: automerge
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- opened
10+
- edited
11+
- ready_for_review
12+
- reopened
13+
- unlocked
14+
pull_request_review:
15+
types:
16+
- submitted
17+
check_suite:
18+
types:
19+
- completed
20+
status: {}
21+
22+
jobs:
23+
automerge:
24+
runs-on: ubuntu-latest
25+
if: >
26+
contains(github.event.pull_request.labels.*.name, 'gate')
27+
environment: github
28+
steps:
29+
- name: Create GitHub App Token
30+
id: app-token
31+
uses: actions/create-github-app-token@v1
32+
with:
33+
app-id: ${{ secrets.APP_ID }}
34+
private-key: ${{ secrets.APP_KEY }}
35+
36+
- id: automerge
37+
name: automerge
38+
uses: pascalgn/[email protected]
39+
env:
40+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
41+
MERGE_LABELS: "gate"
42+
MERGE_METHOD: "squash"

zuul.yaml

-34
This file was deleted.

0 commit comments

Comments
 (0)