gh-dash/Q/Using gh-dash, is there a quick way I can easily see an issue if I know the issue id?
Using gh-dash, is there a quick way I can easily see an issue if I know the issue id?
- Short answer: No dedicated “go to issue N” command in dash, and GitHub search syntax has no official issue-number qualifier. Exact lookup is the Issues API / GitHub/CLI/gh/issue/view. Inside dash,
/ + the bare number (or #N) is a workable text-search hack when the number is distinctive and the section is repo-scoped. Exact lookup (not search)
- GraphQL:
repository(owner:, name:) { issue(number: N) { … } } — real by-number fetch. - REST:
GET /repos/{owner}/{repo}/issues/{issue_number}. - CLI (same path):
gh issue view 123gh issue view 123 --web
- Answer/Official from
gh issue view and REST — Get an issue.
What dash actually queries
- Issue sections call GraphQL
search(type: ISSUE, query: …), not repository.issue(number:). The filter string is wrapped as is:issue archived:false <your filter> sort:updated (internal/data/issueapi.go in dlvhdr/gh-dash). - So
/ is always Search API text + qualifiers, never a direct id fetch. Local clone: $(ghq root)/github.com/dlvhdr/gh-dash.
Does search syntax look up by id?
- Documented issue/PR search qualifiers do not include
number: / id: for the issue’s own number. Answer/Official from Searching issues and pull requests. - Empirically,
number:677 is not “issue 677” — it can hit titles that merely mention #677. - Typing
677 or #677 in a repo:owner/name-scoped query often surfaces that issue (sometimes alone) because Search indexes the number / #N references as text. Short numbers (5, 42) produce many false positives and can rank the wrong row first.
Inside gh-dash when you know N
- Prefer launching from the target repo (smart filtering prepends
repo:). s → Issues view if needed → / → put N or #N in the search bar (keep repo:) → Enter.- Treat the hit as ranked text search, not a guaranteed singleton; then sidebar preview,
o (browser), y (copy number). Answer/Official from Searching, Global, Selected Item.
Practical habit
- Need certainty →
gh issue view <number> (or --web). - Already in dash and the number is distinctive →
/ + N under smart-filtered repo:. - Triage queues → sections + normal search qualifiers (
assignee:, label:, …).