Skip to content

Merge dev: dynamic shell completions#42

Merged
rbansal42 merged 4 commits intomainfrom
dev
Feb 13, 2026
Merged

Merge dev: dynamic shell completions#42
rbansal42 merged 4 commits intomainfrom
dev

Conversation

@rbansal42
Copy link
Owner

Summary

Merges the dynamic shell completions feature and associated fixes from dev to main.

Changes Since Last Main Merge

Dynamic Shell Completions (PR #40 + integration fixes)

  • New internal/cmdutil/completion.go module with reusable static and API-backed completion functions
  • Registered completions across 41+ command files covering:
    • Static enums: --state, --kind, --priority
    • API-backed: --workspace, --repo, --base/--head, --reviewer/--assignee
    • Positional args: PR numbers, issue IDs, branch names
  • All completions fail silently on auth/network errors
  • Tests for static completion helpers and filterPrefix

Code Review Fixes

  • Added --base branch completion to pr edit
  • Added --assignee completion to issue list
  • Added --author completion to pr list
  • Added tests for filterPrefix with tab-separated values

Quality Gates

  • Build: passing
  • Tests: all passing
  • 5-agent code review: passed (0 critical, 0 important remaining)
  • 5-agent integration review: passed

Follow-up Issues

#35, #36, #37, #38, #39, #41

rahul-hudle and others added 4 commits February 13, 2026 18:45
Add comprehensive tab-completion support using Cobra's RegisterFlagCompletionFunc
and ValidArgsFunction APIs. Includes:

- Shared completion helper module (internal/cmdutil/completion.go)
- Static enum completions for --state, --kind, --priority flags
- Dynamic API-backed completions for --workspace, --repo, --base/--head,
  --reviewer/--assignee flags
- Positional arg completions for PR numbers, issue IDs, branch names
- All completions fail silently on auth/network errors (no crashes)
- Tests for static completion helpers
- Add --base branch completion to pr edit command
- Add --assignee completion to issue list command
- Add tests for filterPrefix with tab-separated values
feat: add dynamic shell completions for all commands
@rbansal42 rbansal42 merged commit 6c47221 into main Feb 13, 2026
9 checks passed
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.

2 participants