Add proactive staleness warnings with actionable guidance to status command#6211
Closed
Add proactive staleness warnings with actionable guidance to status command#6211
Conversation
… status command Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance gh aw status with actionable staleness guidance
Add proactive staleness warnings with actionable guidance to status command
Dec 12, 2025
Collaborator
|
@copilot the user can run "gh aw compile" to recompile all workflows |
…d of 'gh aw compile --all' Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
pelikhan
reviewed
Dec 12, 2025
| ref, _ := cmd.Flags().GetString("ref") | ||
| labelFilter, _ := cmd.Flags().GetString("label") | ||
| return StatusWorkflows(pattern, verbose, jsonFlag, ref, labelFilter) | ||
| fixSuggestions, _ := cmd.Flags().GetBool("fix-suggestions") |
Contributor
Author
There was a problem hiding this comment.
Done in 960481d. Removed the --fix-suggestions flag. The Action Needed column and summary footer are now always displayed.
Output now shows:
│Action Needed │
│- │
│gh aw compile code-health-file-diet.campaign.md│
And summary footer:
⚠ 4 workflows need compilation
Run: ⚡ gh aw compile
| ref, _ := cmd.Flags().GetString("ref") | ||
| labelFilter, _ := cmd.Flags().GetString("label") | ||
| return StatusWorkflows(pattern, verbose, jsonFlag, ref, labelFilter) | ||
| fixSuggestions, _ := cmd.Flags().GetBool("fix-suggestions") |
Contributor
Author
There was a problem hiding this comment.
Done in 960481d. The --fix-suggestions flag has been removed and the functionality is now always on.
…footer always on Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
reviewed
Dec 12, 2025
| } | ||
|
|
||
| // pluralize returns "s" if count != 1, otherwise empty string | ||
| func pluralize(count int) string { |
Collaborator
There was a problem hiding this comment.
@copilot rephrase so you do not have to pluralize, remove function
Contributor
Author
There was a problem hiding this comment.
Done in ea40e0c. Rephrased the message to "Workflows needing compilation: X" which doesn't require pluralization, and removed the pluralize function.
Updated output:
⚠ Workflows needing compilation: 4
Run: ⚡ gh aw compile
…function Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan: Add Proactive Staleness Warnings with Actionable Guidance
ActionNeededfield to WorkflowStatus struct with console tagAdd(Removed per feedback - functionality always on)--fix-suggestionsflag to generate executable shell scriptImplementation Summary
Features Added
ActionNeeded Column: New column in status table showing copy-paste ready commands
Color-Coded Compiled Status: Visual indicators for workflow state
Summary Footer: Actionable summary after status table
Testing
Files Modified
pkg/cli/status.go- Command definition (removed --fix-suggestions flag)pkg/cli/status_command.go- Core implementationpkg/cli/status_command_test.go- New testspkg/cli/commands_test.go- Updated test callsDesign Decisions
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.