You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, we recently implemented an automated release cycle via Changesets in OpenZeppelin contracts and we had problems trying to create a custom Github Actions Workflow with chained jobs using needs: [...] because it was impossible to tell the Changesets Action what branch to use. I think it'd be ideal to define it as an input.
Hm, so you have a workflow that starts in branch A but one that creates a branch B (or something like that) and you want to create a versioning PR from changeset-release/B to B. Did I get this right?
Hey all, this is very interesting for our use case as well, we have a monorepo and and to have a different release PR for each package in the monorepo, we are doing a github action for each package using changeset version --ignore <package1> --ignore <package2>, the problem is that they clash with each other on the branch name and can't create a second PR.
Hey all, this is very interesting for our use case as well, we have a monorepo and and to have a different release PR for each package in the monorepo, we are doing a github action for each package using changeset version --ignore <package1> --ignore <package2>, the problem is that they clash with each other on the branch name and can't create a second PR.
We're in an almost identical situation, would love to have the ability to use separate branches for each changeset PR.
I wanted to test if the PR #255 would work but since actions runs from dist folder it's not possible to test the branch directly.
Tried overwriting the GITHUB_REF option with an env var but Github actions doesn't allow overwriting GITHUB_* env vars.
Maybe a better solution would be to instead solve #310 and #317 and let users handle the PR creation process on their own.
Right now I had to create my own custom generate-changelog script and remove the action completely as there is no option to disable PR creation.
Activity
Andarist commentedon Jan 19, 2023
Hm, so you have a workflow that starts in branch A but one that creates a branch B (or something like that) and you want to create a versioning PR from
changeset-release/BtoB. Did I get this right?ernestognw commentedon Jan 19, 2023
That's correct, we need to chain the
Bbranch creation with your action, but since the run starts inA, we can't customize it.Andarist commentedon Jan 19, 2023
I would accept a PR for this - we can bikeshed the input's name in the review comments. For now let's just go with a simple
branchernestognw commentedon Jan 19, 2023
Thanks for the fast response! I created a PR with the desired change. Would love also feedback for #250
rohit-gohri commentedon May 11, 2023
We have a similar usecase to this:
typeofweb commentedon May 26, 2023
Hey @Andarist! Any updates on this? The PR is open and looks like a rather small change.
bgfernandes commentedon Jun 5, 2023
Hey all, this is very interesting for our use case as well, we have a monorepo and and to have a different release PR for each package in the monorepo, we are doing a github action for each package using
changeset version --ignore <package1> --ignore <package2>, the problem is that they clash with each other on the branch name and can't create a second PR.nicvickeryw commentedon Aug 10, 2023
We're in an almost identical situation, would love to have the ability to use separate branches for each changeset PR.
rohit-gohri commentedon Jan 29, 2024
I wanted to test if the PR #255 would work but since actions runs from dist folder it's not possible to test the branch directly.
Tried overwriting the
GITHUB_REFoption with an env var but Github actions doesn't allow overwritingGITHUB_*env vars.Would be happy to help move the PR forward
rohit-gohri commentedon Jan 30, 2024
I ended up adding a hacky workflow that does the same thing as this action with custom branches:
hacky workflow
# Hack while custom branch is not officially supported in changeset action - https://github.com/changesets/action/issues/254 release_pr: name: Release PR if: ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
Maybe a better solution would be to instead solve #310 and #317 and let users handle the PR creation process on their own.
Right now I had to create my own custom
generate-changelogscript and remove the action completely as there is no option to disable PR creation.bluwy commentedon May 15, 2026
Fixed in #255