File tree Expand file tree Collapse file tree
.codex/skills/gh-issues-repo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ description: Manage GitHub issues in the current repository using the gh CLI. Us
3131
3232## Body text inputs (avoid literal \n)
3333
34- When sending multi-line bodies via CLI, prefer ` --body-file - ` with a heredoc so newlines render correctly:
34+ ** For issue creation and edits, always use ` --body-file - ` with a heredoc for multi-line text.**
35+ This avoids literal ` \n ` sequences showing up in GitHub.
3536
3637``` sh
3738gh issue create --title " ..." --body-file - << 'EOF '
@@ -43,7 +44,7 @@ gh issue create --title "..." --body-file - <<'EOF'
4344EOF
4445```
4546
46- If you must inline, use ANSI-C quoting so ` \n ` is interpreted:
47+ If you must inline (single-line or short comments) , use ANSI-C quoting so ` \n ` is interpreted:
4748
4849``` sh
4950gh issue comment 123 --body $' Line 1\n Line 2\n '
You can’t perform that action at this time.
0 commit comments