sorcery icon indicating copy to clipboard operation
sorcery copied to clipboard

Unable to commit to master

Open brendon opened this issue 1 month ago • 9 comments

Hi @joshbuker, I've been unable to commit the version bump to master per the instructions. That might be a permissions thing in GitHub?

brendon avatar Dec 03 '25 02:12 brendon

It says you should be able to override when I look at the branch protections... 🤷

joshbuker avatar Dec 03 '25 08:12 joshbuker

Oh I think this is when I try to commit directly to master which is what I usually do for the version file before release. I suppose I could do a PR for this instead. Is that what you used to do?

brendon avatar Dec 03 '25 08:12 brendon

Sorry, I meant you should be able to override the branch protection and push straight to master

joshbuker avatar Dec 03 '25 13:12 joshbuker

Interesting, perhaps using the web interface, but I'm using GitHub Desktop. I'll try via the web :)

brendon avatar Dec 03 '25 20:12 brendon

Doesn't seem to work there either. Is there a special tag for the commit that will allow it to be bypassed?

brendon avatar Dec 03 '25 20:12 brendon

It’s probably the case that neither @brendon nor I have permission to change the branch protection rule that prevents direct pushes to master. However, since we can still change the version by opening a PR that updates version.rb and merging it, I don’t think we need to forcefully change the current rules.

When I update my other gems, I usually just push changes to version.rb directly to the master (main) branch. But Sorcery is an authentication gem and likely has many users, so I think it’s better to operate on the safer side here.

willnet avatar Dec 05 '25 05:12 willnet

Long term it would be nice to allow maintainers to push directly, but using a PR is an acceptable workaround until we figure out which setting does the trick while keeping branch protection enabled otherwise.

joshbuker avatar Dec 05 '25 09:12 joshbuker

Let's see if the collective knowledge of the entire internet can figure it out ;D

brendon avatar Dec 07 '25 20:12 brendon

I suspect this is due to attempting to push from local instead of fork/master with passing tests, see: https://github.com/Sorcery/sorcery/pull/415#issuecomment-3627792166

joshbuker avatar Dec 08 '25 16:12 joshbuker