Skip to content

feat: short PR refs + harvest merged PR by commit (0.26.6)#54

Merged
Shahinyanm merged 1 commit into
mainfrom
feat/pr-shortref-and-merged-pr-harvest
Jun 17, 2026
Merged

feat: short PR refs + harvest merged PR by commit (0.26.6)#54
Shahinyanm merged 1 commit into
mainfrom
feat/pr-shortref-and-merged-pr-harvest

Conversation

@Shahinyanm

Copy link
Copy Markdown
Member

Summary

Two refinements to the close-time artifact ledger (follow-up to #53).

  • Short PR references — the extractor now reads PR #51 / PR#51 /
    pull request #51 from event text (normalised to PR #51), not just full
    /pull/N URLs. Anchored to the PR keyword so a bare #3 in prose is not
    mistaken for a PR.
  • Merged-PR harvest after branch deletion — when a task is closed on main
    (branch already gone, so gh pr view finds nothing), the harvest falls back
    to GitHub commit search (gh pr list --search <HEAD-sha> --state merged) to
    recover the PR that introduced HEAD. Best-effort.

Type of change

  • Feature (non-breaking)

Test plan

  • captures_short_pr_reference_but_not_bare_hash (PR #N yes, #3 no)
  • existing harvest::build + artifact tests still green
  • cargo fmt / clippy -D warnings / cargo test --workspace / cargo doc

CHANGELOG

  • Added ## [0.26.6].

Two refinements to the close-time ledger:
- artifact extractor now reads "PR #51" / "PR#51" / "pull request #51" from
  event text (normalised to "PR #51"), anchored to the PR keyword so a bare
  "#3" in prose is not captured.
- harvest falls back to GitHub commit search (gh pr list --search <HEAD-sha>
  --state merged) when the branch's open PR is gone — the common case of
  closing a task on main after the branch was deleted. Best-effort.

Bump 0.26.6.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Shahinyanm Shahinyanm merged commit ca0fd57 into main Jun 17, 2026
7 checks passed
@Shahinyanm Shahinyanm deleted the feat/pr-shortref-and-merged-pr-harvest branch June 17, 2026 10: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.

1 participant