Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Repo Assist] Fix viewFullStatic: add queued separator and correct branch coloring - #19

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/fix-view-full-static-queued-2026-04-24-ef39e85a32ad3af7
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/fix-view-full-static-queued-2026-04-24-ef39e85a32ad3af7

Conversation

@github-actions

Copy link
Copy Markdown

πŸ€– This is an automated pull request from Repo Assist, an AI assistant.

Summary

gh stack view (full view, non-interactive/static mode) was missing the queued section separator that gh stack view --short already shows. Additionally, queued branches were rendered in magenta (the merged-branch color) instead of warning/yellow, and active (non-merged, non-queued) branches were unnecessarily colored magenta.

Root cause

viewFullStatic was written before queued-branch support was added. The separator and coloring logic were never updated to handle the queued state, resulting in inconsistent behavior between --short and the default full view.

Changes

cmd/view.go β€” viewFullStatic

Before After
Only β•Œβ•Œβ•Œ merged β•Œβ•Œβ•Œ separator Adds β•Œβ•Œβ•Œ queued β•Œβ•Œβ•Œ separator when transitioning from active β†’ queued section
All non-current branches: magenta Merged: magenta Β· Queued: warning/yellow Β· Active: default (uncolored)

cmd/view_test.go

  • TestViewFullStatic_QueuedStack: verifies queued separator and β—Ž icon appear in static full-view output
  • TestViewFullStatic_MixedQueuedAndMerged: verifies both separators appear in the correct order (queued before merged)

Consistency

After this fix, viewFullStatic matches viewShort semantics:

  • βœ… Queued branches highlighted in warning color
  • βœ… Section separator shown when transitioning to queued/merged sections
  • βœ… Merged branches in a distinct style
  • βœ… Active branches in default (uncolored) style

Test Status

Tests could not be executed locally due to Go toolchain version mismatch in the CI agent environment (go 1.25.7 required; go 1.24.13 available) and network restrictions on sum.golang.org. The CI workflow (test.yml) will run tests on GitHub. The changes are straightforward display-logic adjustments with no algorithmic risk.

Generated by 🌈 Repo Assist, see workflow run. Learn more.

Warning

⚠️ Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • sum.golang.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "sum.golang.org"

See Network Configuration for more information.

Generated by 🌈 Repo Assist, see workflow run. Learn more.

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@11c9a2c442e519ff2b427bf58679f5a525353f76

viewFullStatic (non-interactive / static full view) was missing the
'queued' section separator that viewShort already shows. Additionally,
queued branches were rendered in magenta (same as merged branches)
instead of in warning color (yellow), and active branches had magenta
applied unnecessarily.

Changes:
- Add a 'queued' separator (β•Œβ•Œβ•Œ queued β•Œβ•Œβ•Œ) when transitioning from
  active to queued section, consistent with viewShort behaviour.
- Update the merged separator comment to reflect that queued branches
  also appear above it.
- Switch branch name coloring to a switch statement:
    merged  β†’ magenta (unchanged)
    queued  β†’ warning/yellow (was magenta)
    current β†’ cyan (unchanged)
    active  β†’ uncolored default (was magenta)
- Add TestViewFullStatic_QueuedStack and
  TestViewFullStatic_MixedQueuedAndMerged to cover the new behaviour.

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants