Giter Club home page Giter Club logo

Comments (7)

asvoboda avatar asvoboda commented on August 30, 2024 1

I think that is a reasonable feature request. You are correct in that this isn't currently supported behaviour. While we don't have time right now to make the change, we accept PRs and will review requests in a timely manner.

I think if you wanted to take a shot at this, you'd want to to add the merge_method param to the update configuration, and then using that merge method https://github.com/palantir/bulldozer/blob/develop/bulldozer/update.go#L102

from bulldozer.

asvoboda avatar asvoboda commented on August 30, 2024

Hi @arunpkqt ,

I guess we need to highlight this better in the docs, but the answer is yes! In the spec we allow users to specify the merge method as either rebase, squash or merge.

You can also specify method by branch if you want to treat develop/master/release different from one another.

from bulldozer.

BrianChristie avatar BrianChristie commented on August 30, 2024

It looks like this setting configures the merge method when merging the branch to the target branch, but what I'd like to configure is the merge method when updating the branch from the target branch. This avoids the confusing git history when using merges to update the branch from the target branch.

I think this would mean that update: can be set to method: rebase

Perhaps this is already possible and I don't understand the configuration?

Thanks!

from bulldozer.

bluekeyes avatar bluekeyes commented on August 30, 2024

On review, I don't think this is possible with the current Bulldozer architecture. The branch update feature relies on the Perform a merge API to do updates without making any local clones, and I believe that API can only create regular merge commits.

I don't want to add the complexity of managing local clones to Bulldozer, so I think this is blocked either on a new feature in GitHub or a clever way to perform a rebase using only the API, maybe via the Git Data APIs.

from bulldozer.

BrianChristie avatar BrianChristie commented on August 30, 2024

That makes sense. I doubt that GitHub is going to add a rebase branch API any time soon, but I'll email them a feature request anyway. Thanks for having a look.

from bulldozer.

austince avatar austince commented on August 30, 2024

There is a similar request on Kodiak (chdsbd/kodiak#150) -- it looks like there may be a way to do this with just the GitHub API (chdsbd/kodiak#150 (comment)).

from bulldozer.

bateau84 avatar bateau84 commented on August 30, 2024

This feature would be great to have!
Any updates?

from bulldozer.

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.