Skip to content

Commit

Permalink
Update the tests and functions to accomodate latest master changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardWolosky committed Jul 15, 2020
1 parent cd9cac0 commit 6b13df1
Show file tree
Hide file tree
Showing 18 changed files with 502 additions and 238 deletions.
4 changes: 4 additions & 0 deletions GitHubAssignees.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ filter Get-GitHubAssignee
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -157,6 +158,7 @@ filter Test-GitHubAssignee
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -300,6 +302,7 @@ function Add-GitHubAssignee
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -477,6 +480,7 @@ function Remove-GitHubAssignee
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down
1 change: 1 addition & 0 deletions GitHubBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ filter Get-GitHubRepositoryBranch
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down
1 change: 1 addition & 0 deletions GitHubContents.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down
2 changes: 1 addition & 1 deletion GitHubCore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function Invoke-GHRestMethod
$finalResult = $finalResult
}

if (-not (Get-GitHubConfiguration -Name DisableSmarterObjects))
if ((-not $Save) -and (-not (Get-GitHubConfiguration -Name DisableSmarterObjects)))
{
# In the case of getting raw content from the repo, we'll end up with a large object/byte
# array which isn't convertible to a smarter object, but by _trying_ we'll end up wasting
Expand Down
1 change: 1 addition & 0 deletions GitHubEvents.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ filter Get-GitHubEvent
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down
4 changes: 4 additions & 0 deletions GitHubIssueComments.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ filter Get-GitHubIssueComment
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -344,6 +345,7 @@ filter New-GitHubIssueComment
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -487,6 +489,7 @@ filter Set-GitHubIssueComment
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -617,6 +620,7 @@ filter Remove-GitHubIssueComment
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down
6 changes: 6 additions & 0 deletions GitHubIssues.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ filter Get-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -432,6 +433,7 @@ filter Get-GitHubIssueTimeline
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -570,6 +572,7 @@ filter New-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -738,6 +741,7 @@ filter Set-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -888,6 +892,7 @@ filter Lock-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down Expand Up @@ -1018,6 +1023,7 @@ filter Unlock-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down
8 changes: 8 additions & 0 deletions GitHubLabels.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ filter Get-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -251,6 +252,7 @@ filter New-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -392,6 +394,7 @@ filter Remove-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down Expand Up @@ -549,6 +552,7 @@ filter Set-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -695,6 +699,7 @@ filter Initialize-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down Expand Up @@ -834,6 +839,7 @@ function Add-GitHubIssueLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -994,6 +1000,7 @@ function Set-GitHubIssueLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -1185,6 +1192,7 @@ filter Remove-GitHubIssueLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down
4 changes: 4 additions & 0 deletions GitHubMilestones.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ filter Get-GitHubMilestone
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -270,6 +271,7 @@ filter New-GitHubMilestone
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -451,6 +453,7 @@ filter Set-GitHubMilestone
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -631,6 +634,7 @@ filter Remove-GitHubMilestone
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down
2 changes: 2 additions & 0 deletions GitHubMiscellaneous.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ filter Get-GitHubLicense
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
Expand Down Expand Up @@ -488,6 +489,7 @@ filter Get-GitHubCodeOfConduct
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
Expand Down
4 changes: 4 additions & 0 deletions GitHubProjects.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ filter Get-GitHubProject
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -275,6 +276,7 @@ filter New-GitHubProject
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -455,6 +457,7 @@ filter Set-GitHubProject
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -583,6 +586,7 @@ filter Remove-GitHubProject
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down
2 changes: 2 additions & 0 deletions GitHubPullRequests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ filter Get-GitHubPullRequest
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -272,6 +273,7 @@ filter New-GitHubPullRequest
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down
Loading

0 comments on commit 6b13df1

Please sign in to comment.