Skip to content

Draft PR descriptions from final branch evidence - #306

Merged
AetherAI3 merged 1 commit into
mainfrom
feat/issue-288-pr-draft
Oct 6, 2026
Merged

AetherAI3 merged 1 commit into
mainfrom
feat/issue-288-pr-draft

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

Why

aether ship used the last commit message as the PR description. Multi-commit branches could therefore publish a body that omitted the final change, repository template, or real validation state.

What changed

  • Draft a PR title and body from the complete base-to-head diff, relevant accepted goal scope, repository PR template, and current host verification receipt. Keep one-file drafts short and label CI as unknown.
  • Add read-only --pr-draft output and --draft-file for editing the revision-bound JSON proposal. Show the exact title and multiline body before publication; explicit --title and --body remain verbatim argv values.
  • Recheck base/head and draft evidence after approval, before push. Stale drafts and cancellations make no push or PR call. The existing publication rail remains the only publisher.

Verification

  • npm run build and npm run docs:check passed.
  • New real-Git draft fixtures passed 9/9: multi-commit/template and compact no-template golden output, verification states, edited multiline argv, cancellation, head/base drift, and drift during approval.
  • Existing ship and command-registry suite passed 51/51 applicable tests (one existing POSIX shim test is skipped on Windows).
  • git diff --cached --check passed.

Scope and risk

  • Drafting is local and makes no model or network call. Publication still requires the existing explicit approval and argv allowlist.
  • No live hosted-service qualification is claimed by this implementation ticket.

Closes #288

@AetherAI3
AetherAI3 merged commit 6c3ca5c into main Oct 6, 2026
1 of 8 checks passed
@AetherAI3
AetherAI3 deleted the feat/issue-288-pr-draft branch October 6, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Draft PR descriptions from the branch diff, repository template, and real checks

1 participant