forked from pingcap/docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.27 KB
/
assign-to-project.yml
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
36
37
38
39
name: Assign to Project
on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to Project
steps:
- name: Assign NEW issues to Docs SIG project
uses: srggrs/[email protected]
if: |
github.event_name == 'issues' &&
github.event.action == 'opened'
with:
project: 'https://github.com/pingcap/docs-cn/projects/1'
column_name: 'Issue: Backlog'
- name: Assign NEW pull requests to Docs SIG project
uses: srggrs/[email protected]
if: |
github.event_name == 'pull_request' &&
github.event.action == 'opened'
with:
project: 'https://github.com/pingcap/docs-cn/projects/1'
column_name: 'PR: In Progress'
- name: Assign issues or PRs with translation-welcome label
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'translation/welcome') ||
contains(github.event.pull_request.labels.*.name, 'translation/welcome')
with:
project: 'https://github.com/pingcap/docs-cn/projects/2'
column_name: 'To do'