|
1 | | -name: Add issue to the appropriate project |
| 1 | +name: Automate issue labels & projects |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | issues: |
5 | 5 | types: [opened] |
6 | 6 |
|
7 | 7 | jobs: |
| 8 | + add-os-label: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: Add Windows label |
| 12 | + if: contains(github.event.issue.body, '[x] Windows') |
| 13 | + uses: jeffdanielperso/[email protected] |
| 14 | + with: |
| 15 | + labels-add: os:windows |
| 16 | + - name: Add Linux label |
| 17 | + if: contains(github.event.issue.body, '[x] Linux') |
| 18 | + uses: jeffdanielperso/[email protected] |
| 19 | + with: |
| 20 | + labels-add: os:linux |
| 21 | + - name: Add macOS label |
| 22 | + if: contains(github.event.issue.body, '[x] macOS') |
| 23 | + uses: jeffdanielperso/[email protected] |
| 24 | + with: |
| 25 | + labels-add: os:macos |
| 26 | + |
8 | 27 | add-to-project: |
9 | 28 | runs-on: ubuntu-latest |
10 | 29 | steps: |
11 | 30 | - name: Add to Clipshot project |
12 | | - if: | |
13 | | - contains(github.event.issue.body, '[x] `clipshot.lua`') |
14 | | - |
| 31 | + if: contains(github.event.issue.body, '`clipshot.lua`') |
| 32 | + uses: jeffdanielperso/[email protected] |
15 | 33 | with: |
16 | | - project: Clipshot |
17 | | - column: To do |
18 | | - repo-token: ${{secrets.GITHUB_TOKEN}} |
19 | | - |
| 34 | + project-name: Clipshot |
| 35 | + project-column: To do |
20 | 36 | - name: Add to Misc project |
21 | | - if: | |
22 | | - contains(github.event.issue.body, '[x] `misc.lua`') |
23 | | - |
| 37 | + if: contains(github.event.issue.body, '`misc.lua`') |
| 38 | + uses: jeffdanielperso/[email protected] |
24 | 39 | with: |
25 | | - project: Misc |
26 | | - column: To do |
27 | | - repo-token: ${{secrets.GITHUB_TOKEN}} |
28 | | - |
| 40 | + project-name: Misc |
| 41 | + project-column: To do |
| 42 | + project-scope: repository |
29 | 43 | - name: Add to Open Dialog (KDialog) project |
30 | | - if: | |
31 | | - contains(github.event.issue.body, '[x] `open-dialog/kdialog.lua`') |
32 | | - |
| 44 | + if: contains(github.event.issue.body, '`open-dialog/kdialog.lua`') |
| 45 | + uses: jeffdanielperso/[email protected] |
33 | 46 | with: |
34 | | - project: Open Dialog (KDialog) |
35 | | - column: To do |
36 | | - repo-token: ${{secrets.GITHUB_TOKEN}} |
37 | | - |
| 47 | + project-name: Open Dialog (KDialog) |
| 48 | + project-column: To do |
| 49 | + project-scope: repository |
38 | 50 | - name: Add to Open Dialog (Zenity) project |
39 | | - if: | |
40 | | - contains(github.event.issue.body, '[x] `open-dialog/zenity.lua`') |
41 | | - |
| 51 | + if: contains(github.event.issue.body, '`open-dialog/zenity.lua`') |
| 52 | + uses: jeffdanielperso/[email protected] |
42 | 53 | with: |
43 | | - project: Open Dialog (Zenity) |
44 | | - column: To do |
45 | | - repo-token: ${{secrets.GITHUB_TOKEN}} |
46 | | - |
| 54 | + project-name: Open Dialog (Zenity) |
| 55 | + project-column: To do |
| 56 | + project-scope: repository |
47 | 57 | - name: Add to Open Dialog (PowerShell) project |
48 | | - if: | |
49 | | - contains(github.event.issue.body, '[x] `open-dialog/powershell.lua`') |
50 | | - |
| 58 | + if: contains(github.event.issue.body, '`open-dialog/powershell.lua`') |
| 59 | + uses: jeffdanielperso/[email protected] |
51 | 60 | with: |
52 | | - project: Open Dialog (PowerShell) |
53 | | - column: To do |
54 | | - repo-token: ${{secrets.GITHUB_TOKEN}} |
55 | | - |
| 61 | + project-name: Open Dialog (PowerShell) |
| 62 | + project-column: To do |
| 63 | + project-scope: repository |
56 | 64 | - name: Add to Discord project |
57 | | - if: | |
58 | | - contains(github.event.issue.body, '[x] `discord.lua`') |
59 | | - |
| 65 | + if: contains(github.event.issue.body, '`discord.lua`') |
| 66 | + uses: jeffdanielperso/[email protected] |
60 | 67 | with: |
61 | | - project: Discord |
62 | | - column: To do |
63 | | - repo-token: ${{secrets.GITHUB_TOKEN}} |
| 68 | + project-name: Discord |
| 69 | + project-column: To do |
| 70 | + project-scope: repository |
0 commit comments