2022-07-01 08:33:10 +00:00
|
|
|
name: Update GH projects
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- labeled
|
|
|
|
|
2022-10-08 08:13:34 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-07-01 08:33:10 +00:00
|
|
|
jobs:
|
|
|
|
add-to-project:
|
2022-08-30 18:12:55 +00:00
|
|
|
name: Add issues to projects
|
2022-07-01 08:33:10 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-14 09:01:10 +00:00
|
|
|
timeout-minutes: 10
|
2022-08-30 18:12:55 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# if an issue has any of these labels, it will be added
|
|
|
|
# to the corresponding project
|
|
|
|
- { project: 2, label: "release-blocker, deferred-blocker" }
|
2022-10-03 23:45:18 +00:00
|
|
|
- { project: 32, label: sprint }
|
2023-04-14 09:01:10 +00:00
|
|
|
|
2022-07-01 08:33:10 +00:00
|
|
|
steps:
|
2024-04-01 09:54:33 +00:00
|
|
|
- uses: actions/add-to-project@v1.0.0
|
2022-07-01 08:33:10 +00:00
|
|
|
with:
|
2022-08-30 18:12:55 +00:00
|
|
|
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
|
2022-07-01 08:33:10 +00:00
|
|
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
2022-08-30 18:12:55 +00:00
|
|
|
labeled: ${{ matrix.label }}
|