Skip to content

Fix auto milestone action#18731

Merged
seanbudd merged 1 commit into
betafrom
fixAutoMilestoneAction
Aug 18, 2025
Merged

Fix auto milestone action#18731
seanbudd merged 1 commit into
betafrom
fixAutoMilestoneAction

Conversation

@SaschaCowley

Copy link
Copy Markdown
Member

Link to issue number:

None

Summary of the issue:

The auto milestone action has been broken since #18396.

Description of user facing changes:

None

Description of developer facing changes:

Pull requests should have a milestone automatically applied on merge.

Description of development approach:

Gave the action write permission for issues.
This is needed because PRs are considered to be a type of issue by GitHub. The action still needs write permission for pull requests as only users with merge permissions can add a milestone to pull requests.

Testing strategy:

Ran the action on a fork of NVDA.

Known issues with pull request:

Still doesn't address the fact that PRs merged to beta/rc will get the wrong milestone, and PRs not merged to master/beta/rc shouldn't be milestoned at all.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

Copilot AI review requested due to automatic review settings August 18, 2025 00:56
@SaschaCowley SaschaCowley requested a review from a team as a code owner August 18, 2025 00:56
@SaschaCowley SaschaCowley requested a review from seanbudd August 18, 2025 00:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes the auto milestone action that was broken by previous changes. The action was failing due to insufficient permissions when attempting to automatically assign milestones to merged pull requests.

  • Added issues: write permission to the GitHub workflow
  • Maintains existing pull-requests: write permission for milestone assignment

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@seanbudd seanbudd merged commit 98826f5 into beta Aug 18, 2025
29 of 30 checks passed
@seanbudd seanbudd deleted the fixAutoMilestoneAction branch August 18, 2025 02:34
@github-actions github-actions Bot added this to the 2026.1 milestone Aug 18, 2025
OzancanKaratas pushed a commit to OzancanKaratas/nvda that referenced this pull request Aug 18, 2025
Summary of the issue:

The auto milestone action has been broken since nvaccess#18396.
Description of user facing changes:

None
Description of developer facing changes:

Pull requests should have a milestone automatically applied on merge.
Description of development approach:

Gave the action write permission for issues.
This is needed because PRs are considered to be a type of issue by GitHub. The action still needs write permission for pull requests as only users with merge permissions can add a milestone to pull requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants