Skip to content

fix: glab api has no --jq flag, pipe to jq instead - #215

Merged
atomantic merged 1 commit into
mainfrom
fix/next-gitlab-support
Aug 27, 2026
Merged

fix: glab api has no --jq flag, pipe to jq instead#215
atomantic merged 1 commit into
mainfrom
fix/next-gitlab-support

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

/do:next's GitLab paths call glab api ... --jq, but plain glab api has no built-in --jq flag — unlike gh api, and unlike the glab issue/glab mr subcommands, which do. Every one of those calls fails on a GitLab repo. This pipes them to the standalone jq binary instead.

Four call sites in commands/do/next.md:

  • glab api user in the --self in-flight-set filter (step 1)
  • glab api user in the --self explicit-#num author gate (step 5)
  • glab api user in the Phase 2 claim block
  • glab api projects/:id/issues/<N>/links in the native blocked-by check (step 4)

Follow-up to #150 — the fix was written 17 minutes after that PR merged and never got shipped.

Test plan

  • npm test — 397 pass, 0 fail
  • grep -n 'glab api [a-z:/<>-]*--jq' commands/do/next.md returns nothing
  • Not exercised against a live GitLab host (glab isn't installed locally); the flag set is per glab's documented api command.

Caught live while dogfooding the fix against a real GitLab issue: plain
glab api (unlike glab issue/glab mr subcommands) has no built-in --jq
flag and errors with "Unknown flag: --jq." Every glab api call now pipes
to the standalone jq binary instead.
@atomantic
atomantic merged commit c9822f8 into main Aug 27, 2026
4 checks passed
@atomantic
atomantic deleted the fix/next-gitlab-support branch August 27, 2026 16:00
@atomantic atomantic mentioned this pull request Aug 27, 2026
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