@@ -137,7 +137,7 @@ function Get-GitHubRepositoryComment
137
137
. EXAMPLE
138
138
Get-GitHubReferrerTraffic -OwnerName Powershell -RepositoryName PowerShellForGitHub
139
139
140
- Get the top 10 referrers over the last 14 days from the PowerShell\PowerShellForGitHub project.
140
+ Get the comments for the PowerShell\PowerShellForGitHub project.
141
141
#>
142
142
[CmdletBinding (
143
143
SupportsShouldProcess ,
@@ -206,7 +206,7 @@ function Get-GitHubComment
206
206
{
207
207
<#
208
208
. DESCRIPTION
209
- Get the issues for a given repository in Github.
209
+ Get a single comment for a given repository in Github.
210
210
211
211
The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub
212
212
@@ -224,7 +224,7 @@ function Get-GitHubComment
224
224
them individually.
225
225
226
226
. PARAMETER CommentID
227
- How to sort the results, either created or updated. Default: created
227
+ The ID of the comment to get.
228
228
229
229
. PARAMETER AccessToken
230
230
If provided, this will be used as the AccessToken for authentication with the
@@ -237,9 +237,9 @@ function Get-GitHubComment
237
237
If not supplied here, the DefaultNoStatus configuration property value will be used.
238
238
239
239
. EXAMPLE
240
- Get-GitHubReferrerTraffic -OwnerName Powershell -RepositoryName PowerShellForGitHub
240
+ Get-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -CommentID 1
241
241
242
- Get the top 10 referrers over the last 14 days from the PowerShell\PowerShellForGitHub project.
242
+ Get a single comment from the PowerShell\PowerShellForGitHub project.
243
243
#>
244
244
[CmdletBinding (
245
245
SupportsShouldProcess ,
@@ -328,7 +328,7 @@ function New-GitHubComment
328
328
If not supplied here, the DefaultNoStatus configuration property value will be used.
329
329
330
330
. EXAMPLE
331
- Get-GitHubReferrerTraffic -OwnerName Powershell -RepositoryName PowerShellForGitHub
331
+ New-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -IssueNumber 1 -Body "Testing this API"
332
332
333
333
Get the top 10 referrers over the last 14 days from the PowerShell\PowerShellForGitHub project.
334
334
#>
@@ -379,7 +379,7 @@ function New-GitHubComment
379
379
' UriFragment' = " repos/$OwnerName /$RepositoryName /issues/$IssueNumber /comments"
380
380
' Body' = ($hashBody | ConvertTo-Json )
381
381
' Method' = ' Post'
382
- ' Description' = " Getting comment $CommentID for $RepositoryName "
382
+ ' Description' = " Creating comment under issue $IssueNumber for $RepositoryName "
383
383
' AccessToken' = $AccessToken
384
384
' TelemetryEventName' = $MyInvocation.MyCommand.Name
385
385
' TelemetryProperties' = $telemetryProperties
@@ -393,7 +393,7 @@ function Edit-GitHubComment
393
393
{
394
394
<#
395
395
. DESCRIPTION
396
- Creates a new Github comment in an issue for the given repository
396
+ Edits an existing comment in an issue for the given repository
397
397
398
398
The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub
399
399
@@ -411,10 +411,10 @@ function Edit-GitHubComment
411
411
them individually.
412
412
413
413
. PARAMETER CommentID
414
- The number for the issue that the comment will be filed under .
414
+ The comment ID of the comment to edit .
415
415
416
416
. PARAMETER body
417
- The contents of the comment.
417
+ The new contents of the comment.
418
418
419
419
. PARAMETER AccessToken
420
420
If provided, this will be used as the AccessToken for authentication with the
@@ -427,7 +427,7 @@ function Edit-GitHubComment
427
427
If not supplied here, the DefaultNoStatus configuration property value will be used.
428
428
429
429
. EXAMPLE
430
- Get-GitHubReferrerTraffic -OwnerName Powershell -RepositoryName PowerShellForGitHub
430
+ Edit-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -CommentID 1 -Body "Testing this API"
431
431
432
432
Get the top 10 referrers over the last 14 days from the PowerShell\PowerShellForGitHub project.
433
433
#>
@@ -510,7 +510,7 @@ function Remove-GitHubComment
510
510
them individually.
511
511
512
512
. PARAMETER CommentID
513
- The number for the issue that the comment will be filed under .
513
+ The id of the comment to delete .
514
514
515
515
. PARAMETER AccessToken
516
516
If provided, this will be used as the AccessToken for authentication with the
@@ -523,9 +523,9 @@ function Remove-GitHubComment
523
523
If not supplied here, the DefaultNoStatus configuration property value will be used.
524
524
525
525
. EXAMPLE
526
- Get-GitHubReferrerTraffic -OwnerName Powershell -RepositoryName PowerShellForGitHub
526
+ Remove-GitHubComment -OwnerName Powershell -RepositoryName PowerShellForGitHub -CommentID 1
527
527
528
- Get the top 10 referrers over the last 14 days from the PowerShell\PowerShellForGitHub project.
528
+ Deletes a Github comment from the PowerShell\PowerShellForGitHub project.
529
529
#>
530
530
[CmdletBinding (
531
531
SupportsShouldProcess ,
0 commit comments