From 9d07c2534fea16370000238b6547ab29c6a2a188 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sun, 1 Feb 2026 19:41:53 +0000 Subject: [PATCH] Update CLAUDE.md with PR auto-creation instructions Added explicit instructions for automatically creating PRs using gh CLI: - Requires PR titles to be short descriptions (under 70 characters) - Specifies PR body format with summary, test plan, issue reference - Provides example using HEREDOC for proper formatting - Ensures PRs target trunk branch Co-authored-by: Aaron Prohaska --- CLAUDE.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index d80918d..871ce27 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -45,9 +45,32 @@ For every change request, follow this workflow: - Push the feature branch to origin 6. **Create a Pull Request** - - Create a PR targeting `trunk` - - Include a summary of changes and test plan - - Provide the PR URL for review + - ALWAYS create the PR automatically using the GitHub CLI + - Command format: `gh pr create --title "" --body "<description>" --base trunk` + - The PR title MUST be a short description of the work being done (keep it concise, under 70 characters) + - The PR body must include: + - Summary of changes (bullet points preferred) + - Test plan or verification steps + - Reference to the issue (e.g., "Fixes #123") + - Signature: "🤖 Generated with [Claude Code](https://claude.ai/code)" + - Use a HEREDOC to pass the body for proper formatting: + ```bash + gh pr create --title "Short description" --base trunk --body "$(cat <<'EOF' + ## Summary + - Change 1 + - Change 2 + + ## Test Plan + - [x] Build succeeds + - [x] Tests pass + + Fixes #123 + + 🤖 Generated with [Claude Code](https://claude.ai/code) + EOF + )" + ``` + - Verify the PR was created successfully and return the PR URL for review ### Workflow Exceptions