-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
Fixed bug with GHA where Update labels do not get applied to Issues with Closed PRs 4839 #4908
Fixed bug with GHA where Update labels do not get applied to Issues with Closed PRs 4839 #4908
Conversation
…-gha-update-labels-with-closed-prs-4839
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes.
|
eta: 7/4 |
Availability: 3 hrs 7/3 |
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.
Hey @LRenDO Fantastic job! The branches are correct, the description is linked, the description says what was done and why. I appreciate how your code gives plenty of commentary and logging- this can be very helpful for anyone looking at this months from now. Otherwise, I am able to test this on my own repo. I have issues that should receive a 2 weeks inactive
label. I opened PRs and the updating halted as was the intent. I then closed the PRs and the label updating resumed- exactly as it is supposed to.
Great work again and thank you for taking care of this edge case!
@LRenDO - I forgot to add something very important: excellent and exemplary documentation of the steps you took, as well as links to testing documents- that is pertinent information that I need to be adding to my issues! |
@t-will-gillis Thanks for the kind and specific feedback! Glad the testing info was a useful addition! |
Hi I'm having some trouble with my test setup. I hope to get some advice tomorrow and complete the review by EOD 7/9 |
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.
Thanks @LRenDO for a great job on this Large issue. The branches are setup correctly and this PR has excellent description of the problem, solution, and test procedure. I expect to reuse your instructions in a wiki page to help developers and reviewers to test issues related to add-label.js. I tested the code in my repository and found that for Status: Updated
, To Update !
and 2 weeks inactive
, the behavior of the workflow with a closed PR was identical to the behavior if no PR was linked, and if an open PR is linked, the behavior is unchanged from the current repository.
@roslynwythe Thanks for the review! I'm glad we'll be able to use the testing documentation as a starting point for the wiki for testing this GHA! |
Fixes #4839
What changes did you make?
isOpenLinkedPullRequest
Why did you make the changes (we will use this info to test)?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
Removes all update labels from issue with closed linked PR requests
Visuals after changes are applied
Issues after manual workflow runs:
All Linked Pull Requests Closed 14 Days or More Condition (correctly adds
2 weeks inactive
label)Multiple Pull Requests Linked with Last PR Open (correctly removes all update labels, since there is still at least one PR open that we turn our attention to)
Multiple Pull Requests Linked with First PR Open (correctly removes all update labels, since there is still at least one PR open that we turn our attention to)
Tests Performed
I am including an overview of how I tested as it could be a helpful starting point for creating documentation about testing GHAs in the future. Additionally, the information might help reviewers in catching something I've missed or suggesting improvements for future testing.
The steps used to test were as follows:
In Progress (actively working)
column of the project boardIn Progress (actively working)
column linkIN_PROGRESS_COLUMN_ID
with the copied column id number (column id is the number at the end of the URL)github/workflows/schedule-fri-0700.yml
replacedgithub/github-actions/trigger-schedule/add-update-label-weekly/add-label.js
cut off times need to be adjusted depending on which inactivity label is being testedStatus: Updated
label condition (this retains the label so the issue must already be labeledStatus: Updated
to begin with. It also requires a comment from the assignee.)To Update !
label condition2 weeks in active
label condition2 weeks inactive label
)To Update !
Label)2 weeks inactive label
)To Update !
Label)2 weeks inactive label
)To Update !
Label)Status: Updated
label)Testing Resources
...
on the upper right hand corner of the column and selectCopy column link
to get the link