-
Notifications
You must be signed in to change notification settings - Fork 46
Add gh aw list command for fast workflow enumeration
#11218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add new list command that shows basic workflow info without GitHub status - Create list_workflows_command.go with NewListCommand and RunListWorkflows - Add comprehensive tests in list_workflows_command_test.go - Register command in main.go under Development Commands group - Fix duplicate logger declaration in compiler_safe_outputs_config.go - Command supports pattern filtering, JSON output, and label filtering Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
gh aw list command for fast workflow enumeration
|
@copilot Merge main and recompile |
…ot/add-gh-aw-list-command # Conflicts: # pkg/workflow/compiler_safe_outputs_config.go
Resolved merge conflict by accepting main's logger declaration and removing conflict markers Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pkg/cli/list_workflows_command.go
Outdated
|
|
||
| for _, file := range mdFiles { | ||
| base := filepath.Base(file) | ||
| name := strings.TrimSuffix(base, ".md") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Use helpers to resolve names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use stringutil.NormalizeWorkflowName() helper instead of manual TrimSuffix (commit a9d219f).
Replaced manual filepath.Base + TrimSuffix with NormalizeWorkflowName helper Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pkg/cli/list_workflows_command.go
Outdated
| var workflows []WorkflowListItem | ||
|
|
||
| for _, file := range mdFiles { | ||
| base := filepath.Base(file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot look for other helper "extract..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use extractWorkflowNameFromPath() helper and removed unused filepath import (commit 78f8392).
Replaced manual filepath.Base + NormalizeWorkflowName with extractWorkflowNameFromPath helper and removed unused filepath import Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Add documentation for the new `gh aw list` command that was merged in PR #11218. This command provides fast workflow enumeration without querying GitHub API for workflow state. Changes: - Add gh aw list to "Most Common Commands" table - Add complete documentation section under "Monitoring" - Include usage examples and options - Clarify differences from gh aw status command Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implementation Plan for
gh aw listCommandlist_workflows_command.gowithNewListCommand()functionRunListWorkflows()function with simplified logiclist_workflows_command_test.goSummary
Successfully implemented
gh aw listcommand that:status)Merged main branch and resolved conflicts in
compiler_safe_outputs_config.go.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.