Skip to content

Suggestion: add input to specify the target branch #368

Description

@prenaissance

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions