Skip to content

Commit

Permalink
Update GH workflow to new project boards
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jun 24, 2024
1 parent 89cef98 commit a478786
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 52 deletions.
32 changes: 16 additions & 16 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
bug:
- '- :bug: Bug'
- '- :bug: Bug'
feature-long-term:
- '- :heavy_plus_sign: Feature request'
- '- :heavy_plus_sign: Feature request'
performance:
- '- :snail: Performance issue'
- '- :snail: Performance issue'
question:
- '- :question: Question'
- '- :question: Question'

mc-1.12:
- 'Minecraft: 1.12'
- 'Minecraft: 1.12'
mc-1.14:
- 'Minecraft: 1.14'
- 'Minecraft: 1.14'
mc-1.15:
- 'Minecraft: 1.15'
- 'Minecraft: 1.15'
mc-1.16:
- 'Minecraft: 1.16'
- 'Minecraft: 1.16'
mc-1.18:
- 'Minecraft: 1.18'
- 'Minecraft: 1.18'
mc-1.19:
- 'Minecraft: 1.19'
- 'Minecraft: 1.19'
mc-1.20:
- 'Minecraft: 1.20'
- 'Minecraft: 1.20'
mc-1.21:
- 'Minecraft: 1.21'
- 'Minecraft: 1.21'
mc-1.22:
- 'Minecraft: 1.22'
- 'Minecraft: 1.22'
mc-1.23:
- 'Minecraft: 1.23'
- 'Minecraft: 1.23'
mc-1.24:
- 'Minecraft: 1.24'
- 'Minecraft: 1.24'
mc-1.25:
- 'Minecraft: 1.25'
- 'Minecraft: 1.25'
4 changes: 2 additions & 2 deletions .github/workflows/close-issues-no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v9
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
stale-issue-label: "more-information-needed"
stale-issue-message: 'This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we do not have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.'
days-before-close: 14
days-before-stale: -1
- uses: actions/stale@v3
- uses: actions/stale@v9
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
only-labels: "invalid-template"
Expand Down
69 changes: 36 additions & 33 deletions .github/workflows/issue-label-to-project-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,43 @@ on:
issues:
types: [labeled]

env:
MY_GITHUB_TOKEN: ${{ secrets.PAT }}

jobs:
assign:
runs-on: ubuntu-latest
steps:
- name: Maintenance Issues
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'bug') ||
contains(github.event.issue.labels.*.name, 'performance') ||
contains(github.event.issue.labels.*.name, 'question')
with:
project: 'https://github.com/orgs/CyclopsMC/projects/1'
column_name: 'To Do'
- name: Feature Optional
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'feature-long-term')
with:
project: 'https://github.com/orgs/CyclopsMC/projects/2'
column_name: 'Options'
- name: Feature Accepted
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'feature')
with:
project: 'https://github.com/orgs/CyclopsMC/projects/2'
column_name: 'Accepted (To Do)'
- name: More Information Needed
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'more-information-needed')
with:
project: 'https://github.com/orgs/CyclopsMC/projects/1'
column_name: 'On hold (awaiting input)'
- 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)'
2 changes: 1 addition & 1 deletion .github/workflows/new-issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.0
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.PAT }}"
configuration-path: .github/labeler.yml
Expand Down

0 comments on commit a478786

Please sign in to comment.