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