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)