What
Claude Code includes example gh api commands, the GitHub command-line tool, that Claude follows when posting to GitHub. They now read text from files instead of writing it inline in the command.
- Issue comments:
-F body=@<text-file>instead of-f body='<text>', with an extra hint line. - Issue creation:
-F title=@<title-file> -F body=@<text-file>instead of-f title='<title>' -f body='<text>'. - Pull request creation fallback:
-F title=@<title-file>and-F body=@<text-file>. - Release creation:
-F name=@<title-file> -F body=@<text-file>instead of-f name='<title>' -f body='<text>'. pr review:-F body=@<text-file>instead of an inline body.
Why
Text with quotes or special characters written inline can be mangled by the shell. Reading it from a file avoids that, so what Claude posts to GitHub arrives as written.