2023-04-06 23:19:06 +02:00
|
|
|
name: Update Projects
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- labeled
|
|
|
|
- unlabeled
|
|
|
|
- closed
|
|
|
|
- reopened
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
bugs:
|
|
|
|
if: "github.event_name == 'issues' && contains(github.event.*.labels.*.name, 'type: bug')"
|
|
|
|
concurrency:
|
|
|
|
group: update-bugs-project-${{ github.event.issue.number }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: "authenticate"
|
|
|
|
id: "authenticate"
|
|
|
|
uses: "tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92" # v1
|
|
|
|
with:
|
|
|
|
app_id: "${{ secrets.PROJECTS_APP_ID }}"
|
|
|
|
installation_id: "36153445"
|
|
|
|
private_key: "${{ secrets.PROJECTS_PRIVATE_KEY }}"
|
|
|
|
|
|
|
|
- uses: PaperMC/update-projects-action@v0.2.0
|
|
|
|
name: Update open issue
|
|
|
|
if: github.event.issue.state == 'open'
|
|
|
|
with:
|
|
|
|
github-token: "${{ steps.authenticate.outputs.token }}"
|
|
|
|
project-url: https://github.com/orgs/PaperMC/projects/5/views/2
|
|
|
|
column-field: Status
|
|
|
|
label-to-column-map: |
|
|
|
|
{
|
2024-04-29 22:29:50 +02:00
|
|
|
"resolution: awaiting response": "⌛ Awaiting Response",
|
2024-04-28 21:12:57 +02:00
|
|
|
"resolution: cannot reproduce": "Invalid",
|
|
|
|
"resolution: duplicate": "Invalid",
|
|
|
|
"resolution: incomplete": "Invalid",
|
|
|
|
"resolution: invalid": "Invalid",
|
|
|
|
"resolution: superseded": "Invalid",
|
|
|
|
"resolution: unsupported": "Invalid",
|
|
|
|
"resolution: won't fix": "Invalid",
|
|
|
|
"resolution: works as intended": "Invalid",
|
2023-04-06 23:19:06 +02:00
|
|
|
"status: accepted": "✅ Accepted",
|
|
|
|
"status: blocked": "Needs Work",
|
|
|
|
"status: defer upstream": "Needs Work",
|
2024-04-28 21:12:57 +02:00
|
|
|
"status: in progress": "Needs Work",
|
2023-04-06 23:19:06 +02:00
|
|
|
"status: input wanted": "Needs Work",
|
2024-04-28 21:12:57 +02:00
|
|
|
"status: needs triage": "🕑 Needs Triage",
|
|
|
|
"status: rebase required": "Needs Work",
|
|
|
|
"status: unlikely": "✅ Accepted"
|
2023-04-06 23:19:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
- uses: PaperMC/update-projects-action@v0.2.0
|
|
|
|
name: Update closed issue
|
|
|
|
if: github.event.issue.state == 'closed'
|
|
|
|
with:
|
|
|
|
github-token: "${{ steps.authenticate.outputs.token }}"
|
|
|
|
project-url: https://github.com/orgs/PaperMC/projects/5/views/2
|
|
|
|
column-field: Status
|
|
|
|
clear-on-no-match: false
|
2023-06-03 19:43:38 +02:00
|
|
|
# include "status: needs triage" below to catch any closed issues without setting a resolution
|
2023-04-06 23:19:06 +02:00
|
|
|
label-to-column-map: |
|
|
|
|
{
|
|
|
|
"resolution: cannot reproduce": "Invalid",
|
2024-04-28 21:12:57 +02:00
|
|
|
"resolution: duplicate": "Invalid",
|
2023-04-06 23:19:06 +02:00
|
|
|
"resolution: incomplete": "Invalid",
|
2024-04-28 21:12:57 +02:00
|
|
|
"resolution: invalid": "Invalid",
|
|
|
|
"resolution: superseded": "Invalid",
|
|
|
|
"resolution: unsupported": "Invalid",
|
|
|
|
"resolution: won't fix": "Invalid",
|
|
|
|
"resolution: works as intended": "Invalid",
|
|
|
|
"status: accepted": "Done",
|
2024-04-30 15:56:43 +02:00
|
|
|
"status: needs triage": "Invalid"
|
2023-04-06 23:19:06 +02:00
|
|
|
}
|