public async Task <IEnumerable <UserShort> > GetAuthors(string repositoryName, string ownerName)
 {
     try
     {
         var url = ApiUrls.PullRequestsAuthors(ownerName, repositoryName);
         return(await _internalRestClient.GetAllPages <UserShort>(url, 100));
     }
     catch (Exception) //todo this doesn't work, prevent failure of app
     {
         return(new List <UserShort>());
     }
 }
예제 #2
0
        public async Task <IEnumerable <UserShort> > GetAuthors(string repositoryName, string ownerName)
        {
            var url = ApiUrls.PullRequestsAuthors(ownerName, repositoryName);

            return(await _internalRestClient.GetAllPages <UserShort>(url, 100));
        }