From ec63904c07712e040849857e8f7884e82e6faafd12a62ab00ad28065d68ab20d Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 10 Jul 2024 10:29:02 +0200 Subject: [PATCH] . --- pr-review/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pr-review/main.go b/pr-review/main.go index d3d1648..0990935 100644 --- a/pr-review/main.go +++ b/pr-review/main.go @@ -15,7 +15,7 @@ const ( ) -func processPullRequestCreated(h *common.RequestHandler) error { +func processPullRequestOpened(h *common.RequestHandler) error { req := h.Data.(*common.PullRequestAction) // requests against project are not handled here @@ -60,8 +60,8 @@ func processPullRequest(h *common.RequestHandler) error { req := h.Data.(*common.PullRequestAction) switch req.Action { - case "created": - return processPullRequestCreated(h) + case "opened": + return processPullRequestOpened(h) } return fmt.Errorf("Unhandled pull request action: %s", req.Action)