|
30 | 30 | * [Get the popular content for a repository](#get-the-popular-content-for-a-repository)
|
31 | 31 | * [Get the number of views for a repository](#get-the-number-of-views-for-a-repository)
|
32 | 32 | * [Get the number of clones for a repository](#get-the-number-of-clones-for-a-repository)
|
33 |
| - |
| 33 | + * [Comments](#comments) |
| 34 | + * [Get comments from an issue](#get-comments-from-an-issue) |
| 35 | + * [Get comments from a repository](#get-comments-from-a-repository) |
| 36 | + * [Get a single comment](#get-a-single-comment) |
| 37 | + * [Adding a new comment to an issue](#adding-a-new-comment-to-an-issue) |
| 38 | + * [Editing an existing comment](#editing-an-existing-comment) |
| 39 | + * [Removing a comment](#removing-a-comment) |
34 | 40 | ----------
|
35 | 41 |
|
36 | 42 | ## Logging
|
@@ -342,3 +348,35 @@ Get-GitHubViewTraffic -OwnerName PowerShell -RepositoryName PowerShellForGitHub
|
342 | 348 | ```powershell
|
343 | 349 | Get-GitHubCloneTraffic -OwnerName PowerShell -RepositoryName PowerShellForGitHub -Per 'day'
|
344 | 350 | ```
|
| 351 | + |
| 352 | +### Comments |
| 353 | + |
| 354 | +#### Get comments from an issue |
| 355 | +```powershell |
| 356 | +Get-GitHubIssueComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -IssueNumber 1 |
| 357 | +``` |
| 358 | + |
| 359 | +#### Get comments from a repository |
| 360 | +```powershell |
| 361 | +Get-GitHubRepositoryComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -Sort created -Direction asc -Since '2011-04-14T16:00:49Z' |
| 362 | +``` |
| 363 | + |
| 364 | +#### Get a single comment |
| 365 | +```powershell |
| 366 | +Get-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -CommentID 1 |
| 367 | +``` |
| 368 | + |
| 369 | +#### Adding a new comment to an issue |
| 370 | +```powershell |
| 371 | +New-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -IssueNumber 1 -Body "Testing this API" |
| 372 | +``` |
| 373 | + |
| 374 | +#### Editing an existing comment |
| 375 | +```powershell |
| 376 | +Edit-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -CommentID 1 -Body "Testing this API" |
| 377 | +``` |
| 378 | + |
| 379 | +#### Removing a comment |
| 380 | +```powershell |
| 381 | +Remove-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -CommentID 1 |
| 382 | +``` |
0 commit comments