Skip to content

Conversation

@richard-cox
Copy link
Member

Blocked on #16061 (required json file rename as well)

Summary

Ensure a PR cannot merge if it's target branch does not track the PRs target milestone

This can work alongside the concept of code freeze, specifically to support the use case of merging future work to master when master is not in code freeze

Occurred changes and/or fixed issues

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

- current plan is one file in master
- ties r/d repos to a rancher milestone
- includes other useful data for other use cases
  - e2e docker image
  - ui-dashboard-index/ui-index values to use for specific rancher branches
@richard-cox richard-cox added this to the v2.14.0 milestone Nov 27, 2025
@richard-cox richard-cox self-assigned this Nov 27, 2025
if (prMilestoneTitle === expectedMilestone) {
core.info(`✅ Milestone '${prMilestoneTitle}' matches the expected branch milestone '${expectedMilestone}'.`);
} else {
core.setFailed(`❌ Pull Request milestone '${prMilestoneTitle}' does not match the expected milestone '${expectedMilestone}' for the target branch '${prTargetBranch}'. Please update the PR milestone.`);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
core.setFailed(`❌ Pull Request milestone '${prMilestoneTitle}' does not match the expected milestone '${expectedMilestone}' for the target branch '${prTargetBranch}'. Please update the PR milestone.`);
core.setFailed(`❌ Pull Request milestone '${prMilestoneTitle}' does not match the required milestone '${expectedMilestone}' for the target branch '${prTargetBranch}'`);

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant