about summary refs log tree commit diff
path: root/tools/gerrit-hook
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gerrit-hook')
-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
 	}