Files
gerrit/java/com/google/gerrit/server/restapi
Edwin Kempin 159804ba04 Consistently allow to cherry-pick without message
There are 2 REST endpoints to cherry pick, Cherry Pick Revision and
Cherry Pick Commit. Both REST endpoint use the same CherryPickInput
input entity which allows to specify the commit message for the
cherry-pick commit. In the documentation the message field in
CherryPickInput is documented as required, but only the Cherry Pick
Revision REST endpoints rejects requests without message. The Cherry
Pick Commit REST endpoint uses the commit message of the cherry-picked
commit if a message was not specified. This is inconsistent. Fix this by
making the message field in CherryPickInput optional and always fall
back to the commit message of the cherry-picked commit if a message was
not specified.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I78af10ef8a35ee99d46a4eacf14d4f9fd1bed345
2019-09-24 08:46:29 +09:00
..
2019-09-17 01:27:56 +02:00
2019-09-05 10:14:43 +02:00