PR webhook handler fix
This commit is contained in:
parent
0bd33449f0
commit
f3be62cd55
|
@ -202,11 +202,12 @@
|
||||||
|
|
||||||
(defn handle-pull-request
|
(defn handle-pull-request
|
||||||
[pull-request]
|
[pull-request]
|
||||||
(case (:action pull-request)
|
(let [action (keyword (:action pull-request))]
|
||||||
"opened" (handle-pull-request-event :opened pull-request)
|
(when (contains? #{:opened
|
||||||
"closed" (handle-pull-request-event :closed pull-request)
|
:edited
|
||||||
nil)
|
:closed} action)
|
||||||
(ok))
|
(handle-pull-request-event action pull-request))
|
||||||
|
(ok)))
|
||||||
|
|
||||||
|
|
||||||
(defn validate-secret [webhook-payload raw-payload github-signature]
|
(defn validate-secret [webhook-payload raw-payload github-signature]
|
||||||
|
|
Loading…
Reference in New Issue