From 56961266f82a85738b7f321955865f6e63eca47b Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Mon, 2 Apr 2018 15:17:50 -0700 Subject: [PATCH] Don't trigger merge on our own status events Signed-off-by: Eli Uriegas --- internal/webhook.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/webhook.go b/internal/webhook.go index 18a913f..b9abd94 100644 --- a/internal/webhook.go +++ b/internal/webhook.go @@ -198,6 +198,10 @@ func createGithubClient(integrationID, installationID int, keyfile string) *gith } func handleStatus(integrationID int, keyfile string, statusEvent github.StatusEvent) { + // Exit early when handling our own statuses + if statusEvent.GetContext() == "unir" { + return + } if *statusEvent.State != "success" { url := "" if statusEvent.TargetURL != nil {