-
-
Notifications
You must be signed in to change notification settings - Fork 9
fix(intent): review stale skills against artifact coverage #120
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
08eb87e
remove notify workflow template
LadyBluenotes 97790a1
harden check-skills
LadyBluenotes adb9b55
Add stale `signals`
LadyBluenotes a44edc3
Parse `_artifacts`
LadyBluenotes 2aaeb5b
Add artifact consistency signals
LadyBluenotes 2bfb674
Add missing package coverage and artifact ignore support
LadyBluenotes 66125c5
Fix workspace-root skill resolution and private package coverage noise
LadyBluenotes 490b93b
Add workflow update advisory
LadyBluenotes b484615
fix release script
LadyBluenotes 74951e4
changeset
LadyBluenotes 54f8c23
ci: apply automated fixes
autofix-ci[bot] a4da457
update docs
LadyBluenotes 675ed04
ci: apply automated fixes
autofix-ci[bot] a46766d
rm empty codex file
LadyBluenotes 721a398
fix up
LadyBluenotes f655d04
small fixes
LadyBluenotes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@tanstack/intent': patch | ||
| --- | ||
|
|
||
| Improve `intent stale` for monorepos by checking repo `_artifacts` coverage, flagging uncovered public workspace packages, and ignoring private workspaces. | ||
|
|
||
| The generated skills workflow now opens one grouped review PR with maintainer prompts, includes a workflow version stamp, and `intent stale` warns when maintainers should rerun `intent setup`. |
Empty file.
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
51 changes: 0 additions & 51 deletions
51
packages/intent/meta/templates/workflows/notify-intent.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
🧩 Analysis chain
🌐 Web query:
gh CLI --jq empty array null output behavior .[0].url💡 Result:
When using gh CLI with --jq '.[0].url' on a command that returns an empty JSON array (e.g., gh pr list --json url --jq '.[0].url' when no PRs match), the output is null. This follows standard jq behavior: accessing .[0] on an empty array [] returns null, as there is no element at index 0. gh CLI uses an embedded jq implementation (gojq), which matches standard jq for this case. Official documentation confirms --jq processes JSON output using jq syntax (https://cli.github.com/manual/gh_help_formatting). Past bugs with empty arrays producing null unexpectedly (e.g., [] | unique) were fixed by updating gojq, but direct indexing like .[0] correctly yields null. To safely get the first URL or empty output, use: --jq '.[0].url // empty' or check length first: --jq 'if length > 0 then .[0].url else empty end'.
Citations:
uniqueproduces null from empty arrays cli/cli#7001gh cache list --jsonshould output[]when no caches exist cli/cli#9882PR_URLbecomes the literal string"null"when no PR exists, causinggh pr edit nullto fail.When
gh pr list --head "$BRANCH" --json url --jq '.[0].url'finds no matching PRs, it returns an empty JSON array. The jq expression.[0].urlon an empty array evaluates to jq's null value, which the gh CLI (via its embedded jq implementation) outputs as the literal stringnull. This causesPR_URL="null"(a non-empty string), making the condition[ -n "$PR_URL" ]true. The workflow then attemptsgh pr edit null --body-file pr-body.md, which fails instead of falling through to create a new PR.Use
--jq '.[0].url // empty'to output an empty string when no PR exists:📝 Committable suggestion
🤖 Prompt for AI Agents