public static CommitComments ( long repositoryId ) : |
||
repositoryId | long | The Id of the repository |
return |
/// <summary> /// Creates a new Commit Comment for a specified Commit. /// </summary> /// <param name="repositoryId">The ID of the repository</param> /// <param name="sha">The sha reference of commit</param> /// <param name="newCommitComment">The new comment to add to the commit</param> /// <remarks>http://developer.github.com/v3/repos/comments/#create-a-commit-comment</remarks> public Task <CommitComment> Create(int repositoryId, string sha, NewCommitComment newCommitComment) { Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); Ensure.ArgumentNotNull(newCommitComment, "newCommitComment"); return(ApiConnection.Post <CommitComment>(ApiUrls.CommitComments(repositoryId, sha), newCommitComment)); }
/// <summary> /// Gets Commit Comments for a specified Commit. /// </summary> /// <param name="repositoryId">The ID of the repository</param> /// <param name="sha">The sha of the commit</param> /// <param name="options">Options to change the API response</param> /// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks> public Task <IReadOnlyList <CommitComment> > GetAllForCommit(int repositoryId, string sha, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(repositoryId, sha), options)); }
/// <summary> /// Gets Commit Comments for a repository. /// </summary> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <returns></returns> public Task <IReadOnlyList <CommitComment> > GetForRepository(string owner, string name) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(owner, name))); }
public Task <IReadOnlyList <CommitComment> > GetAllForCommit(long repositoryId, string sha, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(sha, nameof(sha)); Ensure.ArgumentNotNull(options, nameof(options)); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(repositoryId, sha), null, AcceptHeaders.ReactionsPreview, options)); }
/// <summary> /// Gets Commit Comments for a repository. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="options">Options to change the API response</param> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> public Task <IReadOnlyList <CommitComment> > GetAllForRepository(string owner, string name, ApiOptions options) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(owner, name), null, AcceptHeaders.ReactionsPreview, options)); }
/// <summary> /// Gets Commit Comments for a specified Commit. /// </summary> /// <remarks>http://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit</remarks> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="sha">The sha of the commit</param> /// <returns></returns> public Task <IReadOnlyList <CommitComment> > GetAllForCommit(string owner, string name, string sha) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(owner, name, sha))); }
/// <summary> /// Creates a new Commit Comment for a specified Commit. /// </summary> /// <param name="owner">The owner of the repository</param> /// <param name="name">The name of the repository</param> /// <param name="sha">The sha reference of commit</param> /// <param name="newCommitComment">The new comment to add to the commit</param> /// <remarks>http://developer.github.com/v3/repos/comments/#create-a-commit-comment</remarks> public Task <CommitComment> Create(string owner, string name, string sha, NewCommitComment newCommitComment) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(name, "name"); Ensure.ArgumentNotNullOrEmptyString(sha, "sha"); Ensure.ArgumentNotNull(newCommitComment, "newCommitComment"); return(ApiConnection.Post <CommitComment>(ApiUrls.CommitComments(owner, name, sha), newCommitComment)); }
/// <summary> /// Gets Commit Comments for a repository. /// </summary> /// <param name="repositoryId">The ID of the repository</param> /// <param name="options">Options to change the API response</param> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> public Task <IReadOnlyList <CommitComment> > GetAllForRepository(int repositoryId, ApiOptions options) { Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(repositoryId), options)); }
/// <summary> /// Gets Commit Comments for a repository. /// </summary> /// <param name="repositoryId">The Id of the repository</param> /// <param name="options">Options to change the API response</param> /// <remarks>http://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository</remarks> public Task <IReadOnlyList <CommitComment> > GetAllForRepository(long repositoryId, ApiOptions options) { Ensure.ArgumentNotNull(options, "options"); return(ApiConnection.GetAll <CommitComment>(ApiUrls.CommitComments(repositoryId), null, AcceptHeaders.ReactionsPreview, options)); }