claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Claude should respect PR templates when using gh pr create

Open eval-exec opened this issue 6 months ago • 3 comments

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.

eval-exec avatar Aug 29 '25 08:08 eval-exec