commit | 7d761ff5960fcf120b19405344da3e7ec0998fb8 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Feb 16 14:37:54 2024 +0000 |
committer | Edwin Kempin <ekempin@google.com> | Mon Feb 19 08:00:17 2024 +0000 |
tree | ec62786e1fc9f503f8d13e1d8d38fe3c01321b8f | |
parent | d46e610f865855b7f554caf90bcbca9aecabe8a4 [diff] |
Add REST endpoint to get the commit message of a change Getting the commit message of a change is surprisingly hard. It's only possible via the Get Content REST endpoint by invoking it for the "/COMMIT_MSG" file: GET /changes/<CHANGE-ID>/revisions/current/files/%2FCOMMIT_MSG/content The returned content is Base64 encoded, so callers need to decode it. Make getting the commit message of a change simpler by adding a Get Commit Message REST endpoint that returns the commit message as JSON. This new REST endpoint fits well to the already existing Set Commit Message REST endpoint. Release-Notes: Added REST endpoint to get the commit message of a change Change-Id: Ia4b84d695b82ae5cf7a6b9e4fbd0943f1430c5ba Signed-off-by: Edwin Kempin <ekempin@google.com>
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update && apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.