This commit is contained in:
Adam Majer 2024-07-10 10:29:02 +02:00
parent 9aa0a6c576
commit ec63904c07

View File

@ -15,7 +15,7 @@ const (
) )
func processPullRequestCreated(h *common.RequestHandler) error { func processPullRequestOpened(h *common.RequestHandler) error {
req := h.Data.(*common.PullRequestAction) req := h.Data.(*common.PullRequestAction)
// requests against project are not handled here // requests against project are not handled here
@ -60,8 +60,8 @@ func processPullRequest(h *common.RequestHandler) error {
req := h.Data.(*common.PullRequestAction) req := h.Data.(*common.PullRequestAction)
switch req.Action { switch req.Action {
case "created": case "opened":
return processPullRequestCreated(h) return processPullRequestOpened(h)
} }
return fmt.Errorf("Unhandled pull request action: %s", req.Action) return fmt.Errorf("Unhandled pull request action: %s", req.Action)