Skip to content

feat(zsh): sort ghi issues oldest-first like ghsq#320

Merged
laurigates merged 1 commit into
mainfrom
zsh/ghi-sort-oldest-first
Jul 12, 2026
Merged

feat(zsh): sort ghi issues oldest-first like ghsq#320
laurigates merged 1 commit into
mainfrom
zsh/ghi-sort-oldest-first

Conversation

@laurigates

Copy link
Copy Markdown
Owner

Summary

ghi listed issues in gh's default order (most-recently-updated first) with an Updated column, while the PR pickers ghsq/ghrb sort oldest-first by creation date and pass --layout=reverse so the cursor lands on the oldest entry at the top. This aligns ghi with that convention.

  • sort_by(.createdAt) in the --jq pipeline (ascending, oldest first)
  • --layout=reverse on the fzf call, so the oldest issue is at the top under the cursor
  • Date column switched from Updated to Created, so the visible date matches the sort key

Test plan

  • zsh -n on the rendered ~/.zshrc (via chezmoi cat) — parses clean
  • Ran the gh issue list … | jq | column -t pipeline against this repo — issues come out ascending by creation date (🔗 Broken Links Detected in Documentation #232 from 2026-06-08 at the top)
  • chezmoi apply ~/.zshrc and exercised ghi interactively

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q6JD1GzND7vv1uxWuPSWrx

ghi listed issues in gh's default order with an "Updated" column, while the
PR pickers (ghsq/ghrb) sort oldest-first by creation date with
--layout=reverse so the cursor lands on the oldest entry at the top. Align
ghi with that: sort_by(.createdAt), --layout=reverse, and show the created
date so the visible column matches the sort key.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6JD1GzND7vv1uxWuPSWrx
@github-actions github-actions Bot added the shell label Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Broken Links Detected

Summary

Status Count
🔍 Total 170
✅ Successful 159
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 9
❓ Unknown 0
🚫 Errors 2

Errors per input

Errors in exact_dot_claude/docs/prds/daily-catchup.PRD.md

Errors in docs/adrs/0009-conventional-commits-release-please.md


Please fix the broken links before merging.

@laurigates
laurigates merged commit 01753cc into main Jul 12, 2026
7 of 8 checks passed
@laurigates
laurigates deleted the zsh/ghi-sort-oldest-first branch July 12, 2026 16:21
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.

1 participant