Skip to content

Commit 6c73554

Browse files
joseartriveraHowardWolosky
authored andcommitted
Add support for issue labels (#59)
Added support for the [Label](https://developer.github.com./v3/issues/labels/) API's for GitHub Issues.
1 parent 2bd2447 commit 6c73554

6 files changed

+646
-168
lines changed

Diff for: GitHubComments.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function New-GitHubComment
251251
[string] $Uri,
252252

253253
[Parameter(Mandatory)]
254-
[string] $Issue,
254+
[int] $Issue,
255255

256256
[Parameter(Mandatory)]
257257
[string] $Body,

Diff for: GitHubIssues.ps1

+2-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function Get-GitHubIssue
128128
[ValidateSet('all', 'ownedAndMember')]
129129
[string] $RepositoryType = 'all',
130130

131-
[string] $Issue,
131+
[int] $Issue,
132132

133133
[switch] $IgnorePullRequests,
134134

@@ -375,8 +375,7 @@ function Get-GitHubIssueTimeline
375375
[string] $Uri,
376376

377377
[Parameter(Mandatory)]
378-
[ValidateNotNullOrEmpty()]
379-
[string] $Issue,
378+
[int] $Issue,
380379

381380
[string] $AccessToken,
382381

0 commit comments

Comments
 (0)