From aea33fea62b5ecf2f7a8c91dffea547aa7ab57ce Mon Sep 17 00:00:00 2001 From: David May <49894298+wass3rw3rk@users.noreply.github.com> Date: Fri, 2 Feb 2024 08:39:49 -0600 Subject: [PATCH] fix: minor tweak in messaging for event not enabled (#1051) Co-authored-by: Easton Crupper <65553218+ecrupper@users.noreply.github.com> --- api/webhook/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/webhook/post.go b/api/webhook/post.go index fb2618ebe..39bf93430 100644 --- a/api/webhook/post.go +++ b/api/webhook/post.go @@ -264,7 +264,7 @@ func PostWebhook(c *gin.Context) { actionErr = ":" + b.GetEventAction() } - retErr := fmt.Errorf("%s: %s does not have %s%s events enabled", baseErr, repo.GetFullName(), b.GetEvent(), actionErr) + retErr := fmt.Errorf("%s: %s does not have %s%s event enabled", baseErr, repo.GetFullName(), b.GetEvent(), actionErr) util.HandleError(c, http.StatusBadRequest, retErr) h.SetStatus(constants.StatusSkipped)