title: How to programmatically get the list of all the Completed PullRequests in AzureDevOps?
body: <p>I am using the following code to get the list of <strong>All</strong> the completed pull requests on a VSTS repository. However, the list of pull requests that is fetched, contains only a limited list of the pull requests, and not all of them. Any idea what am I doing wrong?</p>
  
  <p>Here is the code: </p>
  
  <pre><code>        /// &lt;summary&gt;
          /// Gets all the completed pull requests that are created by the given identity, for the given repository
          /// &lt;/summary&gt;
          /// &lt;param name="gitHttpClient"&gt;GitHttpClient that is created for accessing vsts.&lt;/param&gt;
          /// &lt;param name="repositoryId"&gt;The unique identifier of the repository&lt;/param&gt;
          /// &lt;param name="identity"&gt;The vsts Identity of a user on Vsts&lt;/param&gt;
          /// &lt;returns&gt;&lt;/returns&gt;
          public static List&lt;GitPullRequest&gt; GetAllCompletedPullRequests(
              GitHttpClient gitHttpClient, Guid repositoryId, Identity identity)
          {
              var pullRequestSearchCriteria = new GitPullRequestSearchCriteria
              {
                  Status = PullRequestStatus.Completed,
                  CreatorId = identity.Id,
              };
  
              List&lt;GitPullRequest&gt; allPullRequests =  gitHttpClient.GetPullRequestsAsync(
                  repositoryId,
                  pullRequestSearchCriteria).Result;
  
              return allPullRequests;
          }
  </code></pre>