2022-07-01 10:33:10 +02:00
|
|
|
name: Update GH projects
|
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- labeled
|
|
|
|
|
2022-10-08 10:13:34 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-07-01 10:33:10 +02:00
|
|
|
jobs:
|
|
|
|
add-to-project:
|
2022-08-30 20:12:55 +02:00
|
|
|
name: Add issues to projects
|
2022-07-01 10:33:10 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-14 11:01:10 +02:00
|
|
|
timeout-minutes: 10
|
2022-08-30 20:12:55 +02: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-04 01:45:18 +02:00
|
|
|
- { project: 32, label: sprint }
|
2023-04-14 11:01:10 +02:00
|
|
|
|
2022-07-01 10:33:10 +02:00
|
|
|
steps:
|
2024-04-01 11:54:33 +02:00
|
|
|
- uses: actions/add-to-project@v1.0.0
|
2022-07-01 10:33:10 +02:00
|
|
|
with:
|
2022-08-30 20:12:55 +02:00
|
|
|
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
|
2022-07-01 10:33:10 +02:00
|
|
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
2022-08-30 20:12:55 +02:00
|
|
|
labeled: ${{ matrix.label }}
|