Giter Site home page Giter Site logo

Note on force pushing about bors-ng HOT 5 CLOSED

bors-ng avatar bors-ng commented on April 27, 2024
Note on force pushing

from bors-ng.

Comments (5)

notriddle avatar notriddle commented on April 27, 2024

Bors doesn't need to force-push to master, though I specify "force" just to avoid crashing. This very repo has a protected master branch.

It will need to force-push to staging, but it's pretty obvious why that is.

from bors-ng.

timvdalen avatar timvdalen commented on April 27, 2024

I see, I think I figured out what was going wrong.

I had the branch protected with specific pushers.
GitHub does not allow you to (currently) add an integration user as a specific user so I turned that off.
I turned off force pushing to debug and I see the crashes on staging now.
bors just merged the first PR to master, so my install is going in the right direction :)

Thanks for the work on this and the help!

from bors-ng.

notriddle avatar notriddle commented on April 27, 2024

Thanks for your help! I'll make a note about how it needs to be able to force-push to staging.

from bors-ng.

timvdalen avatar timvdalen commented on April 27, 2024

Just checked and it does seem to try to force push to master - I'm not sure how our configurations differ.

When I protect the master branch, I get this response for the master commit:

{\"message\":\"Cannot force-push to a protected branch\",\"documentation_url\":\"https://help.github.com/articles/about-protected-branches\"}

If I lift the protection and re-send the webhook for the status change, all is well and I see the merge commit on master.

The (force) pushed commit is a fast-forward though.

from bors-ng.

notriddle avatar notriddle commented on April 27, 2024

Added a note to the wiki

from bors-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.