title: How to close a pull request in GitHub using Jenkins Jobs
body: <p>I have a problem, how to close a pull request using Jenkins jobs.</p>
  <p>my goal is, I can get a branch, using this branch name to find, if under this branch, a pull request existed.</p>
  <p>if yes, then I close this pull request through Github API.</p>
  <ol>
  <li>Question, How to get pull request ID through Branch name?</li>
  </ol>
  <p>2: if I get pull request ID, how to close this pull request.</p>
  <p>Any Solutions?</p>
  <p>I finde</p>