-
Notifications
You must be signed in to change notification settings - Fork 343
Feature: Customize PR branch name suffix #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature: Customize PR branch name suffix #513
Conversation
🦋 Changeset detectedLatest commit: b7d24f0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
bb80870 to
b7d24f0
Compare
| - createGithubReleases - A boolean value to indicate whether to create Github releases after `publish` or not. Default to `true` | ||
| - commitMode - Specifies the commit mode. Use `"git-cli"` to push changes using the Git CLI, or `"github-api"` to push changes via the GitHub API. When using `"github-api"`, all commits and tags are GPG-signed and attributed to the user or app who owns the `GITHUB_TOKEN`. Default to `git-cli`. | ||
| - cwd - Changes node's `process.cwd()` if the project is not located on the root. Default to `process.cwd()` | ||
| - branch - Sets the branch in which the action will run. Default to `github.ref_name` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs on this input were missing so I've added them along with the new input
We're working on adding support for custom changeset-release/ branch suffixes so that we can handle multi-library monorepos changesets/action#513
|
Can we merge this? I would also like this |
Fixes #184
Follow up to stale PR #370 with a slightly different approach.
Adds input
prBranchSuffixThis feature allows the user to customize the suffix of the branch name that gets created for the versioning Pull Request. By default this would otherwise be
changeset-release/${{ github.ref_name }}, but this doesn't work well for monorepos that have multiple uses ofchangesets/actionwithin them, which would otherwise overwrite each other when pushing tochangeset-release/main. With this change, monorepo users can have multiple workflows that specify different suffixes so that multiple versioning pull requests can be opened simultaneously.For example:
I've attempted to address the feedback that had been left on the previous PR, and sought a route that uses a "suffix" approach instead of overriding the
changeset-release/*prefixing.