Skip to content

Commit a22739e

Browse files
committed
Updating [int] to [int64]
Updating all instances of ID's typed as [int] to be [int64]. Fixes microsoft#91
1 parent 35b3d51 commit a22739e

8 files changed

+23
-23
lines changed

GitHubAssignees.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function New-GithubAssignee
241241
[string] $Uri,
242242

243243
[Parameter(Mandatory)]
244-
[int] $Issue,
244+
[int64] $Issue,
245245

246246
[Parameter(Mandatory)]
247247
[ValidateCount(1, 10)]
@@ -343,7 +343,7 @@ function Remove-GithubAssignee
343343
[string] $Uri,
344344

345345
[Parameter(Mandatory)]
346-
[int] $Issue,
346+
[int64] $Issue,
347347

348348
[Parameter(Mandatory)]
349349
[string[]] $Assignee,

GitHubComments.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function Get-GitHubComment
8686

8787
[Parameter(Mandatory, ParameterSetName='IssueUri')]
8888
[Parameter(Mandatory, ParameterSetName='IssueElements')]
89-
[int] $Issue,
89+
[int64] $Issue,
9090

9191
[Parameter(ParameterSetName='RepositoryUri')]
9292
[Parameter(ParameterSetName='RepositoryElements')]
@@ -257,7 +257,7 @@ function New-GitHubComment
257257
[string] $Uri,
258258

259259
[Parameter(Mandatory)]
260-
[int] $Issue,
260+
[int64] $Issue,
261261

262262
[Parameter(Mandatory)]
263263
[string] $Body,

GitHubEvents.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ function Get-GitHubEvent
6565

6666
[Parameter(Mandatory, ParameterSetName='EventUri')]
6767
[Parameter(Mandatory, ParameterSetName='EventElements')]
68-
[int] $EventID,
68+
[int64] $EventID,
6969

7070
[Parameter(Mandatory, ParameterSetName='IssueUri')]
7171
[Parameter(Mandatory, ParameterSetName='IssueElements')]
72-
[int] $Issue,
72+
[int64] $Issue,
7373

7474
[string] $AccessToken,
7575

GitHubIssues.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function Get-GitHubIssue
136136
[ValidateSet('All', 'OwnedAndMember')]
137137
[string] $RepositoryType = 'All',
138138

139-
[int] $Issue,
139+
[int64] $Issue,
140140

141141
[switch] $IgnorePullRequests,
142142

@@ -391,7 +391,7 @@ function Get-GitHubIssueTimeline
391391
[string] $Uri,
392392

393393
[Parameter(Mandatory)]
394-
[int] $Issue,
394+
[int64] $Issue,
395395

396396
[string] $AccessToken,
397397

@@ -506,7 +506,7 @@ function New-GitHubIssue
506506

507507
[string[]] $Assignee,
508508

509-
[int] $Milestone,
509+
[int64] $Milestone,
510510

511511
[string[]] $Label,
512512

@@ -639,15 +639,15 @@ function Update-GitHubIssue
639639
[string] $Uri,
640640

641641
[Parameter(Mandatory)]
642-
[int] $Issue,
642+
[int64] $Issue,
643643

644644
[string] $Title,
645645

646646
[string] $Body,
647647

648648
[string[]] $Assignee,
649649

650-
[int] $Milestone,
650+
[int64] $Milestone,
651651

652652
[string[]] $Label,
653653

@@ -764,7 +764,7 @@ function Lock-GitHubIssue
764764
[string] $Uri,
765765

766766
[Parameter(Mandatory)]
767-
[int] $Issue,
767+
[int64] $Issue,
768768

769769
[ValidateSet('OffTopic', 'TooHeated', 'Resolved', 'Spam')]
770770
[string] $Reason,
@@ -874,7 +874,7 @@ param(
874874
[string] $Uri,
875875

876876
[Parameter(Mandatory)]
877-
[int] $Issue,
877+
[int64] $Issue,
878878

879879
[string] $AccessToken,
880880

GitHubLabels.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ function Get-GitHubLabel
8686

8787
[Parameter(Mandatory, ParameterSetName='IssueUri')]
8888
[Parameter(Mandatory, ParameterSetName='IssueElements')]
89-
[int] $Issue,
89+
[int64] $Issue,
9090

9191
[Parameter(Mandatory, ParameterSetName='MilestoneUri')]
9292
[Parameter(Mandatory, ParameterSetName='MilestoneElements')]
93-
[int] $Milestone,
93+
[int64] $Milestone,
9494

9595
[string] $AccessToken,
9696

@@ -675,7 +675,7 @@ function Add-GitHubIssueLabel
675675
[string] $Uri,
676676

677677
[Parameter(Mandatory)]
678-
[int] $Issue,
678+
[int64] $Issue,
679679

680680
[Parameter(Mandatory)]
681681
[Alias('LabelName')]
@@ -776,7 +776,7 @@ function Set-GitHubIssueLabel
776776
[string] $Uri,
777777

778778
[Parameter(Mandatory)]
779-
[int] $Issue,
779+
[int64] $Issue,
780780

781781
[Parameter(Mandatory)]
782782
[Alias('LabelName')]
@@ -877,7 +877,7 @@ function Remove-GitHubIssueLabel
877877
[string] $Uri,
878878

879879
[Parameter(Mandatory)]
880-
[int] $Issue,
880+
[int64] $Issue,
881881

882882
[ValidateNotNullOrEmpty()]
883883
[Alias('LabelName')]

GitHubMilestones.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function Get-GitHubMilestone
7171

7272
[Parameter(Mandatory, ParameterSetName='MilestoneUri')]
7373
[Parameter(Mandatory, ParameterSetName='MilestoneElements')]
74-
[int] $Milestone,
74+
[int64] $Milestone,
7575

7676
[Parameter(ParameterSetName='RepositoryUri')]
7777
[Parameter(ParameterSetName='RepositoryElements')]
@@ -350,7 +350,7 @@ function Set-GitHubMilestone
350350

351351
[Parameter(Mandatory, ParameterSetName='Uri')]
352352
[Parameter(Mandatory, ParameterSetName='Elements')]
353-
[int] $Milestone,
353+
[int64] $Milestone,
354354

355355
[Parameter(Mandatory, ParameterSetName='Uri')]
356356
[Parameter(Mandatory, ParameterSetName='Elements')]

GitHubRepositories.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function New-GitHubRepository
102102

103103
[string] $LicenseTemplate,
104104

105-
[int] $TeamId,
105+
[int64] $TeamId,
106106

107107
[switch] $Private,
108108

@@ -1271,7 +1271,7 @@ function Move-GitHubRepositoryOwnership
12711271
[ValidateNotNullOrEmpty()]
12721272
[string] $NewOwnerName,
12731273

1274-
[int[]] $TeamId,
1274+
[int64[]] $TeamId,
12751275

12761276
[string] $AccessToken,
12771277

GitHubTeams.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function Get-GitHubTeamMember
182182
[Parameter(
183183
Mandatory,
184184
ParameterSetName='ID')]
185-
[int] $TeamId,
185+
[int64] $TeamId,
186186

187187
[string] $AccessToken,
188188

0 commit comments

Comments
 (0)