Skip to content

docs: add branch naming convention to AGENTS.md and CONTRIBUTING.md#2678

Merged
mnriem merged 1 commit into
github:mainfrom
mnriem:docs/2677-branch-naming-convention
May 22, 2026
Merged

docs: add branch naming convention to AGENTS.md and CONTRIBUTING.md#2678
mnriem merged 1 commit into
github:mainfrom
mnriem:docs/2677-branch-naming-convention

Conversation

@mnriem
Copy link
Copy Markdown
Collaborator

@mnriem mnriem commented May 22, 2026

Summary

Adds a branch naming convention to both AGENTS.md and CONTRIBUTING.md.

Convention

<type>/<number>-<short-slug>

Where <number> is either an issue number or a PR number — whichever is created first.

Prefix When to use Example
feat/ New features feat/2342-workflow-cli-alignment
fix/ Bug fixes fix/2653-paths-only-validation
docs/ Documentation docs/2677-branch-naming-convention
community/ Community catalog additions community/2492-add-mde-extension
chore/ Maintenance, tooling, CI chore/2366-editorconfig

Approach

  • AGENTS.md: Branch naming as a requirement — AI agents comply deterministically when instructed
  • CONTRIBUTING.md: Branch naming as a recommendation — human contributors get guidance without being blocked. The note about using PR numbers accommodates contributors who start with a PR rather than an issue.

Why

The project uses squash merges, so git branch --merged doesn't detect merged branches. Including an issue/PR number in every branch name makes cleanup and traceability straightforward.

Self-referential

This PR's own branch (docs/2677-branch-naming-convention) follows the documented convention.

Closes #2677

- AGENTS.md: branch naming as a requirement for AI coding agents
- CONTRIBUTING.md: branch naming as a recommendation for human contributors
- Convention: <type>/<number>-<short-slug> where number is issue or PR number

Closes github#2677
Copilot AI review requested due to automatic review settings May 22, 2026 17:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents a consistent branch naming convention across the project’s contributor guidance, making branch cleanup and traceability easier in a squash-merge workflow.

Changes:

  • Updates the “Submitting a pull request” checklist in CONTRIBUTING.md to reference the new branch naming convention.
  • Adds a “Branch naming” section to CONTRIBUTING.md (recommendation for human contributors).
  • Adds a “Branch Naming Convention” section to AGENTS.md (requirement for AI agents).
Show a summary per file
File Description
CONTRIBUTING.md Adds a recommended branch naming convention section and links to it from the PR submission checklist.
AGENTS.md Adds a required branch naming convention section for deterministic agent compliance.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@mnriem mnriem merged commit 2dc79a7 into github:main May 22, 2026
11 checks passed
@mnriem mnriem deleted the docs/2677-branch-naming-convention branch May 22, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add branch naming convention to AGENTS.md and CONTRIBUTING.md

2 participants