Skip to content

Show epic progress in the epic PR's title and status block #3531

Closed

Description

@integry

Problem

An epic pull request collects the sub-PRs of a plan. To see how far an epic is, an operator opens it and reads the issue list or the progress comment. The status block and title slot added by the previous two issues describe a single PR's work, which says little about an epic whose own branch only receives merges.

What to build

An open epic PR shows how many of its issues are merged into the epic branch, in both places. The status block is always written. The title part follows the repository setting prTitleStatus (on by default), which controls titles only:

  • Title: the status slot is followed by merged/total, for example 🔨 3/5 [Epic] Scheduler primitives.
  • Status block: the first line names the progress and what is active, for example **ProPR** 🔨 3 of 5 issues merged · #3475 in progress (Ultrafix cycle 4 of 10, last review 6/10) · updated 09:41 UTC.

State for an epic PR, from the shared status computation:

State When
working Not every issue is merged and at least one sub-PR or issue of the epic is working, or the next issue is queued to start.
needs_attention Not every issue is merged and nothing is running: a sub-PR is needs_attention or is ready and waiting to be merged into the epic branch, the queue is paused, or the epic PR conflicts with its base. Also when every issue is merged but a check on the epic PR's head failed or it conflicts with its base.
ready Every issue is merged into the epic branch, every check on the epic PR's current head has completed and passed, and it does not conflict with its base.

An epic PR shows no review score.

Epic progress comment: show what is in progress and what is next

Independently of the prTitleStatus setting, the existing epic progress comment on the epic PR (the one with "N out of M PRs merged", the progress bar and "Merged child PRs") must also say what is happening now. Today it lists only merged PRs, so a reader cannot tell which issue is being worked on. Add, below "Merged child PRs":

  • In progress: every open child PR targeting the epic branch, as #PR followed by its issue number and title, and every plan issue that has started but has no PR yet, as #issue and title. When the shared status computation is available for a child PR, append its state in a few words (for example "review 6/10, Ultrafix cycle 3 of 10" or "ready to merge").
  • Up next: the plan issues that have not started, in queue order, as #issue and title.

Omit a line that would be empty. Example:

Merged child PRs: #3490, #3504, #3507, #3515, #3518
In progress: #3523 (issue #3475, Let an automation run when a plan issue is blocked) - review 6/10, Ultrafix cycle 5 of 10
Up next: none

The comment is updated today only when a child PR merges. It must also be updated when a child PR targeting the epic branch is opened, when an epic issue starts, and when a child PR's state changes, using the same sync path as the status block, and without a GitHub write when the rendered comment is unchanged.

Requirements

  • The counts come from the existing epic merge progress computation; do not add a second count.
  • The title is renamed when a sub-PR merges (the count changes) and when the state changes, and at no other time. The rename policy of the title issue applies: no rename while the next issue is about to start.
  • The epic body's existing sections (the issue list, the Fixes # lines) are preserved, and the epic body builder keeps the status block when it rewrites the body.
  • A sub-PR that is ready but not yet merged makes the epic needs_attention, so the list shows that a merge is waiting on the operator.
  • With prTitleStatus off, epic titles are unchanged; the status block in the body is still written.

Acceptance criteria

  • A new epic PR is created with 🔨 0/N before [Epic] and with the status block in its body.
  • Merging a sub-PR into the epic branch updates the count in the title and the block; one rename per merge.
  • With one sub-PR ready and unmerged and nothing running, the epic shows ⚠️ and the block names the PR waiting to be merged.
  • With every issue merged and passing checks, the epic shows ✅ N/N; with a failed check or a conflict it shows ⚠️ N/N and the block gives the reason.
  • [Epic] detection, epic progress comments and the epic body's issue list behave as before (existing tests pass; add one for a title with the slot and count).
  • The epic progress comment lists open child PRs and started issues under "In progress" and unstarted plan issues under "Up next", with the setting on or off, and is updated when a child PR opens, when an issue starts and when a child PR merges; an unchanged comment causes no write.
  • Docs and CHANGELOG.md updated.

Implementation

Starting points (verify each before relying on it):

  • Epic progress: computeEpicMergeProgress, isEpicMergeComplete and updateEpicMergeProgress in packages/core/src/webhook/epicMergeProgress.ts; handleEpicPRCreationOnMerge and applyEpicMergeProgress in packages/core/src/webhook/epicPRHandler.ts.
  • Epic PR creation and body: ensureEpicPR in packages/core/src/services/epicPRService.ts; createEpicPR, buildEpicPRBody and updateEpicPRBody in packages/core/src/webhook/epicPRHandler.ts. Epic detection elsewhere uses the branch name (isEpicBranch).
  • Extend the shared slot helpers from the title issue so the slot pattern accepts an optional merged/total after the emoji, and stripStatusSlot removes it.
  • A sub-PR's own status change must also trigger a sync of its epic PR, since the epic's state depends on it.

Activity

  1. propr-dev commented on Nov 13, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3531/claude-opus-5-5-show-epic-progress-in-the-20261113-2230-lfs
    • Base Branch: 3529-epic-pr-status-cui
    • Worktree: issue-3531-20261113-2230-claude-opus-5-5-lfs

    🔍 Track Task Execution

  2. added a commit that references this issue on Nov 13, 2026
  3. added a commit that references this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions