burr
burr copied to clipboard
feat: add milestone management workflow
Add milestone management automation for release tracking.
Changes
- add
.github/workflows/milestone-management.ymlto auto-assign milestones on merged PRs - support merged PRs targeting
mainand release/test branch patterns - add
workflow_dispatchsupport to create or re-open upcomingX.Y.Zmilestones - document milestone naming and branch mapping in
scripts/README.md - add
scripts/milestone_management_preview.pyfor local milestone-selection checks - add unit coverage for the branch-to-milestone logic in
tests/test_milestone_management_preview.py
How I tested this
- ran
.venv311/bin/python -m pytest tests/ - ran
PRE_COMMIT_HOME=.pre-commit-cache .venv311/bin/pre-commit run --all-files - ran
.venv311/bin/python -m pytest tests/test_milestone_management_preview.py - exercised
scripts/milestone_management_preview.pymanually formain, release branches, and unmanaged branches
Notes
- milestone titles follow the
X.Y.Zconvention requested in issue #722 - merged PRs to
mainpick the earliest openX.Y.Zmilestone - merged PRs to release/test branches use the milestone inferred from the branch name
- milestone creation is manual through
workflow_dispatch; merged-PR assignment is automatic once milestones exist
Checklist
- [x] PR has an informative and human-readable title (this will be pulled into the release notes)
- [x] Changes are limited to a single goal (no scope creep)
- [x] Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
- [x] Any change in functionality is tested
- [x] New functions are documented (with a description, list of inputs, and expected output)
- [x] Placeholder code is flagged / future TODOs are captured in comments
- [x] Project documentation has been updated if adding/changing functionality.
This PR has been inactive for 16 days after receiving review feedback. Converting to draft.
Please mark it as ready for review when you have addressed the comments. If no activity occurs within 90 days, it will be closed automatically.