hive-forge: add pr-commits verb (PR commit list, survives rebase-rewritten shas)

This commit is contained in:
damocles 2026-06-17 19:19:29 +02:00 committed by mara
commit 9f9c1167ae
3 changed files with 55 additions and 0 deletions

View file

@ -57,6 +57,10 @@ enum Verb {
IssueEdit(verbs::issue_edit::Args),
/// Print key fields of a PR as JSON.
Pr(verbs::pr::Args),
/// List a PR's commits as JSON (sha, message, author date, author).
/// Survives rebase-rewritten shas — message + author date let a
/// caller match the rows against linear `main` history.
PrCommits(verbs::pr_commits::Args),
/// Create a pull request. Prints the PR URL on success.
PrCreate(verbs::pr_create::Args),
/// Post a comment on an issue or PR.
@ -146,6 +150,7 @@ fn main() -> Result<()> {
Verb::IssueCreate(a) => verbs::issue_create::run(&client, a),
Verb::IssueEdit(a) => verbs::issue_edit::run(&client, a),
Verb::Pr(a) => verbs::pr::run(&client, a),
Verb::PrCommits(a) => verbs::pr_commits::run(&client, a),
Verb::PrCreate(a) => verbs::pr_create::run(&client, a),
Verb::Comment(a) => verbs::comment::run(&client, a),
Verb::Comments(a) => verbs::comments::run(&client, a),