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 Jun 28, 2020
1 parent 8a45dbd commit 9639e81
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 New-GitHubAssignee
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -476,6 +479,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 @@ -450,7 +450,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 Update-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -887,6 +891,7 @@ filter Lock-GitHubIssue
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down Expand Up @@ -1017,6 +1022,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 Update-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -694,6 +698,7 @@ filter Set-GitHubLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.EXAMPLE
Expand Down Expand Up @@ -833,6 +838,7 @@ function Add-GitHubIssueLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -993,6 +999,7 @@ function Set-GitHubIssueLabel
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Release
GitHub.ReleaseAsset
GitHub.Repository
.OUTPUTS
Expand Down Expand Up @@ -1184,6 +1191,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 9639e81

Please sign in to comment.