Skip to content

cdevents/gerrit-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published