Show open pull requests in the Review stage #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/pr-tracking"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Review stage on every project page has been empty since #5 because
orbit had no concept of pull requests. This PR adds the full tracking
stack: a new
pull_requeststable mirroring the issue table's shape,webhook updates on every PR lifecycle event (opened, edited, closed,
reopened), periodic sync as a safety net for dropped webhook deliveries,
and handler logic that populates the Review stage with open non-draft
PRs sorted by activity. Draft PRs are tracked but hidden — they become
visible the moment the draft flag flips.
PR activity also factors into the home page's project-row dot state: a
project with a recent PR but no other movement now glows sodium instead
of sitting quiet.
Claude removal
The
claudepackage is gone entirely. Its only job was summarizing PRdiffs into history entry text on merge, but the summaries were verbose
and often read worse than the PR title they replaced. The merge handler
now stores
pr.Titleverbatim as the history entry's summary. The tradeis automation for discipline: write good PR titles and descriptions, and
the History stage reads well for free.
Full audit:
claude/package deleted, import chain cleaned throughmain.go,api/api.go,api/webhooks.go, andconfig.go,ORBIT_CLAUDE_API_KEYenv variable retired,forgejo.GetPullRequestDiff(orphaned after the removal) also deleted. The
historySummaryhelperin the web layer used to prepend
PR #N:to entries with a PR numberattached; that prefix is gone too, matching the new "lean on the PR
title" posture.
Scope expansion: sync tests
sync.gowas untested before this PR. Adding the new PR sync was anopportunity to lock in the existing issue sync's behavior with tests, so
sync_test.gocovers both paths — 4 issue sync cases and 4 PR synccases. Any future regression in the shared sync infrastructure will now
be caught by the suite.
Follow-ups
is a separate spec.
for now.
useful.
base_refandhead_reffields.
Closes arne/orbit#7.
b58afe3654todd0f77c383feat: pull request tracking and Claude removalto Show open pull requests in the Review stage