.
This commit is contained in:
parent
9aa0a6c576
commit
ec63904c07
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user