You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/pr.mdc
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -213,17 +213,19 @@ Format:
213
213
214
214
No status column — GitHub already shows that. The `---` separates the stack list from the rest of the PR description.
215
215
216
-
To update the PR description:
216
+
To update the PR description, use `--body-file` to avoid shell quoting issues with special characters in the body:
217
217
218
218
```bash
219
-
# Get current PR description
220
-
gh pr view <PR_NUMBER> --json body --jq '.body'
219
+
# Get current PR description into a temp file
220
+
gh pr view <PR_NUMBER> --json body --jq '.body' > /tmp/pr-body.md
221
221
222
-
# Update the description (prepend or replace the stack list section)
223
-
gh pr edit <PR_NUMBER> --body "<updated body>"
224
-
```
222
+
# Edit /tmp/pr-body.md to prepend or replace the stack list section
223
+
# (replace everything from "## PR Stack" up to and including the "---" separator,
224
+
# or prepend before the existing description if no stack list exists yet)
225
225
226
-
When updating, replace everything from `## PR Stack` up to and including the `---` separator. If no stack list exists yet, prepend it before the existing description.
0 commit comments