From 83a38a6da9ef99bc6596f6cfb53395a89f0165c7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 30 May 2022 13:32:43 -0700 Subject: feat(gerrit-hook): a small tool to act as a dispatcher for gerrit When a patchset is created, gerrit will call this tool with a number of arguments. This hook triggers a build with buildKite for the given patchset, and add a comment to gerrit with a link to the build. We do not wait for the build to be successful to update gerrit. This will be done by another hook which the buildKite agents will call once they are done with the build. Change-Id: Iaa221765f3c52875ec37c5d282ba0557291eb5a4 Reviewed-on: https://cl.fcuny.net/c/world/+/171 Reviewed-by: Franck Cuny --- tools/gerrit-hook/go.mod | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/gerrit-hook/go.mod (limited to 'tools/gerrit-hook/go.mod') diff --git a/tools/gerrit-hook/go.mod b/tools/gerrit-hook/go.mod new file mode 100644 index 0000000..98968da --- /dev/null +++ b/tools/gerrit-hook/go.mod @@ -0,0 +1,3 @@ +module golang.fcuny.net/gerrit-hook + +go 1.16 -- cgit v1.2.3