-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically update more GitHub projects. #94921
Conversation
Can it be generalized with a matrix? It will make future additions easier. add-to-projects:
name: Add to projects
runs-on: ubuntu-latest
strategy:
matrix:
include:
- project: 29
label: expert-asyncio
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: ${{ matrix.label }} Or, if we need a compact, single-row-per-element representation: add-to-projects:
name: Add to projects
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { project: 29, label: expert-asyncio }
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/python/projects/${{ matrix.project }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labeled: ${{ matrix.label }} BTW, I've checked the actions with https://rhysd.github.io/actionlint/, they seem to have no error. |
Interesting idea! I'm doing this incrementally to make sure that everything works before adding a bunch of projects, but we could try with a couple and see if it works well, and if it does add the others. This solution will work well if there is only a single label (e.g. the matrix:
include:
- { project: 2, label: release-blocker, deferred-blocker }
- { project: 29, label: expert-asyncio } The action's |
asyncio
GitHub project.Co-authored-by: Hugo van Kemenade <[email protected]>
This PR updates the workflows so that issues labeled
expert-asyncio
are automatically added to the corresponding project.asyncio
project: https://github.com/orgs/python/projects/29I also updated the project itself:
Todo
on all the issues withNo status
expert-asyncio
labelEdit: the workflow was updated to use a matrix to update more projects.