N
N
Nikolai Konyukhov2014-10-30 17:02:42
GitHub
Nikolai Konyukhov, 2014-10-30 17:02:42

Github webhook how to disable pull-request?

There is a github webhook that checks the codestyle. In case of inconsistency with the codestyle, the webhook responds with a 400 error and sends data indicating the files and errors. How can I disable a pull request (delete it) if the webhook responded with a 400 error (or what options are there)?
Local hooks (.git/hooks) are partially unsuitable, since pull requests are made through the github web face.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Konyukhov, 2014-10-31
@heahoh

As it turned out, there is no way to close the possibility of sending a pull request. Implemented by closing the pull request in the webhook via the github api with an update to the "closed" status and a text error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question