Skip to content

GHA for putting PR into milestone and for staging cutoff - #46703

Open
Fildrance wants to merge 8 commits into
space-wizards:masterfrom
Fildrance:feature/put-prs-into-milestones
Open

Fildrance wants to merge 8 commits into
space-wizards:masterfrom
Fildrance:feature/put-prs-into-milestones

Conversation

@Fildrance

@Fildrance Fildrance commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

put-pull-requests-into-milestones.yml

Puts PR upon merging into latest active milestone that is available, detects them by parsing YYYY.MM pattern and finding one with greater date. If no milestone found - just fails (no alarms!!!).

rotate-release-milestone.yml

  1. Attempts to merge master to staging (with bypass, without PR)
  2. Creates new milestone (from provided name)
  3. Closes current milestone (requires you to have only 1 open milestone with YYYY.MM as a substring of milestone name)
  4. Outputs 'Release discussion thread skeleton' with captured commit range and list of PRs

WHY

We need to do automated cutoff to exclude possibility of PR not being assigned to a proper milestone upon merging.
Milestone assignment will give PR

  1. Easy to understand release date (which should be part of release name
  2. A group by which PRs can be searched (its much easier to search for specific problems when you have limited scope, and you can search in milestones).
  3. An easier way to extract all breaking changes from all pull requests into release info

@Space-Wizards-Bot Space-Wizards-Bot added S: Approved Status: Reviewed and approved by at least one maintainer; a PR may require another approval. S: Needs Review Status: Requires additional reviews before being fully accepted. Not to be replaced by S: Approved. size/S Denotes a PR that changes 10-99 lines. S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. Changes: No C# Changes: Requires no C# knowledge to review or fix this item. labels Nov 5, 2026
@Fildrance
Fildrance marked this pull request as ready for review November 5, 2026 21:01
@Fildrance Fildrance changed the title feat: GHA for putting batches of PRs from SHA range into milestone feat: GHA for putting PRs from SHA range into milestone Nov 6, 2026
@Fildrance Fildrance changed the title feat: GHA for putting PRs from SHA range into milestone GHA for putting PR into milestone Nov 6, 2026
@Space-Wizards-Bot Space-Wizards-Bot added the size/M Denotes a PR that changes 100-999 lines. label Nov 6, 2026
@Fildrance Fildrance changed the title GHA for putting PR into milestone GHA for putting PR into milestone and for staging cutoff Nov 6, 2026
@Fildrance

Copy link
Copy Markdown
Member Author

As an option, we can call current release consistently 'Current release', rename it upon cutoff (and create new 'Current release' then).

@themias themias added P2: Raised Priority: Item has a raised priority, indicating it might get increased maintainer attention. T: New Feature Type: New feature or content, or extending existing content A: Core Tech Area: Underlying core tech for the game and the Github repository. and removed S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. labels Nov 11, 2026
@Fildrance

Copy link
Copy Markdown
Member Author

Added workflow for stable/staging branches - will put a comment about adding PR into milestone manually when they get merged (automating hotfix related binding is too niche and complex to bother, i feel)

@kontakt kontakt self-assigned this Nov 30, 2026
@Space-Wizards-Bot Space-Wizards-Bot removed the size/S Denotes a PR that changes 10-99 lines. label Nov 30, 2026

@kontakt kontakt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nitpick, but you're supporting two formats

LATEST_MILESTONE="${MILESTONES%%$'\n'*}"

if [[ -z "${LATEST_MILESTONE}" ]]; then
echo "::warning::No open release milestone (a title containing a YYYY.MM date) found in ${REPO}, PR #${PR_NUMBER} was not assigned to a milestone."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You're searching both YYYY.MM and YYYY-MM?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Eh, at some point i thought that we should not fail if person just messed up format a tiny-little bit. But i see flaws within this logic.
Considering we will be going for milestone using same-ish name as tag version we want - we probably should go with only '.'?

Co-authored-by: Connor Huffine <chuffine@gmail.com>

This branch has not been deployed

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

Labels

A: Core Tech Area: Underlying core tech for the game and the Github repository. Changes: No C# Changes: Requires no C# knowledge to review or fix this item. P2: Raised Priority: Item has a raised priority, indicating it might get increased maintainer attention. S: Approved Status: Reviewed and approved by at least one maintainer; a PR may require another approval. S: Needs Review Status: Requires additional reviews before being fully accepted. Not to be replaced by S: Approved. size/M Denotes a PR that changes 100-999 lines. T: New Feature Type: New feature or content, or extending existing content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants