Skip to content

Read pr_review.py's state= Field in drive-pr and Document It in scripts/README.md #3688

Closed

Description

@ptr727

Problem

scripts/pr_review.py status and wait now carry state=MERGED or state=CLOSED in the digest when a pull request is no longer open (#3677). wait on such a pull request neither requests nor polls, and exits as status does, so its 0 there says nothing about review coverage. drive-pr reads only wait's exit codes (49 and 46 specially) and does not read state=. So a feature pull request closed while it was being driven goes on to the merge step, where gh pr merge fails loudly rather than the drive stopping and reporting the state on its first read.

scripts/README.md's pr_review.py section also does not yet mention the state=, merged_at=, merge_commit=, and closed_at= fields, or wait's handling of a pull request that is no longer open.

Reproduce

  1. Close an unmerged feature pull request with no attestation.
  2. Run uv run --no-project --script scripts/pr_review.py wait <n> --repo OWNER/NAME.
  3. It exits 0 with state=CLOSED in the digest, which drive-pr reads as "go on".

Done when

  • drive-pr stops and reports on a digest carrying state=, naming the state, before any merge step.
  • scripts/README.md documents the fields and wait's behavior on a pull request that is no longer open.

Activity

  1. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown round 2 claim. Branch: feature/burndown-3688. Group: #3688.

    Predicted file set:

    • .agents/skills/drive-pr/SKILL.md and its generated copies .github/skills/drive-pr/SKILL.md and .claude-plugin/fleet-skills/skills/drive-pr/SKILL.md
    • scripts/README.md

    No other live group may edit these files until this branch merges or the claim is released here.

  2. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim update for feature/burndown-3688: the file set gains .claude-plugin/fleet-skills/.source-digests/drive-pr, the per-skill source digest scripts/build_dist.py regenerates with the drive-pr copies. No other group holds it.

  3. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim released: feature/burndown-3688 merged to develop as #3698 and its branch and worktree are cleaned up. scripts/README.md passes to feature/burndown-3672-3489. This issue closes when the next develop -> main promotion merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions