Class RemoteRepoIssueCommentApi
Implements the friendly GitHub repository issue comment related APIs.
Namespace: Neon.GitHub
Assembly: Neon.GitHub.dll
Syntax
public class RemoteRepoIssueCommentApi
Methods
CreateAsync(int, string)
Adds a comment to an issue.
Declaration
public Task<IssueComment> CreateAsync(int number, string newComment)
Parameters
Type | Name | Description |
---|---|---|
int | number | Specifies the issue number. |
string | newComment | Specifies the comment text. |
Returns
Type | Description |
---|---|
Task<IssueComment> |
DeleteAsync(int)
Removes a comment from the repository.
Declaration
public Task DeleteAsync(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | Specifies the comment ID. |
Returns
Type | Description |
---|---|
Task | The tracking Task. |
GetAllForIssue(int)
Gets all comments from a specific issue.
Declaration
public Task<IEnumerable<IssueComment>> GetAllForIssue(int number)
Parameters
Type | Name | Description |
---|---|---|
int | number | Specifies the issue number. |
Returns
Type | Description |
---|---|
Task<IEnumerable<IssueComment>> |
GetAllForRepository()
Gets all comments for the respository.
Declaration
public Task<IEnumerable<IssueComment>> GetAllForRepository()
Returns
Type | Description |
---|---|
Task<IEnumerable<IssueComment>> | The Octokit.IssueComment instances |
GetAsync(int)
Gets a specific repository comment by ID.
Declaration
public Task<IssueComment> GetAsync(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | Specifies the comment ID. |
Returns
Type | Description |
---|---|
Task<IssueComment> | The Octokit.IssueComment. |
UpdateAsync(int, string)
Updates an issue comment.
Declaration
public Task<IssueComment> UpdateAsync(int id, string commentUpdate)
Parameters
Type | Name | Description |
---|---|---|
int | id | Specifies the comment ID. |
string | commentUpdate | Specifies the updated comment text. |
Returns
Type | Description |
---|---|
Task<IssueComment> | The updated Octokit.IssueComment. |