Document branching and release strategy#215
Merged
nick-pape merged 3 commits intoSharePoint:mainfrom Apr 2, 2026
Merged
Conversation
nick-pape
commented
Mar 31, 2026
Add common/docs/branching-and-release-strategy.md covering branch naming conventions, CLI version resolution, release branch lifecycle, and the hotfix cherry-pick workflow. Link from CONTRIBUTING.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix branch prefix: release/ → version/ (matches actual code) - Fix default branch: main → version/latest (matches PublicGitHubRepositorySource) - Fix flag name: --local-template → --local-source (matches SPFxActionBase) - Remove "planned" label from --spfx-version (already implemented) - Add version/latest-beta branch documentation - Add rolling branch section explaining version/latest and version/latest-beta - Describe main as development branch, not latest stable Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28d19ed to
d17f2a5
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds contributor-facing documentation for the repo’s branch-per-SPFx-version strategy and links it from the main contributing guide, clarifying how the CLI resolves template branches and how hotfixes should be applied across release branches.
Changes:
- Add
common/docs/branching-and-release-strategy.mddescribing branch naming, CLI ref resolution, release lifecycle, and hotfix/cherry-pick workflow - Link the new branching doc from
CONTRIBUTING.md
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| CONTRIBUTING.md | Adds a link to the new branching/release strategy documentation. |
| common/docs/branching-and-release-strategy.md | New doc explaining version/* branches, CLI resolution behavior, and maintenance workflows. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
iclanton
reviewed
Apr 1, 2026
… clarify protections - Rename version/latest-beta to version/next (RC isn't a "beta") - Switch from per-patch (version/X.Y.Z) to per-minor (version/X.Y) branches - Use tags for individual pre-release versions instead of branches - Note that branch rulesets for main also apply to version/* branches - Update branch protection section to reflect auto-configuration - Add conversation resolution to branch protection rules - Clarify that dependency bumps are not backported to old branches Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
iclanton
reviewed
Apr 2, 2026
iclanton
approved these changes
Apr 2, 2026
iclanton
pushed a commit
to iclanton/spfx
that referenced
this pull request
Apr 2, 2026
## Description
Adds documentation for the branch-per-SPFx-version strategy as described
in the architecture doc. This covers:
- **Branch naming convention** — `main` for latest stable,
`release/X.Y.Z` for GA, `release/X.Y.Z-beta.N` / `release/X.Y.Z-rc.N`
for pre-releases
- **CLI version resolution** — default to `main`, `--spfx-version` maps
to `release/{version}`
- **Release branch lifecycle** — how and when to create release branches
- **Hotfix/cherry-pick workflow** — fix on `main` first, cherry-pick to
affected branches
- **Branch protection** — required PR reviews and CI checks
Also links the new doc from `CONTRIBUTING.md`.
Closes SharePoint#102
## How was this tested
- Reviewed against the existing architecture doc
(`common/docs/spfx-cli-architecture.md`) and
`PublicGitHubRepositorySource` implementation for accuracy
## Type of change
- [x] Documentation or CI change
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds documentation for the branch-per-SPFx-version strategy as described in the architecture doc. This covers:
mainfor latest stable,release/X.Y.Zfor GA,release/X.Y.Z-beta.N/release/X.Y.Z-rc.Nfor pre-releasesmain,--spfx-versionmaps torelease/{version}mainfirst, cherry-pick to affected branchesAlso links the new doc from
CONTRIBUTING.md.Closes #102
How was this tested
common/docs/spfx-cli-architecture.md) andPublicGitHubRepositorySourceimplementation for accuracyType of change