Repository navigation
Export workflow source in gh aw list --json output - #77866
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one non-blocking test coverage gap: the new absent-source assertion does not verify that the JSON key is omitted rather than present with a null value. The implementation otherwise correctly extracts the string source and keeps it out of table output.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported, and the change includes focused tests for exporting present source metadata while omitting absent values.
No open issues 🎉
What changed in this PR
This PR exposes upstream workflow provenance through gh aw list --json by reading the source frontmatter field for local workflows, while omitting it when unset and leaving remote listings unpopulated.
Changes:
- Added an optional, table-hidden
sourcefield toWorkflowListItem. - Extracted
sourcefrom local workflow frontmatter. - Added tests covering present and absent
sourcevalues.
| File | Description |
|---|---|
| pkg/cli/list_workflows_command.go | Adds and populates the optional workflow source metadata field for local JSON listings. |
| pkg/cli/list_workflows_command_test.go | Verifies source metadata is exported when present and omitted when absent. |
Review effort: Lite (dynamic)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /codebase-design. The change is small, correct, and well-scoped. go test ./pkg/cli passes and gofmt is clean. Nothing here blocks merge, but there are three items worth addressing.
📋 Key Themes & Highlights
Key Themes
- Test edge cases: only the absent-
sourceand happy-path string cases are asserted. Non-string and empty values are untested. - Table-hidden claim unverified: the test only exercises
--json, soconsole:"-"is not checked. - Status parity:
gh aw status --jsonreusesWorkflowListItembut does not populateSource, so the two commands disagree.
Positive Highlights
- ✅ Reuses the existing frontmatter read path rather than adding a second parser.
- ✅
omitemptyplus the non-string-safe type assertion (source, _ :=) fail closed. - ✅ Remote listings are explicitly documented as not populating
source.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Acknowledging the automated reviewer notices (6884846781, 6884847081, 6884847699, 6884847790, 6884849781, 6884851197, 6884910167, 6884917398, 6884925417): these are run-status and comment-memory records with no additional actionable findings. The inline findings from these runs were addressed in 0fb42e7 (shared frontmatter helper so |
|
🎉 This pull request is included in a new release. Release: |
Workflows managed from an upstream bundle declare a
source:frontmatter entry, butgh aw list --jsondid not expose it, so tooling could not tell which workflows are upstream-managed without re-parsing each file.This adds a
sourcefield toWorkflowListItem, read from the workflow frontmatter alongsideonandlabels. It is JSON-only (hidden from the table) and omitted when unset. Remote listings (--repo) only see file names, sosourceis not populated there.Adds
TestRunListWorkflows_SourceFieldcovering present and absentsource.