feat(pr): check the roadmap before opening a PR (phase 1, part 3) #11
No reviewers
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
WulfScience-FOSS/wulf-dev!11
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/phase-1-pr-roadmap-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part 3 of Phase 1: roadmap check in pr.sh
scripts/pr.shnow checks the roadmap of the phase before it opens a PR, asAGENTS.mdrequires ("Roadmap checklist before the PR"): completed checklistitems are ticked
[x]indocs/roadmap/phase-N-*.mdon the part's branch, inthe PR itself. The outdated "After this PR is merged" reminder is removed. This
completes Phase 1 (parts 1 and 2 are merged); roadmap items P1-10 to P1-13 are
ticked in their own commit. The project works at effort level
tool.The check
<type>/phase-N-<part>(review and fix sub-branchesincluded) gives the phase N. The roadmap file is the first
docs/roadmap/phase-N-*.mdon the head branch. Any other head, or a phasewith no roadmap file, has no check and no message.
the roadmap file is changed on the head relative to the base, and which items
of the phase are still unticked (
- [ ] P<N>-<n>).the PR goes on. All ticked: no message.
interactive run, the script asks whether to open the PR anyway. Without a
terminal it opens no PR and exits 1.
--no-roadmapskips the check silently. A head or base thatresolves to no branch (local, or
origin/<name>) stops the script with amessage. Names, files and listed lines are escaped as in the issue scripts.
PR created: <url>is printed.pr.sh: a missing value after an option gives the usage, afailed request prints
Error:and exits 1 (it used curl's status), and thedefault head is read from the repository root.
Design, tests and documents
docs/design/pr-roadmap-check.md(DE-R1 to DE-R5, 129 lines).tests/pr.bats: 131 tests, run in scratch git repositories against a closedlocal port, with no network and no stand-in for the git system. A passing
check ends in the failed request; a refusal ends before it. Two tests are
verified by inspection (the success line, and a response with content); the
acceptance criteria are in
tests/acceptance-criteria.md.the success line of
pr.sh).pr.sh.Issues, audit and review
reports/audit-pr-roadmap-check.md).the request), resolved by requiring the failed-request line in the tests,
and one Low, deferred as 0065 (the check reads local branches). A deferred
issue 0066 records the token on curl's command line, unchanged from
main.text on silent paths) and one Low resolved. The records are in
docs/reviews/phase-1-pr-roadmap-check/review-001anddocs/reviews/phase-1-pr-roadmap-check/review-002.Not covered
A real git system (the success line and a response with content); Linux; the
CI milestone sync.
🤖 Generated with Claude Code