Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.62 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.62 KB

Gerrit Translator CDEvents

A translator plugin for translating Gerrit events into Source Code Control CDEvents. This plugin is served using Hashicorp's go-plugin.

The binary of this plugin is published with a release URL and is used by external applications like cdevents/webhook-adapter

The published plugin's binary can be downloaded and loaded by creating a new plugin client using HashiCorp's go-plugin, which manages the lifecycle of this plugin and establishes the RPC connection.

How to build locally

Run the make command from the project root directory, which creates a plugin's binary with the name gerrit-translator-cdevents

make all

Gerrit-CDEvents type mapping for translation

Below are the Gerrit events that currently have mappings with CDEvents and are supported by this translator.

CDEvent Type Gerrit Event Type
dev.cdevents.repository.created project-created
dev.cdevents.repository.modified project-head-updated
dev.cdevents.branch.created ref-updated
dev.cdevents.branch.deleted ref-updated
dev.cdevents.change.created patchset-created
dev.cdevents.change.reviewed comment-added
dev.cdevents.change.merged change-merged
dev.cdevents.change.abandoned change-abandoned
dev.cdevents.change.updated patchset-created