Repository navigation
fix: quote argument-hint YAML values so Copilot CLI ≥1.0.65 loads all skills (closes #481) - #482
Merged
Conversation
… skills `argument-hint: [foo]` YAML-parses as a flow sequence (array), not a string. Downstream slash-command loaders that validate `argument-hint` as a string — notably GitHub Copilot CLI ≥ 1.0.65 — silently reject the skill on load, and the command disappears from the CLI menu. Wrap the value in double quotes so it parses as a string. No behaviour change on Claude Code.
Contributor
|
Interesting. This appears to be a LLM-driven robot that automatically scans public repositories, identifies "issues," raises issues, and submits pull requests. This PR seems minor, merely a typo fix. If the problem it points out exists, merging this PR seems fine. |
nockawa
added a commit
that referenced
this pull request
Jul 13, 2026
…ates (#483) GitHub withholds repository secrets from `pull_request` runs originating in a fork, so PROJECT_TOKEN resolved to "" and gh exited 4 ("set the GH_TOKEN environment variable") on the first API call. Board sync therefore failed for every external contributor's PR (first seen on PR #482, from a fork). pull_request_target runs in the base repo's context, where the secret is available. Switch the trigger and update both PR job guards — link-pr-to-issue (opened) and update-on-merge (closed) — since both authenticate with the PAT and both were broken on forks. pull_request_target is safe here only because the workflow never trusts fork content: it does not check out PR code, and the fork-controlled values it reads (PR title, head ref) already go through `env:` rather than being inlined into `run:`. Also add workflow-level `permissions: {}` — every job uses the PAT, so GITHUB_TOKEN needs no scopes. Documented the invariant in the trigger comment. Note: pull_request_target loads the workflow from the base branch, so this takes effect only once merged to main; it does not retroactively fix PR #482's run.
nockawa
added a commit
that referenced
this pull request
Jul 14, 2026
* ci: block closing keywords that would auto-close a pull request
GitHub scans a PR's description and its commit messages for a bare KEYWORD-then-
reference adjacency (close/closes/closed, fix/fixes/fixed, resolve/resolves/
resolved, immediately followed by #N) and closes item N on merge into the default
branch. Two properties make this a trap:
1. The parser has NO notion of negation. The phrase "does not retroactively
fix", immediately followed by "#N", links and closes item N exactly as if it
had read "fixes #N".
2. Pull requests and issues share one numbering space, so an N that happens to
be a PR closes that PR.
Both fired together: the body of PR #483 contained that negated phrasing followed
by a bare reference to the then-open PR #482, silently closing that unrelated
in-flight PR on merge. GitHub attributes such closes to whoever merged, so the
audit trail blamed a human who never clicked anything.
There is no repo/org/enterprise setting to disable closing keywords, so a check is
the only systemic defense. New `closing-keywords` job scans the same two surfaces
GitHub does and fails only when a keyword-linked number resolves to a pull request.
The everyday intended use -- a closing keyword naming a real issue -- stays green.
Surface handling mirrors GitHub's own parser:
- PR description is Markdown: fenced blocks and inline code spans are stripped
first, since GitHub does not parse references inside them. Without this the
guard flags any doc that merely quotes a keyword -- including the backticked
form the guard's own error message recommends.
- Commit messages are plain text: backticks do NOT defuse a keyword there, so
they are scanned raw. This matters because squash-merge concatenates every
commit message into the squash body.
Regex notes: the leading (^|[^[:alnum:]_]) is a word boundary -- without it
"postfix #N" trips on the trailing "fix". Spelled out rather than \b so it does
not rely on GNU-grep extensions. An intervening word (as in "fix PR #N") breaks
GitHub's adjacency rule and is correctly not matched here either.
Wired into the aggregate `gate` verdict; skipped on push/workflow_dispatch, where
there is no PR body to scan.
Verified: replays the incident (PR #483 -> RED, PR #482 -> GREEN), plus 15
positive/negative regex cases including the defusing forms the error suggests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: don't fail clean PRs when no closing keyword is present
The step's shell is `bash -e` and the script adds pipefail, so the keyword grep
exiting 1 on NO match -- the healthy, common case -- propagated and killed the
script before it printed anything. Every clean PR went red; caught when this
branch's own PR failed its own check with zero output.
Guard the assignment with `|| true` and note why it must stay. Verified under
`bash -e` + pipefail: no-keyword -> exit 0, keyword-present -> detected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
Closes #481.
Summary
Purely mechanical single-character transform to 11 file(s): wrap the value after
argument-hint:in double quotes so YAML parses it as a string instead of a flow-sequence array. Fixes GitHub Copilot CLI ≥ 1.0.65 silently dropping the skill.Bare
[...]is YAML flow-sequence syntax → the loader receives["foo"](a list), fails itsstrvalidation, and rejects the SKILL without an error. Claude Code, VS Code Agent Skills, and every other loader documentargument-hintas a string; the quoted-string form is what all reference docs show.Files (11)
.claude/skills/coverage/SKILL.md.claude/skills/benchmark/SKILL.mdCONTRIB.md.claude/skills/start-task/SKILL.md.claude/skills/start-subtask/SKILL.md.claude/skills/complete-subtask/SKILL.md.claude/skills/complete-task/SKILL.md.claude/skills/create-issue/SKILL.md.claude/skills/implement-feature/SKILL.md.claude/skills/start-design/SKILL.md.claude/skills/start-research/SKILL.mdVerification
yaml.safe_loadon every changed frontmatter reportsargument-hintasstr"or\, so bare double-quote wrapping is safeSources
argument-hintdocumented as a string