Skip to content
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

Suggestion: add input to specify the target branch #368

Open
prenaissance opened this issue May 2, 2024 · 0 comments
Open

Suggestion: add input to specify the target branch #368

prenaissance opened this issue May 2, 2024 · 0 comments

Comments

@prenaissance
Copy link

Proposal

I would like to have a new option to specify the base branch of the PR.

\- name: Create Release Pull Request
  uses: changesets/action@v1
  with:
    version: npm run changeset:version
    publish: npm run changeset:tag
    createGithubReleases: false
+   baseBranch: main # default - ${{github.ref}}
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Context

Let's suppose that I want to do a release and on the main branch I have 4 features, 1 of which i know has a bug. I would cherry-pick the needed features in an RC-X.X.X branch, run the changeset version and tag commands, release from that branch and synchronize with main. With this action, I cannot currently do that because the PR is always opened into the branch that the action is run upon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant