feat(core,github-action): support maintenance branches#150
Merged
Conversation
Coverage Report for CI Build 28369990068Coverage increased (+1.9%) to 61.704%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class “maintenance branch” support to the release pipeline so that, on a major version bump, the previous major line can be tracked via an automatically created branch (e.g. v2 from v2.0.0). This integrates at both the core Releaser level and the GitHub Action wrapper, with accompanying tests for single-package and monorepo modes.
Changes:
- Add a new
maintenanceBranch()step to the coreReleaserand wire it into the GitHub Action release flow. - Introduce
Project.getMaintenanceBranches()(and monorepo override) to compute which maintenance branches should be created. - Add unit tests covering maintenance-branch detection and creation for package projects and monorepos.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/github-action/src/releaser.ts | Adds maintenance-branch step into the release action pipeline. |
| packages/github-action/src/options.ts | Adds GitHub Action input option parsing for maintenance-branch. |
| packages/core/src/releaser.types.ts | Introduces ReleaserMaintenanceBranchOptions and adds it to step options. |
| packages/core/src/releaser.ts | Implements maintenanceBranch() step that creates and pushes maintenance branches. |
| packages/core/src/releaser.spec.ts | Adds integration-style tests for creating maintenance branches (and default-disabled behavior). |
| packages/core/src/project/project.types.ts | Adds ProjectMaintenanceBranch type. |
| packages/core/src/project/project.ts | Adds getMaintenanceBranches() to compute maintenance branch refs for major releases. |
| packages/core/src/project/monorepo.ts | Overrides maintenance-branch computation for independent vs fixed monorepo modes. |
| packages/core/src/project/packageJsonMonorepo.spec.ts | Adds tests for maintenance-branch refs in independent and fixed monorepos. |
| packages/core/src/project/packageJson.spec.ts | Adds tests for maintenance-branch ref computation for a single package project. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
86c4932 to
f2d7ee6
Compare
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.
No description provided.