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 · May be fixed by #373
Open

Suggestion: add input to specify the target branch #368

prenaissance opened this issue May 2, 2024 · 0 comments · May be fixed by #373

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.

@prenaissance prenaissance linked a pull request Jun 3, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant