[Python-checkins] Automatically update more GitHub projects. (#94921)
ezio-melotti
webhook-mailer at python.org
Tue Aug 30 14:13:04 EDT 2022
https://github.com/python/cpython/commit/45fd3685aad90de3be21c8f6eade7b5985629fb8
commit: 45fd3685aad90de3be21c8f6eade7b5985629fb8
branch: main
author: Ezio Melotti <ezio.melotti at gmail.com>
committer: ezio-melotti <ezio.melotti at gmail.com>
date: 2022-08-30T20:12:55+02:00
summary:
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 <hugovk at users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk at users.noreply.github.com>
files:
M .github/workflows/project-updater.yml
diff --git a/.github/workflows/project-updater.yml b/.github/workflows/project-updater.yml
index 716ed7841fea..ea98700e7fae 100644
--- a/.github/workflows/project-updater.yml
+++ b/.github/workflows/project-updater.yml
@@ -8,12 +8,20 @@ on:
jobs:
add-to-project:
- name: Add to the Release and Deferred Blocker project
+ name: Add issues to projects
runs-on: ubuntu-latest
+ 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" }
+ - { project: 3, label: expert-subinterpreters }
+ - { project: 29, label: expert-asyncio }
+
steps:
- uses: actions/add-to-project at v0.1.0
with:
- project-url: https://github.com/orgs/python/projects/2
+ project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
- labeled: release-blocker, deferred-blocker
- label-operator: OR
+ labeled: ${{ matrix.label }}
More information about the Python-checkins
mailing list