zuul/zuul/driver
James E. Blair e2a472bc97 Change merge mode default based on driver
The default merge mode is 'merge-resolve' because it has been observed
that it more closely matches the behavior of jgit in Gerrit (or, at
least it did the last time we looked into this).  The other drivers
are unlikely to use jgit and more likely to use the default git
merge strategy.

This change allows the default to differ based on the driver, and
changes the default for all non-gerrit drivers to 'merge'.

The implementation anticipates that we may want to add more granularity
in the future, so the API accepts a project as an argument, and in
the future, drivers could provide a per-project default (which they
may obtain from the remote code review system).  That is not implemented
yet.

This adds some extra data to the /projects endpoint in the REST api.
It is currently not easy (and perhaps not possible) to determine what a
project's merge mode is through the api.  This change adds a metadata
field to the output which will show the resulting value computed from
all of the project stanzas.  The project stanzas themselves may have
null values for the merge modes now, so the web app now protects against
that.

Change-Id: I9ddb79988ca08aba4662cd82124bd91e49fd053c
2022-10-13 10:31:19 -07:00
..
auth Add support for Microsoft login 2022-02-11 13:53:37 -08:00
bubblewrap Set default SSH_AUTH_SOCK in zuul-bwrap command 2022-09-29 08:41:56 -07:00
elasticsearch Change custom type field to default one 2022-09-12 09:31:01 +02:00
gerrit Change merge mode default based on driver 2022-10-13 10:31:19 -07:00
git Trace Git connection events 2022-09-30 11:19:31 +02:00
github Merge "Trace received Github events" 2022-10-04 03:34:14 +00:00
gitlab Trace Gitlab connection events 2022-09-30 09:50:37 +02:00
mqtt Add option to include returned data in MQTT reporter 2022-09-13 18:05:42 -07:00
nullwrap Log cpu times of ansible executions 2018-07-14 10:32:06 +02:00
pagure Trace Pagure connection events 2022-09-30 11:19:31 +02:00
smtp smtpreporter: Add pipeline to subject 2022-07-29 09:40:57 -05:00
sql Don't try to report build w/o buildset to DB 2022-09-05 15:32:53 +02:00
timer Trace timer trigger events 2022-09-30 11:19:31 +02:00
zuul Trace Zuul trigger events 2022-09-30 11:19:31 +02:00
__init__.py Interface to get a driver's trigger event class 2021-03-18 09:23:49 +01:00
util.py Add driver-specific pipeline requirements 2017-05-19 13:24:00 -07:00