MarshallOfSound

#49992: docs: add PR labeling guidance to CLAUDE.md

Merged
Created: Mar 2, 2026, 2:35:35 AM
Merged: Mar 2, 2026, 10:05:32 AM
1 comments
Target: main

Summary

  • Document semver/* label conventions (none / patch / minor / major) so Claude Code picks the right one when opening PRs.
  • Document target/{N}-x-y backport policy: bug fixes → all active lines except the oldest; security fixes → all active lines; features/breaking → main-only.
  • Add a gh label list one-liner to discover currently active target branches by label color (#ad244f = active, #ededed = EOL).

Test plan

  • Render CLAUDE.md in GitHub — new ### PR Labeling (write-access only) subsection displays correctly under "Pull Requests"
  • Run the gh label list snippet locally and confirm it returns the current set of active target/* labels

🤖 Generated with Claude Code

Notes: none

Backports

No Backports Requested

This pull request doesn't have any backports requested or created for older release branches.

What are backports?

Backports are copies of changes made to the main branch that are applied to older release branches. They ensure that bug fixes and important changes are available in maintained older versions of Electron.

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron