28e83f7069
The example configuration for gerrit-review.googlesource.com is also applicable to other Gerrit instances running at googlesource.com, for example: android-review.googlesource.com gwt-review.googlesource.com Make the example generic, rather than specific to gerrit-review. Change-Id: I761db4228aa23e92e57751f5ecbdf721c992065d
71 lines
2.4 KiB
YAML
71 lines
2.4 KiB
YAML
# This is an example ~/.gertty.yaml file for use with installations of
|
|
# Gerrit running on googlesource.com. Most of these options are not
|
|
# required, rather, they customize Gertty to better deal with the
|
|
# particulars of Google's Gerrit configuration.
|
|
# See the reference-gertty.yaml file for more options.
|
|
|
|
servers:
|
|
- name: CHANGEME-review
|
|
url: https://CHANGEME-review.googlesource.com/
|
|
# Your gerrit username.
|
|
username: CHANGEME
|
|
# Set password at https://{name}-review.googlesource.com/#/settings/http-password
|
|
# Note this is not your Google password.
|
|
password: CHANGEME
|
|
auth-type: basic
|
|
git-root: ~/git/
|
|
|
|
# Uncomment the next line if your terminal has a white background
|
|
# palette: light
|
|
|
|
# Commentlinks are regexes that are applied to commit and review
|
|
# messages. They can be replaced with internal or external links, or
|
|
# have colors applied.
|
|
commentlinks:
|
|
# Match Gerrit change ids, and replace them with a link to an
|
|
# internal Gertty search for that change id.
|
|
- match: "(?P<id>I[0-9a-fA-F]{40})"
|
|
replacements:
|
|
- search:
|
|
text: "{id}"
|
|
query: "change:{id}"
|
|
|
|
# Uncomment the following line to use a unified diff view instead
|
|
# of the default side-by-side:
|
|
# diff-view: unified
|
|
|
|
# This section defines customized dashboards. You can supply any
|
|
# Gertty search string and bind them to any key. They will appear in
|
|
# the global help text, and pressing the key anywhere in Gertty will
|
|
# discard the current display stack and replace it with the results of
|
|
# the query.
|
|
dashboards:
|
|
- name: "My changes"
|
|
query: "owner:self status:open"
|
|
key: "f2"
|
|
|
|
# Reviewkeys are hotkeys that perform immediate reviews within the
|
|
# change screen. Any pending comments or review messages will be
|
|
# attached to the review; otherwise an empty review will be left. The
|
|
# approvals list is exhaustive, so if you specify an empty list,
|
|
# Gertty will submit a review that clears any previous approvals. To
|
|
# submit the change with the review, include 'submit: True' with the
|
|
# reviewkey. Reviewkeys appear in the help text for the change
|
|
# screen.
|
|
reviewkeys:
|
|
- key: 'meta 0'
|
|
approvals: []
|
|
- key: 'meta 1'
|
|
approvals:
|
|
- category: 'Code-Review'
|
|
value: 1
|
|
- key: 'meta 2'
|
|
approvals:
|
|
- category: 'Code-Review'
|
|
value: 2
|
|
- key: 'meta 3'
|
|
approvals:
|
|
- category: 'Code-Review'
|
|
value: 2
|
|
submit: True
|