Skip to content

Show the PR state as one leading emoji in the PR title #3530

Closed

Description

@integry

Problem

GitHub's pull request list shows only the title, labels and an aggregate check icon. The live status block added by the previous issue is visible only after opening the PR or hovering it. The operator wants to scan the list and see which PRs are being worked on, which need them, and which are ready to merge.

What to build

When the repository setting prTitleStatus is on (it is on by default), ProPR keeps one status slot at the very start of the title of each open pull request it created. The slot shows only the persistent state from the shared status computation, so titles change rarely:

State Slot Example
working 🔨 🔨 [3475 by Claude Opus 5.5] Let an automation run when a plan issue is blocked
needs_attention ⚠️, followed by the latest review score when there is one ⚠️⑥ [3475 by Claude Opus 5.5] …
ready ✅, followed by the latest review score when there is one ✅⑧ [3510 by Claude Opus 5.5] Apply library extensions automatically…

The score is one circled digit, ① to ⑩. The slot is followed by a single space and then the title exactly as it was.

Requirements

Keep renames rare. Every title change adds a "changed the title" entry to the PR timeline, so:

  • A PR is created with 🔨 already in its title; creation costs no rename.
  • The title changes only when state changes, or when the score shown beside ⚠️ or ✅ changes. Activity inside working (review started, cycle 3, waiting for CI) never renames the PR; that detail belongs to the body block.
  • A state that would last only briefly must not cause two renames. Do not rename to ✅ or ⚠️ while a ProPR task for the PR is queued or about to start (for example between an Ultrafix review and its fix, or between a failed check and its queued CI follow-up).
  • No PATCH is sent when the title is already correct.

Never damage the title.

  • Recognise the slot with a strict pattern anchored at the start of the title, and only ever replace that slot. A title edited by a person keeps their text; a title whose slot a person removed gets the slot back on the next state change, not before.
  • Titles are subject to GitHub's 256 character limit; if adding the slot would exceed it, leave the title unchanged.

Keep the emoji out of everything derived from the title.

  • Merge commits: every ProPR merge path must pass an explicit commit title without the slot (the MCP merge_pull_request tool, ProPR's own merge after checks, and native auto-merge enablement). For squash merges this means the PR title without the slot plus (#N).
  • When a PR is merged or closed, remove the slot from its title, so closed PR lists, release notes and merges made in the GitHub UI's default message for later tooling are clean. This is one final rename.
  • Task titles built from the PR title (Fix PR #N: <title>), notifications and anything else that copies the title use the title without the slot.
  • Every place that parses a PR title must accept a title with or without the slot: the [Epic] check in plan issue tracking, and the UI parsers for the [N by Model] prefix and model tags.

No feedback loops. ProPR's own renames arrive as pull_request edited webhooks and must not trigger another rename, a status recomputation that writes again, or any agent work.

Off means off. With the setting off, titles are created and left exactly as today. Turning it off removes the slot from open PRs on their next transition.

Acceptance criteria

  • With the setting on, a new issue PR is created with 🔨 at the start of its title and no rename event.
  • A full Ultrafix loop that ends at the goal with passing checks produces exactly one rename, to ✅ plus the score.
  • A loop that reaches the goal while checks are pending keeps 🔨; when a check then fails and no follow-up is queued the title becomes ⚠️ plus the score; when the checks pass it becomes ✅ plus the score.
  • A follow-up comment on a ✅⑧ PR renames it to 🔨, and the title returns to ✅ or ⚠️ only when the work and checks have finished.
  • A person's edit to the rest of the title survives later state changes.
  • Merging through each of the three ProPR merge paths produces a commit title without the slot, and the PR's title has no slot after it is merged or closed.
  • A task created from a follow-up on a PR with a slot has no emoji in its title.
  • [Epic] detection and the UI title parsers work for titles with and without the slot (tests for each).
  • An edited webhook caused by a ProPR rename produces no further GitHub write.
  • Docs describe the slot, the three states and the rename policy; CHANGELOG.md has an entry.

Implementation

Starting points (verify each before relying on it):

  • Uses computePullRequestStatus and the prTitleStatus setting (per repository, default on, controls the title only) from the previous issue; the body status block is always written and has no setting; extend its sync entry point so one transition updates body and title together.
  • Title creation: src/jobs/issueJobHelpers.ts (the [N by Model] title default), src/github/prFormatters.ts, src/jobs/issueJobPRRetry.ts, src/jobs/goalCheckpointPublisher.ts (buildGoalPullRequestTitle), src/jobs/prContinuation.ts, packages/core/src/services/epicPRService.ts (ensureEpicPR), packages/core/src/webhook/epicPRHandler.ts (createEpicPR). Nothing edits a PR title after creation today.
  • Title parsers: packages/core/src/webhook/planIssueTracking.ts (prTitle.startsWith('[Epic]')), propr-ui/src/components/TaskList/utils.tsx, propr-ui/src/components/Dashboard/workTitle.ts, propr-ui/src/components/TaskList/rowModel.ts, propr-ui/src/components/GlobalHeaderComponents.tsx. Task titles: buildPrTaskTitle in src/jobs/prTaskTitleHelpers.ts.
  • Merge paths: packages/api/mcp/toolsPullRequests.ts (merge_pull_request sends no commit_title), mergePR in packages/core/src/webhook/checkRunHelpers.ts, enableAutoMerge in src/github/autoMergeOperations.ts (supports commitHeadline; its callers in src/jobs/issueJobPostProcessingHelpers.ts and src/jobs/ultrafixLoopGithub.ts do not pass it).
  • Put the slot pattern, withStatusSlot(title, status) and stripStatusSlot(title) in @propr/shared so the API, worker and UI share them. ⚠️ is two code points (U+26A0 U+FE0F); the pattern must accept it with and without the variation selector.

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: 3530/claude-opus-5-5-show-the-pr-state-as-one--20261113-2040-5cl
    • Base Branch: 3529-epic-pr-status-cui
    • Worktree: issue-3530-20261113-2040-claude-opus-5-5-5cl

    🔍 Track Task Execution

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