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
- You may clone a repository and make local edits in that clone
2762
2834
- Do NOT create branches, commits, push changes, or open pull requests in this run`
2763
-
: `
2835
+
: shouldAutoCreatePr
2836
+
? `
2837
+
When the user asks to clone or work in a GitHub repository:
2838
+
- Clone the repository into /tmp/workspace/repos/<owner>/<repo> using \`gh repo clone <owner>/<repo> /tmp/workspace/repos/<owner>/<repo>\`
2839
+
- Work from inside that cloned repository for follow-up code changes
2840
+
- After completing code changes in a cloned repository, create a branch, stage your changes with \`git add\` and commit them with the \`git_signed_commit\` tool (do NOT use \`git commit\`/\`git push\` — they are blocked), and open a draft pull request from inside the clone without waiting to be asked. Before opening the PR, check the cloned repo for a PR template at \`.github/pull_request_template.md\` (or variants; fall back to the org's \`.github\` repo via \`gh api\`) and use it as the body structure, and search for matching open issues with \`gh issue list --search\` to include \`Closes #<n>\` / \`Refs #<n>\` links.
2841
+
- Keep the PR description brief overall. Summarize only the most important changes — do NOT enumerate every change you made. A few sentences or bullets is plenty.
2842
+
${whyContextInstruction.trimStart()}
2843
+
${publicRepoSafetyInstruction.trimStart()}
2844
+
- End the PR description with a horizontal rule followed by this footer line: ${prFooter}
2845
+
- Always create the PR as a draft. Do not ask for confirmation before publishing completed code changes`
2846
+
: `
2764
2847
When the user explicitly asks to clone or work in a GitHub repository:
2765
2848
- Clone the repository into /tmp/workspace/repos/<owner>/<repo> using \`gh repo clone <owner>/<repo> /tmp/workspace/repos/<owner>/<repo>\`
2766
2849
- Work from inside that cloned repository for follow-up code changes
0 commit comments