Skip to content

Commit

Permalink
fix: minor tweak in messaging for event not enabled (#1051)
Browse files Browse the repository at this point in the history
Co-authored-by: Easton Crupper <65553218+ecrupper@users.noreply.github.com>
  • Loading branch information
wass3rw3rk and ecrupper committed Feb 2, 2024
1 parent ca2dbc5 commit aea33fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/webhook/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aea33fe

Please sign in to comment.