Skip to content

Backlog capture: task finish closes the task itself when GitHub does not act on the closing reference #407

Open

Description

@radiusred-cody

Backlog capture (deliberately unlabeled). Re-filed from the second bullet of #386 when #400 (M21-R7) delivered the read-back half in the v2.1.1 patch.

The proposal. When task finish has merged the task's pull request and reads the task back still open — GitHub did not act on a closing reference that was present at merge time, as on davison/md-notes#231 — the verb closes the task itself, with a comment naming the pull request and the merge commit, the same way it already closes the captures a task adopts. That keeps the task the verb's to finish, which is what "the only merge point for a task" implies.

Why it was deferred. It changes what the verb writes and what "the only merge point" means: today the task closes through GitHub's closing keyword (SPEC §4's state table: "issue closed via closing keyword") and task finish writes no close on the task. Closing it from the verb needs SPEC text, so it belongs to protocol 2.2, not a CLI patch under the 2.1 bedding-in rule. v2.1.1 reads the task back after the merge, retrying briefly, and prints a note: naming the pull request and merge commit when it is still open — the operator closes it by hand from that note until this lands.

Links: the capture #386 (the evidence from davison/md-notes#231); the task that delivered the read-back, #400.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions