Skip to content

Commit 45fd368

Browse files
ezio-melottihugovk
andauthored
Automatically update more GitHub projects. (#94921)
* Automatically update the `asyncio` GitHub project. * Use a matrix to add issues to projects. * Remove trailing whitespace. Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 0ed7788 commit 45fd368

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/project-updater.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ on:
88

99
jobs:
1010
add-to-project:
11-
name: Add to the Release and Deferred Blocker project
11+
name: Add issues to projects
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
include:
16+
# if an issue has any of these labels, it will be added
17+
# to the corresponding project
18+
- { project: 2, label: "release-blocker, deferred-blocker" }
19+
- { project: 3, label: expert-subinterpreters }
20+
- { project: 29, label: expert-asyncio }
21+
1322
steps:
1423
- uses: actions/[email protected]
1524
with:
16-
project-url: https://github.com/orgs/python/projects/2
25+
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
1726
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
18-
labeled: release-blocker, deferred-blocker
19-
label-operator: OR
27+
labeled: ${{ matrix.label }}

0 commit comments

Comments
 (0)