- skills/{code-review,gitea-plan,gitea-pr,reconcile-docs,tdd}/SKILL.md: fix relative skeleton link from ../../build-skill/... to ../build-skill/references/skeleton.md (CR-01)
- tests/fixtures/test_skills_behavioral_contracts.py: split multi-behavior test into 6 focused single-behavior tests (CR-02), remove unused tdd_refs (CR-03), and assert Mode B gates, one-sided BVA bounds, fenced-block non-duplication, skeleton suppression, and on-disk relative link resolution (CR-04)
5.1 KiB
5.1 KiB
name, description
| name | description |
|---|---|
| gitea-pr | Manage pull request lifecycle on Gitea: verify branch readiness, synthesize structured PR descriptions from code-review and verify-slice evidence packets, link issues, digest review feedback, and report merge readiness. Not for code inspection: use code-review. Not for runtime QA: use verify-slice. Not for Git branch, commit, or merge mechanics: use git-manager. |
Gitea PR
Use when
- Opening or updating a pull request on Gitea after implementing an issue or feature.
- Synthesizing static code review and runtime verification evidence into a reviewable PR.
- Tracking review comments, requested changes, and CI checks toward merge readiness.
- Publishing a
code-reviewPR comment block (findings and nits) onto an open pull request. - Not for static code inspection: use
code-review. - Not for runtime behavioral verification: use
verify-slice. - Not for branch creation, committing, rebasing, or local history integration: use
git-manager.
Steps
- Verify branch readiness. Confirm the local working tree is clean (
git status --short), the branch tracks an upstream remote (git rev-parse @{u}), unpushed commits are pushed, and the target base branch exists on the remote. - Collect review and verification evidence. Inspect outputs from preceding skills:
code-review: Static provenance, covered commits/diff fingerprint, findings disposition, and overall recommendation (Ready).verify-slice: Runtime evidence ledger across behavioral, security, and state checks, confirming zero unhandledFAILoutcomes. If either packet is missing or stale relative to currentHEAD, stop and run that skill first.
- Draft structured PR description. Compose the PR body following
references/pr-lifecycle.md:
- Issue Linkage:
Closes #<issue-index>. - Summary of Changes: Problem, solution, and scope boundary.
- Static Review Provenance: Base/head SHAs, diff SHA256, and 4-axis disposition.
- Runtime Verification Ledger: Markdown table of executed checks and outcomes.
- Residual Risks and Rollback: Operational considerations and reversibility.
- Issue Linkage:
- Present for human approval. Present proposed title, target base branch, milestone,
and description body to the user per
profile/AGENTS.md. Stop for confirmation before creating or editing the pull request. - Create or update pull request via
gt prand move card toReview. Run verified commands from references/gt-pulls.md:gt pr create -t "<title>" -B "<base>" -H "<branch>" -F <body-file> --json number,url. Pass--draftif work remains in progress. Extract verified PR number and URL, and ensure the linked issue card is inReview(Work in Progress -> Review) on the project board. - Publish review findings (when a
code-reviewcomment block exists). Follow references/gt-pulls.md section 3: confirm the remote PR head equals the reviewed head SHA (else stop and re-runcode-review), confirm no pending review and no prior review for that SHA exists, show the body and inline list for approval, then post one--commentreview pinned with--commit. Never--approveor--request-changes. Findings routedissueget their issue (viagitea-plan) before posting so the comment links to it. - Track review feedback, merge on owner approval, and move card
Review -> Completed. Inspect status checks (gt pr checks <number>), mergeability (gt pr view <number> --json mergeable,review_decision), and review comments (gt pr review comments <number>). When all checks pass and review feedback is resolved, reportReady for Merge. Never merge automatically: once the human owner explicitly authorizes merge, rungt pr merge <number>and move the linked issue cardReview -> Completed.
Your call
- PR title and description approval: review and approve the draft PR content and issue linkage.
- Publishing review findings: approve the comment block and each finding's placement and follow-up route before it is posted.
- Review feedback triage: decide how to address review comments (rework, clarification, deferral).
- Merge and release authorization: decide when to merge the PR into the target base branch.
Done when
- Pull request is created or updated in Gitea with complete evidence provenance, and its current review and mergeability status is reported to the user.
Hands off to
code-review: if review packet is missing/stale (Suggested Next Step: /code-review <base>..HEAD).verify-slice: if runtime QA packet is missing/stale (Suggested Next Step: /verify-slice).gitea-plan: to create follow-up issues routedissue(Suggested Next Step: /gitea-plan).reconcile-docs: after merge when docs/milestones shift (Suggested Next Step: /reconcile-docs).implement-slice: after merge when next issue is queued (Suggested Next Step: /implement-slice #<next-issue>).git-manager: to commit review fixes, rebase, or update against base.- Emit one outcome-matched
Suggested Next Stepper skeleton.