Skip to content

Commit 42f40d0

Browse files
authored
Add admin workflow for automatic issue labelling (close #346)
For PR #347 * Add admin workflow for automatic issue labelling (close #346) * Add job to link issues with PRs
1 parent 4a52f26 commit 42f40d0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/admin.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Admin
2+
3+
on:
4+
create:
5+
pull_request:
6+
types:
7+
- opened
8+
branches:
9+
- 'release/**'
10+
push:
11+
branches:
12+
- "release/**"
13+
14+
jobs:
15+
update-labels:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Update issue status labels
22+
uses: snowplow-incubator/labels-helper-action@v1
23+
env:
24+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
26+
link-pr-issue:
27+
runs-on: ubuntu-latest
28+
if: github.event_name == 'pull_request'
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
33+
- name: Match the issue to the PR
34+
uses: snowplow-incubator/pull-request-helper-action@v1
35+
env:
36+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)