public static async Task <Repository> GetRepository(string repositoryOwner, string repositoryName, int numberOfIssuesPerRequest = 100)
        {
            var token = await GitHubSettings.GetToken().ConfigureAwait(false);

            var data = await ExecuteGraphQLRequest(() => GitHubApiClient.RepositoryQuery(new RepositoryQueryContent(repositoryOwner, repositoryName, numberOfIssuesPerRequest), GetBearerTokenHeader(token))).ConfigureAwait(false);

            return(data.Repository);
        }
        static async Task <RepositoryConnection> GetRepositoryConnection(string repositoryOwner, string endCursor, int numberOfRepositoriesPerRequest = 100)
        {
            var token = await GitHubSettings.GetToken().ConfigureAwait(false);

            var data = await ExecuteGraphQLRequest(() => GitHubApiClient.RepositoryConnectionQuery(new RepositoryConnectionQueryContent(repositoryOwner, GetEndCursorString(endCursor), numberOfRepositoriesPerRequest), GetBearerTokenHeader(token))).ConfigureAwait(false);

            return(data.GitHubUser.RepositoryConnection);
        }
        public static async Task <User> GetUser(string username)
        {
            var token = await GitHubSettings.GetToken().ConfigureAwait(false);

            var data = await ExecuteGraphQLRequest(() => GitHubApiClient.UserQuery(new UserQueryContent(username), GetBearerTokenHeader(token))).ConfigureAwait(false);

            return(data.User);
        }