Clone this repo:

Branches

Tags

  1. 8dbd98d chore: deploy Docker image to internal registry by Adrià Vilanova Martínez · 3 months ago main v0.1.0
  2. 6b5562d chore(deps): pin dependencies by Renovate bot · 3 months ago
  3. cc2802f chore: Configure Renovate by Renovate bot · 3 months ago
  4. 6c22acc docs: add URL to easily consult events schema updates by Adrià Vilanova Martínez · 4 months ago
  5. fd326d2 Formatting fixes by Adrià Vilanova Martínez · 2 years, 8 months ago

Git Watcher

Git Watcher is a lightweight open-source project inspired in the original "Git Watcher" program used by The Chromium Project and other projects which use Monorail. When a change is merged and its commit references bugs, a message is published in those bugs with a summary of the change (and optionally also closing the bug).

Set up

  1. First, set up Gerrit. Install the events-gcloud-pubsub plugin and set it to publish messages to a Pub/Sub topic set up in your Google Cloud project.
  2. Set up Git Watcher:
    • Create a service account in your Google Cloud project.
    • Give it permission to use the Monorail API.
    • Give it appropiate permissions in each Monorail project.
    • Create subdirectory //secret/ and download the service accounts credentials JSON file to //secret/credentials.json.
    • Run make docker-prod and docker-compose up -d.