Skip to content

docs: explain branch lifecycle states - #18839

Merged
DanRibbens merged 1 commit into
feat/content-branchingfrom
docs/branch-lifecycle-states
Oct 19, 2026
Merged

DanRibbens merged 1 commit into
feat/content-branchingfrom
docs/branch-lifecycle-states

Conversation

@DanRibbens

Copy link
Copy Markdown
Contributor

Written with AI

Description

The branching overview does not explain the difference between a merged branch that can accept new work and a terminal closed branch. Document the four branch statuses and how closeBranch affects successful merges.

Changes

  • Add a concise status table for open, merging, merged, and closed branches.
  • Explain that pending work keeps a branch open and that merge/closure retains the branch record.
  • Clarify that branch lifecycle operations use the payload-branches collection while payload.branches exposes merge/discard only.

This documentation-only PR targets feat/content-branching and addresses Q09 of the API review. No runtime changes.

Test Plan

Compared the explanation with branch collection access/status handling, writable-state checks, merge finalization, and reopening on new changes. Reviewed Markdown table syntax; git diff --check passed. No tests run for this prose-only change.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 1
  • ^3.x$

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: payloadcms/payload/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d06ab0fa-2010-48a1-9495-a826b08473bd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@DanRibbens
DanRibbens marked this pull request as ready for review October 19, 2026 19:15
@DanRibbens
DanRibbens merged commit d442b3c into feat/content-branching Oct 19, 2026
27 of 29 checks passed
@DanRibbens
DanRibbens deleted the docs/branch-lifecycle-states branch October 19, 2026 19:15
DanRibbens added a commit that referenced this pull request Oct 23, 2026
Written with AI

## Description

The branching overview does not explain the difference between a merged
branch that can accept new work and a terminal closed branch. Document
the four branch statuses and how `closeBranch` affects successful
merges.

## Changes

- Add a concise status table for open, merging, merged, and closed
branches.
- Explain that pending work keeps a branch open and that merge/closure
retains the branch record.
- Clarify that branch lifecycle operations use the `payload-branches`
collection while `payload.branches` exposes merge/discard only.

This documentation-only PR targets `feat/content-branching` and
addresses Q09 of the API review. No runtime changes.

## Test Plan

Compared the explanation with branch collection access/status handling,
writable-state checks, merge finalization, and reopening on new changes.
Reviewed Markdown table syntax; `git diff --check` passed. No tests run
for this prose-only change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant