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

Allow pushing to another branch / manually pushing #406

Open
thislooksfun opened this issue Jan 4, 2023 · 2 comments
Open

Allow pushing to another branch / manually pushing #406

thislooksfun opened this issue Jan 4, 2023 · 2 comments

Comments

@thislooksfun
Copy link

Due to the way GitHub Actions work, it's currently impossible to use this plugin on a branch that has required status checks. Hopefully this will change, but in the meantime it would be useful if we could control the pushing more granularly.

Specifically what I would like to do to work around the GHA limitations is to:

  1. cut the new release
  2. push the resulting commit to a new branch
  3. open a PR
  4. use mergify to auto-merge it back in.

The problem is that I can't easily do step 2, because this package has no configuration (at least none that I could find) to control the pushing of the commit. It would be useful if there was a setting to either control which branch gets pushed to, or, even better, just a setting to say "don't push". That way the commit could be made automatically, but then we have to deal with it manually afterwards, which allows for much finer control.

@EdieLemoine
Copy link

I'm running into the same issue and can't figure out a way around it. All my repositories' workflows that use status checks are crashing because of this since my org has migrated to using GitHub Apps.

I did write actions to fake the branch protection checks on a commit, but that only works after a commit is pushed to GitHub. Which is not possible with semantic-release right now, as it will be trying to push on the branch the protections are on, so I've reached a dead end.

Currently the only "solution" is to disable all branch protection status checks, but that's obviously not something I want to do.

@iamogbz
Copy link

iamogbz commented Jul 12, 2023

Related to this issue #344, which has not gotten any interaction either.
Searched their plugins page and could not find a good replacement, might have to roll with a custom one.

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

3 participants