|
3 | 3 | issues: |
4 | 4 | types: [labeled] |
5 | 5 |
|
6 | | -env: |
7 | | - MY_GITHUB_TOKEN: ${{ secrets.PAT }} |
8 | | - |
9 | 6 | jobs: |
10 | 7 | assign: |
11 | 8 | runs-on: ubuntu-latest |
12 | 9 | steps: |
13 | | - - name: Maintenance Issues |
14 | | - uses: srggrs/assign-one-project-github-action@1.2.0 |
15 | | - if: | |
16 | | - contains(github.event.issue.labels.*.name, 'bug') || |
17 | | - contains(github.event.issue.labels.*.name, 'performance') || |
18 | | - contains(github.event.issue.labels.*.name, 'question') |
19 | | - with: |
20 | | - project: 'https://github.com/orgs/CyclopsMC/projects/1' |
21 | | - column_name: 'To Do' |
22 | | - - name: Feature Optional |
23 | | - uses: srggrs/assign-one-project-github-action@1.2.0 |
24 | | - if: | |
25 | | - contains(github.event.issue.labels.*.name, 'feature-long-term') |
26 | | - with: |
27 | | - project: 'https://github.com/orgs/CyclopsMC/projects/2' |
28 | | - column_name: 'Options' |
29 | | - - name: Feature Accepted |
30 | | - uses: srggrs/assign-one-project-github-action@1.2.0 |
31 | | - if: | |
32 | | - contains(github.event.issue.labels.*.name, 'feature') |
33 | | - with: |
34 | | - project: 'https://github.com/orgs/CyclopsMC/projects/2' |
35 | | - column_name: 'Accepted (To Do)' |
36 | | - - name: More Information Needed |
37 | | - uses: srggrs/assign-one-project-github-action@1.2.0 |
38 | | - if: | |
39 | | - contains(github.event.issue.labels.*.name, 'more-information-needed') |
40 | | - with: |
41 | | - project: 'https://github.com/orgs/CyclopsMC/projects/1' |
42 | | - column_name: 'On hold (awaiting input)' |
| 10 | + - name: Maintenance Issues |
| 11 | + id: add-project-maintenance |
| 12 | + uses: actions/add-to-project@v1.0.1 |
| 13 | + with: |
| 14 | + project-url: https://github.com/orgs/CyclopsMC/projects/3 |
| 15 | + github-token: ${{ secrets.PAT }} |
| 16 | + labeled: bug, performance, question, more-information-needed |
| 17 | + label-operator: OR |
| 18 | + - name: Development Issues |
| 19 | + id: add-project-development |
| 20 | + uses: actions/add-to-project@v1.0.1 |
| 21 | + with: |
| 22 | + project-url: https://github.com/orgs/CyclopsMC/projects/4 |
| 23 | + github-token: ${{ secrets.PAT }} |
| 24 | + labeled: feature-long-term, feature |
| 25 | + label-operator: OR |
| 26 | + - name: Feature Accepted |
| 27 | + if: | |
| 28 | + contains(github.event.issue.labels.*.name, 'feature') |
| 29 | + uses: titoportas/update-project-fields@v0.1.0 |
| 30 | + with: |
| 31 | + project-url: https://github.com/orgs/CyclopsMC/projects/4 |
| 32 | + github-token: ${{ secrets.PAT }} |
| 33 | + item-id: ${{ steps.add-project-development.outputs.itemId }} |
| 34 | + field-keys: Status |
| 35 | + field-values: 'Accepted (To Do)' |
| 36 | + - name: More Information Needed |
| 37 | + if: | |
| 38 | + contains(github.event.issue.labels.*.name, 'more-information-needed') |
| 39 | + uses: titoportas/update-project-fields@v0.1.0 |
| 40 | + with: |
| 41 | + project-url: https://github.com/orgs/CyclopsMC/projects/3 |
| 42 | + github-token: ${{ secrets.PAT }} |
| 43 | + item-id: ${{ steps.add-project-maintenance.outputs.itemId }} |
| 44 | + field-keys: Status |
| 45 | + field-values: 'On hold (awaiting input)' |
0 commit comments