Claude should respect PR templates when using gh pr create

Resolved 💬 6 comments Opened Aug 29, 2025 by eval-exec Closed Jan 31, 2026

Description

When Claude uses the gh pr create command to submit pull requests, it doesn't respect the repository's pull request template. This results in PRs that may not follow the project's expected format and could be missing important information.

Expected Behavior

Claude should use the gh pr create command in a way that respects and utilizes the PR template defined in the repository (typically in .github/pull_request_template.md or .github/PULL_REQUEST_TEMPLATE.md).

Current Behavior

Claude creates PRs with its own format, bypassing the repository's PR template entirely.

Suggested Solution

Claude should either:

  1. Use gh pr create without the --body flag to trigger the template, or
  2. Read the PR template file and incorporate its structure into the generated PR body

Additional Context

This issue affects the consistency and completeness of PRs created by Claude, potentially making it harder for maintainers to review and process them according to the project's standards.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗