Fix gerrit-push-patch Job key not in trailers 13/64213/1
authorThanh Ha <zxiiro@gmail.com>
Fri, 5 Jun 2020 21:57:37 +0000 (17:57 -0400)
committerThanh Ha <zxiiro@gmail.com>
Fri, 5 Jun 2020 22:31:46 +0000 (18:31 -0400)
commited50197af9739364c4c962c48e5cfb40b209a7b0
treefaf294e753d1f5d92f508c001a2dd6149f5733ac
parentf8156667ecaae577ab90fc724cf21c6d5c54814b
Fix gerrit-push-patch Job key not in trailers

Key-value pairs in Git should be appended to the Git trailers section
(AKA footer). This patch fixes the commit message produced by
gerrit-push-patch which currently creates a commit message where the
Job key appears in the commit message body rather than the trailer.

For example:

    An example commit message

    Job: builder-job/123

    Change-Id: 1234567
Signed-off-by: Jenkins <jenkins@example.org>
This fixes it to:

    An example commit with proper trailer

    Job: builder-job/123
    Change-Id: 123457
Signed-off-by: Jenkins <jenkins@example.org>
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I66c9b0813b36065c20adcf0e886eaa29354ca603
releasenotes/notes/fix-gerrit-push-patch-trailers-de47a4687471d0c8.yaml [new file with mode: 0644]
shell/gerrit-push-patch.sh