about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-26 15:39:51 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-26 15:40:31 -0700
commit3ebc490bb4f99eacf2b31a9ea94fb233eda8545b (patch)
treef93ea0b44a0eb423c95f0954a74e268544be3499
parentfix(modules/cgit): correct alias configuration for robots.txt (diff)
downloadworld-3ebc490bb4f99eacf2b31a9ea94fb233eda8545b.tar.gz
feat(tools/gerrit-hook): run CI pipeline for all the repositories
Change-Id: Ib0e376366ea684a254b7993a746e082e38849daa
Reviewed-on: https://cl.fcuny.net/c/world/+/521
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
-rw-r--r--tools/gerrit-hook/gerrit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gerrit-hook/gerrit.go b/tools/gerrit-hook/gerrit.go
index 6a23527..04de53d 100644
--- a/tools/gerrit-hook/gerrit.go
+++ b/tools/gerrit-hook/gerrit.go
@@ -76,9 +76,9 @@ func triggerForPatchsetCreated() (*buildTrigger, error) {
 
 	flag.Parse()
 
-	// for now we only care about the project named `world' and the
-	// branch named 'main'
-	if trigger.project != "world" || trigger.branch != "main" {
+	// if the name of the targetted branch is not `main', we don't
+	// care about running the tests.
+	if trigger.branch != "main" {
 		return nil, nil
 	}