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)
// 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)