Skip to content

Fix milestone assignment for release branch PRs#6512

Open
aholstrup1 wants to merge 2 commits intomainfrom
private/aholstrup/milestone_automation
Open

Fix milestone assignment for release branch PRs#6512
aholstrup1 wants to merge 2 commits intomainfrom
private/aholstrup/milestone_automation

Conversation

@aholstrup1
Copy link
Contributor

@aholstrup1 aholstrup1 commented Feb 6, 2026

Summary

Fix the WorkitemValidation workflow to correctly assign milestones to PRs targeting release branches.

The workflow uses pull_request_target which, with a bare actions/checkout, always checks out the default branch (main). This means PRs targeting release branches (e.g. releases/27.3) get the milestone from main (e.g. "Version 28.0") instead of the correct release branch milestone.

The fix adds ref: ${{ github.event.pull_request.base.ref }} to the checkout steps so the correct branch is checked out.

Work Item(s)

Fixes AB#620875

@aholstrup1 aholstrup1 requested a review from a team as a code owner February 6, 2026 10:05
@github-actions github-actions bot added the Build: Automation Workflows and other setup in .github folder label Feb 6, 2026
@github-actions github-actions bot added this to the Version 28.0 milestone Feb 6, 2026
@github-actions github-actions bot added the Build: scripts & configs Build scripts and configuration files label Feb 6, 2026
@github-actions
Copy link

⚠️ Stale Status Check Deleted

The Pull Request Build workflow run for this PR was older than 72 hours and has been deleted.

📋 Why was it deleted?

Status checks that are too old may no longer reflect the current state of the target branch. To ensure this PR is validated against the latest code and passes up-to-date checks, a fresh build is required.


🔄 How to trigger a new status check:

  1. 📤 Push a new commit to the PR branch, or
  2. 🔁 Close and reopen the PR

This will automatically trigger a new Pull Request Build workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build: Automation Workflows and other setup in .github folder Build: scripts & configs Build scripts and configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants