-
Notifications
You must be signed in to change notification settings - Fork 41
119 lines (110 loc) · 4.82 KB
/
add-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Add issues to GitHub projects
on:
issues:
types:
- labeled
jobs:
add-to-docs-handbook-project:
name: Add Docs handbook issues to Docs handbook project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, 'contributor documentation')
with:
# https://github.com/marketplace/actions/add-to-github-projects
project-url: https://github.com/orgs/WordPress/projects/43/views/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: contributor documentation
# In case there is more than one label, use operators
# label-operator: AND
add-to-advanced-administration-project:
name: Add Advanced administration handbook issues to Advanced administration handbook project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, 'advanced administration')
with:
# https://github.com/marketplace/actions/add-to-github-projects
project-url: https://github.com/orgs/WordPress/projects/47/views/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: advanced administration
# In case there is more than one label, use operators
# label-operator: AND
add-to-end-user-project:
name: Add End-user issues to End-user Docs project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, 'HelpHub feedback') && contains(github.event.issue.labels.*.name, 'user documentation (HelpHub)')
with:
# https://github.com/marketplace/actions/add-to-github-projects
project-url: https://github.com/orgs/WordPress/projects/90/views/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: HelpHub feedback, user documentation (HelpHub)
# In case there is more than one label, use operators
label-operator: AND
add-to-wp-6-1-project:
name: Add 6.1 issues to 6.1 Docs project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, '6.1')
with:
# https://github.com/marketplace/actions/add-to-github-projects
project-url: https://github.com/orgs/WordPress/projects/45/views/1
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: 6.1
# In case there is more than one label, use operators
# label-operator: OR
add-to-wp-6-3-project:
name: Add WP 6.3 Issue(s) to WP 6.3 Documentation project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, '6.3')
# https://github.com/marketplace/actions/add-to-github-projects
with:
project-url: https://github.com/orgs/WordPress/projects/108
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: 6.3
# In case there is more than one label, use operators
# label-operator: AND
add-to-wp-6-4-project:
name: Add WP 6.4 Issue(s) to WP 6.4 Documentation project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, '6.4')
# https://github.com/marketplace/actions/add-to-github-projects
with:
project-url: https://github.com/orgs/WordPress/projects/141
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: 6.4
# In case there is more than one label, use operators
# label-operator: AND
add-to-wp-6-5-project:
name: Add WP 6.5 Issue(s) to WP 6.5 Documentation project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, '6.5')
# https://github.com/marketplace/actions/add-to-github-projects
with:
project-url: https://github.com/orgs/WordPress/projects/154
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: 6.5
# In case there is more than one label, use operators
# label-operator: AND
add-to-wp-6-7-project:
name: Add WP 6.7 Issue(s) to WP 6.7 Documentation project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
if: contains(github.event.issue.labels.*.name, '6.7')
# https://github.com/marketplace/actions/add-to-github-projects
with:
project-url: https://github.com/orgs/WordPress/projects/223
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: 6.7
# In case there is more than one label, use operators
# label-operator: AND