Skip to content

Comments

docs: add PR title format requirements to Claude instructions#2220

Merged
marcel-rbro merged 1 commit intomasterfrom
docs/add-pr-title-format-to-instructions
Feb 3, 2026
Merged

docs: add PR title format requirements to Claude instructions#2220
marcel-rbro merged 1 commit intomasterfrom
docs/add-pr-title-format-to-instructions

Conversation

@marcel-rbro
Copy link
Contributor

@marcel-rbro marcel-rbro commented Feb 3, 2026

Summary

Adds PR title format documentation to .claude/instructions.md to prevent AI agents from creating PRs with incorrect titles that fail CI checks.

Problem

PR title format requirements were:

  • ✅ Documented in CONTRIBUTING.md:350 (link only, no examples)
  • ✅ Enforced by .github/workflows/check-pr-title.yaml
  • Missing from .claude/instructions.md (where AI looks first)

This caused all 4 Phase 1 PRs (#2216, #2217, #2218, #2219) to initially fail CI checks and require manual title corrections.

Solution

Added new "Creating pull requests" section in .claude/instructions.md with:

  • Format requirements: Conventional Commits (docs:, fix:, feat:, etc.)
  • Clear examples: Both correct (✅) and incorrect (❌) formats
  • Enforcement notice: GitHub Actions validation
  • References: Links to CONTRIBUTING.md and workflow file

Location

Added after line 130 in the "Before submitting" section to keep all pre-submission requirements together.

Benefits

  1. Prevents errors: AI agents know correct format upfront
  2. Faster workflow: No manual fixes needed after PR creation
  3. Self-documenting: Instructions where AI looks first
  4. Consistent: Aligns with other pre-submission checks

Testing

  • Section added to correct location
  • Markdown formatting correct (no linting errors)
  • Examples are clear and actionable
  • Consistent with existing documentation style

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only change with no code or workflow logic modifications; risk is limited to potential confusion if the guidance is inaccurate.

Overview
Adds a new “Creating pull requests” section to .claude/instructions.md that documents the required Conventional Commits PR title format, with accepted type prefixes, good/bad examples, and a note that CI enforces this via the PR title check workflow (with references to CONTRIBUTING.md and .github/workflows/check-pr-title.yaml).

Written by Cursor Bugbot for commit c816d24. Configure here.

Add documentation about PR title format requirements using
Conventional Commits to .claude/instructions.md. This prevents
AI agents from creating PRs with incorrect titles that fail CI checks.

Includes:
- Required format (docs:, fix:, feat:, etc.)
- Clear examples of correct and incorrect titles
- Reference to enforcement via GitHub Actions

This documentation gap caused 4 PRs to initially fail CI checks
and required manual title corrections.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added the t-docs Issues owned by technical writing team. label Feb 3, 2026
@apify-service-account
Copy link

Preview for this PR was built for commit c816d24 and is ready at https://pr-2220.preview.docs.apify.com!

@marcel-rbro marcel-rbro requested a review from TC-MO February 3, 2026 14:04
@marcel-rbro marcel-rbro merged commit dc56258 into master Feb 3, 2026
15 of 16 checks passed
@marcel-rbro marcel-rbro deleted the docs/add-pr-title-format-to-instructions branch February 3, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-docs Issues owned by technical writing team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants