-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Add a workflow to add issues/PRs to projects. #94447
Conversation
Great to see GitHub has finally created https://github.com/actions/add-to-project that works with new beta boards! At work, we've been using one based on this GraphQL API, we'll have to switch over :) |
@@ -0,0 +1,23 @@ | |||
name: Update projects when an issue/PR is created/labeled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name shows in the left bar at https://github.com/python/cpython/actions, can we make it a bit shorter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want something about "projects" being "updated", and possibly "GitHub projects" or "(beta) projects" since "projects" is a bit generic. Mentioning "labels" would also be good, since they are the trigger of the action.
Is "Update GH projects on label change" good? The last word might not fit, but it's not essential. Otherwise I can just drop the "GH" and it should fit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, "GH" is more important to keep than "change", since otherwise I think it would be confusing and unclear what projects were being referred to, whereas change just clarifies the exact trigger but as you say, is not essential to understanding meaning
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
I merged this and:
|
Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry @ezio-melotti, I had trouble checking out the |
GH-94475 is a backport of this pull request to the 3.10 branch. |
* Add a workflow to add issues/PRs to projects. * Apply suggestions from code review Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit 5f2c91a) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
* Add a workflow to add issues/PRs to projects. * Apply suggestions from code review Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit 5f2c91a) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
GH-94477 is a backport of this pull request to the 3.11 branch. |
I created today https://github.com/orgs/python/projects/31/views/1. For some reason, it does not appear in the python projects list https://github.com/python/cpython/projects?type=new. Does that take time? Or did I make a mistake? In any case, I would love to have IDLE issues (but not PRs - although Linked Pull Requests does not work) auto added to this project. |
Beta projects are created at the org level, and need to be manually added to the repos if you want them to show up in the repo's list of projects. It seems that your project has been now added to the list.
Auto-adding to projects is being worked on at python/core-workflow#467. This only affects issues, not PRs. Linked PRs only work if the PR is actually linked to an issue, either by using an auto-closing keywork (e.g. |
This PR adds a workflow that uses the "Add to GitHub Projects Beta" action to automatically add issues and PRs that have been created or labeled to the corresponding project.
So far it only updates the Release and Deferred blocker project, but if that works well we can update the workflow to include other projects that have corresponding labels. This will also solves in the short term the issue of triagers not being able to update projects from an issue/PR.
cc @encukou, @hugovk, @CAM-Gerlach