Skip to content

chore(github): task files link their issue only; PR and review state stay on GitHub #489

Closed

Description

@dan-petty

Problem

Task files carry a **PR** field and an In Review status. The PR number isn't known until the pull request exists, so recording it takes a second commit. That commit re-runs every check (CI triggers on synchronize) and breaks the rule against standalone task-file commits. An In Review status is also stale the moment the PR merges, contradicting the author-as-merged rule.

The existing files have drifted as well:

  • 175 carry a **PR** line.
  • Statuses include In Review (62), Merged (10), Completed (10), Closed… (3) and Review / In Progress (1).
  • The project-sync parser doesn't recognize Merged or Closed, so it reads those files as Backlog.

Proposal

  • Link a task file only to its issue. The issue links its pull request through the closing keyword (Closes #N), and GitHub shows that link on the issue.
  • Review state stays on GitHub: project cards already derive In Review from an open PR (infer_item_status).
  • Task file statuses: Backlog, Ready, In Progress, Done. A delivering PR writes Done.
  • The roadmap sync stops writing **PR**. The parser accepts only these statuses.
  • Update AGENTS.md and the task template.
  • Migrate the existing files. Remove **PR**, and set each status from its issue's GitHub state: closed means Done, open keeps its pre-review status.
  • A test asserts that every task file links an issue, has no **PR** field, and uses an allowed status.

Acceptance criteria

  • No task file has a **PR** field or an In Review status.
  • Every task file has **Issue** and a status from the allowed set.
  • New task files from the roadmap sync follow the format.
  • AGENTS.md and the template describe issue-only linking.

Activity

  1. added this to the v0.2.23 milestone on Sep 24, 2026
  2. added
    type/chore
    scope/github
    priority/p1-high
    on Sep 24, 2026
  3. added 2 commits that reference this issue on Sep 24, 2026
    499d7ef
    5b172bf
  4. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #492, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  5. added a commit that references this issue on Sep 28, 2026
    ea49d6e
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

    priority/p1-highscope/githubtype/chore

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions