Skip to content

Open stack PRs from the TUI and match GitHub by branch name - #14

Open
logan-sevendwarves wants to merge 1 commit into
fieldsofland:mainfrom
logan-sevendwarves:logan/open-pr-links
Open

Open stack PRs from the TUI and match GitHub by branch name#14
logan-sevendwarves wants to merge 1 commit into
fieldsofland:mainfrom
logan-sevendwarves:logan/open-pr-links

Conversation

@logan-sevendwarves

@logan-sevendwarves logan-sevendwarves commented Aug 17, 2026

Copy link
Copy Markdown

TLDR

o opens the selected branch PR, O opens every PR in the linear stack, and GitHub enrichment attaches PRs by branch name so restacked local commits still get a link. Add a green checkmark when the PR has been approved instead of text.

image

Why make this change?

PR attach required branch name plus tip OID to match. After a local restack or amend, the link disappeared and o did nothing even when an open PR still existed for that branch. The PR column also crowded remote gap and approval into one cell, and gh pr list used a 3s timeout that often timed out on larger repos.

What changed?

GitHub fetch now lists open PRs with a 30s timeout and attaches by branch name, preferring OID match when several PRs share a name. O opens all stack PR URLs in topology order (deduped). Help overlay leads with GitHub status and o/O/y; footer shows o/O/y PR when a PR is selected. PR column separates remote gap from PR status: open shows yellow #N, approved shows green with yellow #N, merged/closed use short gray labels. r retries GitHub enrichment.

Verification

cargo test passed (221 lib + 8 bin + 2 doc tests).

Restacked branches keep their GitHub PR link so o/O can open PRs even when
local tip OID drifted from remote. O opens every PR in the selected stack.

- gh fetch: 30s timeout, open PRs only, name-based attach with OID preference
- PR column: approved green check, open yellow #N, short merged/closed labels
- Help overlay and footer document o/O/y; r retries GitHub enrichment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant