-
Notifications
You must be signed in to change notification settings - Fork 117
Fix workflow count mismatch in gh aw status output
#11220
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
…nal workflows Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
gh aw status output
|
@copilot Merge main and recompile |
…orkflows Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pkg/cli/workflows.go
Outdated
| mdWorkflowNames := make(map[string]bool) | ||
| 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 existing helpers to resolve names of workflows
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.
Done! Refactored to use the existing extractWorkflowNameFromPath helper function instead of manually extracting workflow names. This makes the code more maintainable and consistent with the rest of the codebase. Commit: e012d69
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fix
gh aw statusincorrect workflow count displayProblem: The command shows "Fetched 6 workflows" but only displays 3 in the table because internal workflows (without .md files) are counted but not displayed.
Solution:
Changes made:
Modified
pkg/cli/workflows.go:extractWorkflowNameFromPathhelper instead of manual string manipulationAdded
pkg/cli/workflows_count_test.go:extractWorkflowNameFromPathhelperFixed
pkg/workflow/compiler_safe_outputs_config.go:Merged main branch and recompiled all workflows
Validation:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.