-
Notifications
You must be signed in to change notification settings - Fork 11
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
bug: Protected branch update failed #27
Comments
Hi @EinfachHans, thanks for the report. In fact I don't think we use To be honest I'm not using this plugin myself anymore since I'm now mostly working on |
That's sad, i really like the plugin 😃 As we have many main branches it's great to keep everything updated! I guess i have too less experience but i will look into it when i find the time 🤔 |
Hacktoberfest is happening right now: https://hacktoberfest.digitalocean.com/ |
i researched a bit. The @semantic-release/github (which is only for github of course) works like this: https://github.com/semantic-release/github/blob/master/lib/get-client.js So maybe the solution could be a new config like |
The GitHub Plugin does not push new commits. It creates a release using the GitHub API. |
Actually, I'll validate that and propose a change on semantic-release. Meanwhile we could just copy the get-git-auth-url.js until this is fixed in semantic-release or in case it's rejected. EDIT: get-git-auth-url requires a branch name, so it's purely used in merging/pushing context. So we can't provide that to plugins. Instead I'll try to call the method here. |
Get GitAuthUrl via semantic-release and use it when pushing the branch to be able to use the plugin also with protected branches.
Get GitAuthUrl via semantic-release and use it when pushing the branch to be able to use the plugin also with protected branches. Additional steps for backmerging into protected branches on GitHub are documented in README.
Get GitAuthUrl via semantic-release and use it when pushing the branch to be able to use the plugin also with protected branches. Additional steps for backmerging into protected branches on GitHub are documented in README.
Current behavior
we got the following error in a project:
remote: error: GH006: Protected branch update failed for refs/heads/dev.
This is, because we have a rule that we need a PR which has at least one approved review. But Admins can push to the repo without it.
In the action that starts semantic release we set a
GITHUB_TOKEN
env from an account that has admin rights but this seems not to work.Expected behavior
Maybe the
GITHUB_TOKEN
isn't used?Environment
The text was updated successfully, but these errors were encountered: