Queries Gerrit for patch changes and (optionally) sends Slack alerts.
- On a regular schedule, pulls a list of the latest patches in Gerrit (parameters are set in the config file; see below for the available options)
- Specific Gerrit flags/filters can be applied, including hashtags (spotlight.flags.hashtag in the config file), to limit the number of items covered in the delta report.
- Calculates the delta from the prior report
- If there are differences, reports on the delta.
- If enabled, a Slack message is sent with summary data (patch owner, status, and, if open, reviewers)
If you want to send Slack messages, create a custom webhook and save it under slack.webhookUrl (See below for details).
- Create a new webhook at https://api.slack.com/apps/new (Optional)
- Update the config file with the slack.webhookUrl value
Export details to a TSV file.
Note: using both Slack and File notification at the same time is not currently supported.
- gerritUrlBase: Full URL (protocol, hostname, port); Must not end with '/'; No default.
- gerritUrlSuffix: The last part of the URL; No default
- gerritUrlPrefix: What goes right after the gerritUrlBase; No default
- dataDir: Where to store the output files; Default: 'data'
- dataFilename: Filename; Default: 'Open'
- dataFileExt: File extension; Default: '.json'
- cron.frequency: Number of seconds between updates; Default: 30
- gerritConfig.username: Authentication option - username
- gerritConfig.password: Authentication option - password
- monitor.gerritRecordCount: Number of Gerrit records to fetch (max); Default: 100
- monitor.log.filename: Base filename (appended by Gerrit status name and timestamp); Default: 'snapshot-log'
- saveHistory: Should previous records be archived? Default: true
- slack.webhookUrl: Webhook from Slack (required if you want to send Slack messages)
- spotlight
- enabled: Are notifications enabled?
- flags: Filter for when to send notifications
- hashtag: Filter for specific hashtag value. Set to
false
to ignore/disable
- hashtag: Filter for specific hashtag value. Set to
- patches: Array of patches to monitor
- notifications: How to send notifications
- slack: Send notifications as Slack messages
- enabled: Turn on Slack notifications?
- webhookUrl: Full URL of Slack for messages
- file: Save data to TSV file
- enabled: Turn on file notifications?
- outputFilename: Base filename. Note: do not include an extension. Two files will be created:
-full.tsv
: Data from every check-filtered.tsv
: Only data with at least one non-zero patch count (either "Add", "Drop", or "Merge")
- slack: Send notifications as Slack messages