Pull request call does not work for me, so I do minimal fix and use APIv2. It is quite rought, as it allows only set title and comment - not issue. Also response is not parsed and just showed. Also it does not escape chracters for shell. But at least it works for me. Feel free to improve it.
try fix pull requests