Repository navigation
docs(gh-skill): document gh api field passing pitfalls - #14700
Closed
MatiasOlivera wants to merge 1 commit into
Closed
MatiasOlivera wants to merge 1 commit into
MatiasOlivera wants to merge 1 commit into
Conversation
Add a section explaining the difference between -f/--raw-field and -F/--field (typed conversion and @-file expansion), avoiding @ ambiguity with --input, and reading back after mutation.
Contributor
|
Thanks for your pull request! Unfortunately, it doesn't meet the requirements for review:
Please update your PR to address the above. This PR will be automatically closed in 4 days if these requirements are not met. Full contribution requirements
|
5 tasks done
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.
Description
Improve the official
ghskill by documenting how to pass values safely throughgh api. Agents frequently mishandle-f/-F: raw field sends literalstrings without type conversion or
@expansion; typed field convertstrue/false/nullnumbers, expands{owner}/{repo}/{branch}from remotes,and reads from file when the value starts with
@. This causes accidentalfile reads and failed mutations. The existing section also lacked guidance
about body ambiguity and verification read-back.
Closes #14701
How did you test this change?
Not tested by execution; change is documentation only in
skills/gh/SKILL.md. Verified the flags and placeholder behavior againstgh api --helplocally before writing.Key points
--inputdocumented as deterministic escape hatch when bodies may start with@.Notes for reviewers
Review starts at the new
Passing values in gh apisection betweenFall back to gh apiandAuthentication.Authorship and follow-up
Who wrote this:
Who answers review comments: