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