fix(pr, issue-migrate): hardening, the token off the command line, remote branches first, .env messages, repeated keys #14
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!14
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/hardening-pr-and-migrate"
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?
Hardening of pr.sh and the migration
Fixes four deferred issues found in the reviews of Phase 1: 0066, 0065, 0052
and 0064. No new feature. The project works at effort level
tool.pr.sh
curlonstandard input, as a curl configuration holding the authorization header,
and is written to no file. Before, it was in the
-Hargument and visiblein the process list while curl ran. The request, the URL, the payload,
PR created: <url>andError: <response>are unchanged.origin/<name>when that exists, otherwise as the local branch, because thePR is made from what is pushed. A stale local base no longer hides a missing
tick, and an unpushed tick is no longer counted.
.envor credential gives a message. The order ofsteps is now root, arguments and head, roadmap check, credentials, request,
so the usage and a roadmap refusal work in a repository with no
.env. Newmessages:
.env not found at the root; create it with FORGEJO_URL, FORGEJO_OWNER, FORGEJO_REPO and FORGEJO_TOKEN, and<name> is missing or empty in .env; set it..envis read in a subshell, its output isdiscarded, and only the four values come back.
issue-migrate.sh
status,closedandcreatedchanges nothing else compares the YAML asprinted by
yq, as plain text, so every copy of a repeated key takes part.Before, a cut in an earlier copy was lost and the file was migrated silently.
Design, tests and documents
docs/design/pr-roadmap-check.mdanddocs/design/issue-migration.mdrewritten for the four items; DE-11 and
test.shname the tools the testsneed:
bats,jq,yq,curl,scriptandnc.run
pr.shagainst a real localnclistener that never answers and readthe process table; there is no python and no stand-in for the git system.
pr.sh.Issues, audit and review
reports/audit-hardening.md).number in the design) and one Low deferred as 0068 (an unpushed tick is
refused with advice that is already done). The record is in
docs/reviews/hardening-pr-and-migrate/review-001.Not covered
A real git system (the success line of
pr.sh); Linux and thencvariantsother than the BSD form; the remaining deferred issues.
🤖 Generated with Claude Code