Git Product home page Git Product logo

Comments (6)

cordoval avatar cordoval commented on September 25, 2024

The rebase is not automatic, it should be done manual because in doing it there could be many conflicts.

from gush.

phansys avatar phansys commented on September 25, 2024

In my experience, it must be automatic, otherwise the squashed commits sometimes reverts "silently" changes done at base branch after the PR creation but before its merge, since GH diff isn't showing that situation. So, in short words, a conflicted rebase could warn about issues between the histories that the command is trying to merge, and if it happens, the PR can be marked as not ready to be merged.

from gush.

cordoval avatar cordoval commented on September 25, 2024

what happens if it fails the rebase? or requires intervention? as often they do. It should just give a warning about, please make sure it is rebased, or the command only should work when it ensures the PR is rebased. Otherwise gives a note, i think git has a way to find out quickly.

from gush.

phansys avatar phansys commented on September 25, 2024

Sure, that's the main idea, try to rebase automatically, abort the rebase if it has failed, warn the user about the situation and aborting the PR merge operation. But IMO it is much more painless than let merge PRs that reverts previous changes without any notice of that situation. Last week I found myself reverting PRs for this reason, that only happen with the use of --squash option in PRs with more than one commit as I mentioned before.

from gush.

cordoval avatar cordoval commented on September 25, 2024

what i mean is there is a way to check already if it is rebased or not via git. That is all, so we can just do an early check for that and abort or even prevent from running the command very early. I personally prefer to do things observing, so i don't often let gush do my rebases, this is in my experience, because i know there are always things I want to do besides skipping any errors. I honestly think the squash thing is only useful in FOSS context, but i do not use squash at work.

from gush.

phansys avatar phansys commented on September 25, 2024

I tend to work the same way at proprietary / FOSS environments, but I've updated the PR taking into account your concerns.

from gush.

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.