-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-124471: Set name for unnamed reusable workflow #124475
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
Conversation
Please can you share a before and after screenshot of what actually changed in the UI? |
@hugovk Can you see it how it is changed? |
Yes, now I see. Here is how it looks now (at https://github.com/python/cpython/actions): ![]() Although I'm not sure if we want these actual names, because if you click the "macOS" one, you don't see anything useful: ![]() These are reusable workflows, which are like include files for the main "Tests" build. People might be confused why they don't see the macOS builds here. |
Agree, then we have to leave as-is or define somekinds special naming that people notice that it's not a actual workflow. |
@hugovk could you go through all of the reusable workflows on the https://github.com/python/cpython/actions page, click on each ending up on a dedicated page (like https://github.com/python/cpython/actions/workflows/reusable-macos.yml), then use the three-dots top right menu to disable them? This will not affect their reusability, the calling workflows will still be able to invoke them. But the UI will show them as disabled. Here's an example of a project set up like this: https://github.com/ansible/awx-plugins/actions. The last one in the left sidebar is marked as |
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.
I was solving a similar concern while setting up new projects recently. I ended up putting a bit red cross with a “do not click” message in mine. I also marked the reusable workflows as disabled, so they are always at the bottom of the list.
Here's a demo of what it looks like in practice: https://github.com/ansible/awx-plugins/actions.
@hugovk would you like something similar here? I've copied my approach to the suggested changes but perhaps you'd want something shorter. LMK.
If you go this way, and I think you should, I suggest also applying this to other |
Interestingly, I noticed 2 different workflows marked as This is to say that marking the workflows as reusable explicitly in their names will be helpful. |
The workflows are now marked "disabled"; closing/reopening this PR to check that they are all still invoked. |
Let's avoid emoji, and perhaps just using "Reusable" will signal that they're special -- the "DO NOT CLICK" is a little distracting personally (albeit explicit). A |
@AA-Turner FYI, you missed a few like https://github.com/python/cpython/actions/workflows/reusable-docs.yml which was less obvious since it actually has a name (so it'll also need to be renamed following the same pattern). |
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.
perhaps you'd want something shorter
Let's avoid emoji, and perhaps just using "Reusable" will signal that they're special -- the "DO NOT CLICK" is a little distracting personally (albeit explicit).
I suspected that people would not want emojis. The reason I started using them is that they are meant to be visually discouraging.
@hugovk @AA-Turner let me know what you want exactly, and I can update the suggested changes accordingly. Just Reusable {{ X }}
or anything else?
I've found two more: https://github.com/python/cpython/actions/workflows/reusable-windows-msi.yml / https://github.com/python/cpython/actions/workflows/reusable-change-detection.yml. All three should update their names to whatever convention ends up being decided on in this PR. |
Either A |
Then just accept my variant 2 suggestions and wait for @corona10 to additionally make these changes to 3 more files, I suppose. |
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Hmm if there is no more objection,let's merge this PR? |
@AA-Turner perhaps also add backport request labels? |
Thanks @corona10 for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
) (cherry picked from commit e4cab48) Co-authored-by: Donghee Na <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Sorry, @corona10 and @AA-Turner, I could not cleanly backport this to
|
GH-125256 is a backport of this pull request to the 3.13 branch. |
GH-125257 is a backport of this pull request to the 3.12 branch. |
…nGH-124475) (cherry picked from commit e4cab48) Co-authored-by: Donghee Na <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Thanks all! |
…h-125257) (cherry picked from commit e4cab48) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
…h-125256) gh-124471: Set name for unnamed reusable workflow (GH-124475) (cherry picked from commit e4cab48) Co-authored-by: Donghee Na <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.