-
-
Notifications
You must be signed in to change notification settings - Fork 699
Only automatically assign milestone on merge of PRs #18396
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR refines the milestone assignment workflow so that only merged pull requests (not all closed issues) receive an automatic milestone.
- Drop the
issues: closed
trigger and related issue-closure logic - Update scripts to reference only
context.payload.pull_request
and check formerged === true
- Narrow permissions to only pull-request operations (note: may need to revisit issue permissions)
Comments suppressed due to low confidence (2)
.github/workflows/assign-milestone-on-close.yml:11
- The workflow still calls
github.rest.issues.update
to assign milestones but no longer includesissues: write
permission. Please re-addissues: write
so the action can update milestones successfully.
pull-requests: write
.github/workflows/assign-milestone-on-close.yml:31
- [nitpick] Consider renaming this step ID from
check-done
tocheck-merged
to match the updated behavior and step name.
id: check-done
I disagree that this adds work. I think it's useful to track when issues get closed to milestones |
I thought we (the team, not just Sean and I) discussed this previously, and decided to remove the issue milestoning part. What value does automatically adding issues closed without an associated PR to a milestone have? |
I might have been absent from this discussion. Quite often issues aren't linked correctly or are closed in relation to work in external repositories such as on our server. What harm does adding milestones to issues closed indirectly during a milestone period do? The only problem I can think of is when issues are reopened they are still left on the milestone, but that should be handled when someone reopens an issue, which is a manual task anyway |
Personally, I think this is more reasonable, as it clearly indicates the nature of the issue. A possible use case is when there is a closed issue that was not resolved by NVDA's PR, but rather by an external fix or workaround. However, the milestone may mislead users into thinking that it was resolved in a certain version of NVDA. Although this example may be extreme, and I don't always pay attention to milestone information, it makes sense. |
Link to issue number:
None
Summary of the issue:
NV Access has a workflow set up to automatically apply a milestone to closed issues and merged pull requests. While this script only applies a milestone to issues closed as completed, many issues get closed as completed even when not planned or duplicates. This results in unnecessary work for staff.
Description of user facing changes:
None
Description of developer facing changes:
Only merged PRs are automatically given a milestone.
This matches our approach of applying milestones manually to issues planned for inclusion in particular releases.
Description of development approach:
Updated
.github/workflows/apply-milestone-on-close.yml
to remove the code for applying milestones to issues.Testing strategy:
Known issues with pull request:
It would be nice if we recorded the alpha, beta, and stable/rc milestones, and applied the correct milestone based on the branch into which the PR was merged.
Code Review Checklist:
@coderabbitai summary