-
-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (44 loc) · 1.64 KB
/
issue-label-to-project-board.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
name: "Add labeled issues to project board"
on:
issues:
types: [labeled]
jobs:
assign:
runs-on: ubuntu-latest
steps:
- name: Maintenance Issues
id: add-project-maintenance
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/CyclopsMC/projects/3
github-token: ${{ secrets.PAT }}
labeled: bug, performance, question, more-information-needed
label-operator: OR
- name: Development Issues
id: add-project-development
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/CyclopsMC/projects/4
github-token: ${{ secrets.PAT }}
labeled: feature-long-term, feature
label-operator: OR
- name: Feature Accepted
if: |
contains(github.event.issue.labels.*.name, 'feature')
uses: titoportas/[email protected]
with:
project-url: https://github.com/orgs/CyclopsMC/projects/4
github-token: ${{ secrets.PAT }}
item-id: ${{ steps.add-project-development.outputs.itemId }}
field-keys: Status
field-values: 'Accepted (To Do)'
- name: More Information Needed
if: |
contains(github.event.issue.labels.*.name, 'more-information-needed')
uses: titoportas/[email protected]
with:
project-url: https://github.com/orgs/CyclopsMC/projects/3
github-token: ${{ secrets.PAT }}
item-id: ${{ steps.add-project-maintenance.outputs.itemId }}
field-keys: Status
field-values: 'On hold (awaiting input)'