Fabien Boucher <fboucher(a)redhat.com> writes:
Hi Neal,
On Wed, Nov 20, 2019 at 1:45 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
>
> Can we have Zuul support fast-forward merges? Merge commits are really
> irritating for managing multi-branch (i.e. current Dist-Git package
> maint) workflows.
>
>
Yes the "Always merge" option I suggest in the Pagure project settings is
optional.
By default, internally, to prepare repositories to be tested, Zuul uses the
git merge
strategy to integrate PRs on the target branches. Keeping the commit
integration
strategy similar between Zuul and Pagure project is recommended but apart
for
specific jobs/use-cases having them different won't cause any issues.
Zuul's "merge" merge strategy corresponds to the default git merge
strategy ("recursive") which will perform a fast-forward if no merge is
required. This is also equivalent to the default in Pagure. I think
that if you set that strategy in Zuul, and disable "Always merge" in
Pagure, you will have matching behavior.
[1]
https://zuul-ci.org/docs/zuul/user/config.html#attr-project.merge-mode
[2]
https://docs.pagure.org/pagure/usage/project_settings.html
-Jim