diff --git a/.github/labeler.yml b/.github/labeler.yml index 00234602..abee7df0 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -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' diff --git a/.github/workflows/close-issues-no-response.yml b/.github/workflows/close-issues-no-response.yml index ed85a39c..6dc4dcc5 100644 --- a/.github/workflows/close-issues-no-response.yml +++ b/.github/workflows/close-issues-no-response.yml @@ -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" diff --git a/.github/workflows/issue-label-to-project-board.yml b/.github/workflows/issue-label-to-project-board.yml index 4bd3575f..764c092d 100644 --- a/.github/workflows/issue-label-to-project-board.yml +++ b/.github/workflows/issue-label-to-project-board.yml @@ -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/assign-one-project-github-action@1.2.0 - 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/assign-one-project-github-action@1.2.0 - 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/assign-one-project-github-action@1.2.0 - 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/assign-one-project-github-action@1.2.0 - 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/add-to-project@v1.0.1 + 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/add-to-project@v1.0.1 + 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/update-project-fields@v0.1.0 + 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/update-project-fields@v0.1.0 + 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)' diff --git a/.github/workflows/new-issue-label.yml b/.github/workflows/new-issue-label.yml index 96ca3794..7a9d78f0 100644 --- a/.github/workflows/new-issue-label.yml +++ b/.github/workflows/new-issue-label.yml @@ -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