title: How to get the list of reviewers in GitHub
body: <p>On the Pull Request pane, we can see a list of pull requests, and a picture of who is assigned to the review. At this company, the person assigned is the person writing the code, not the person doing the review. </p>
  
  <p>If I click on a pull request, I can see there is both a Reviewers and Assignees list.</p>
  
  <p>I want to get the assignee. </p>
  
  <pre><code>https://api.github.com/repos/company/project/pulls/123
  </code></pre>
  
  <p>When I query the above, it returns me with something that is nearly perfect... The return object has <code>requested_reviewers</code> which should have been perfect... The problem is, it sometimes returns a result and other times it does not. What I mean is that it is consistent, but if I have 3 items to be reviewed, and say 2 have reviewers, the return will only indicate that 1 of the 3 has reviewers.</p>
  
  <p>My question appears identical to <a href="https://stackoverflow.com/questions/44965073/how-do-i-get-the-list-of-reviewers-for-a-pull-request-using-github-api">How do i get the list of Reviewers for a pull request using Github api?</a> but, whilst there is no answer, the poster has claimed there is a post which answers the question, but that is about web hooks. </p>
  
  <p>I'm trying to simply query the API direct to get the list of reviewers for a given ticket. </p>
  
  <p>My code executes fine, and I don't feel there is anything wrong with it. </p>
  
  <pre><code>function success(d) {
      //do something on ajax callback
  }
  
  function fail() {
      alert("Failed... Big boom boom");
  }
  
  function start(ticket) {
      ajaxGet(success, fail, "https://api.github.com/repos/company/project/pulls/" + ticket, _token);
  }
  
  function ajaxGet(ajaxSuccessCallback, ajaxFailCallback, url, auth) {
  
      $.ajax({
          type: "GET",
          url: url,
          dataType: 'json',
          async: false,
          headers: {
              "Authorization": auth,
          },
          success: function (d) {
              ajaxSuccessCallback(d);
          },
          error: function (d) {
              ajaxFailCallback(d);
          }
      });
  }
  </code></pre>
  
  <p>Am I doing something wrong?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>When I saw reviewer, I mean the person who appears in this list on the Pull requests page</p>
  
  <p><a href="https://i.stack.imgur.com/1pQ3t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1pQ3t.png" alt="enter image description here"></a></p>