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>()); } }
public async Task <IEnumerable <UserShort> > GetAuthors(string repositoryName, string ownerName) { var url = ApiUrls.PullRequestsAuthors(ownerName, repositoryName); return(await _internalRestClient.GetAllPages <UserShort>(url, 100)); }