Skip to content

New ocabot merge option: autosquash? #86

Open

Description

@LoisRForgeFlow

Following the discussion here: #75, and specifically this clarification: #75 (comment).

Personally, when I first red that the bot was going to autosquash commits I loved the feature as I prefer to add fixup commits to have clear diffs as you attends review or do changes. For me, rely on the force push diff is not ideal. Then today I found that it was not actually working and the merge strategy is a different one, so this issue raises the question: is it worth/useful to implement such an option? something like ocabot merge autosquash.

Activity

  1. pedrobaeza commented on Oct 22, 2019

    @pedrobaeza
    Member

    @lreficent what is the problem querying "Forced push" link in GitHub for reviewing differences?

  2. LoisRForgeFlow commented on Oct 22, 2019

    @LoisRForgeFlow
    Author

    @pedrobaeza if you force push several times in a row you lose the diff. I know it is nitpicking that's why I wonder if the feature is really valuable.

  3. pedrobaeza commented on Oct 22, 2019

    @pedrobaeza
    Member

    Yeah, that's the only limitation for now, that GitHub groups them together and don't show full diff, but I think we must report that to GitHub for being fixed instead of using other techniques.

  4. changed the title [-]New command autosquash?[/-] [+]New ocabot merge option: autosquash?[/+] on Oct 31, 2019
  5. added
    Bot TaskA task the bot does or should do
    enhancementNew feature or request
    needs specThis issue is blocked due to lack of detailed specification
    on Oct 31, 2019
  6. sbidoul commented on Oct 31, 2019

    @sbidoul
    Member

    See also #43

  7. hparfr commented on Dec 7, 2021

    @hparfr

    Hi 2019!

    End of 2021 here and GitHub has improved a little on forced branch but not so much. After a force push, links from (email) notifications are still broken and it's still difficult to figure out what where changed during second review.

    Git already have all the tools to fix it from a while.

    From a user point of view. git commit --fixup HEAD is easier than git rebase 14.0
    A short help message can be added to the output of pre-commit on the oca CI:
    "Run pre-commit on your machine then commit with git commit --fixup HEAD "

    In order to ease the transition, I suggest, to allow it as an opt-in :
    ocabot merge minor autosquash
    And if there is some conflicts, it can still be fixed the old way: rebase locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot TaskA task the bot does or should doenhancementNew feature or requestneeds specThis issue is blocked due to lack of detailed specification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions