Skip to content

Commit

Permalink
Add GitHub Reactions support (#193)
Browse files Browse the repository at this point in the history
Adds support for `Issue` and `PullRequest` reactions by adding the following new functions:

* [`Get-GitHubReaction`](https://developer.github.com/v3/reactions/#list-reactions-for-an-issue)
* [`Set-GitHubReaction`](https://developer.github.com/v3/reactions/#create-reaction-for-an-issue)
* [`Remove-GitHubReaction`](https://developer.github.com/v3/reactions/#delete-an-issue-reaction)
  • Loading branch information
TylerLeonhardt authored Jul 16, 2020
1 parent d76f54b commit 8e55f5a
Show file tree
Hide file tree
Showing 19 changed files with 889 additions and 5 deletions.
4 changes: 4 additions & 0 deletions GitHubAssignees.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ filter Get-GitHubAssignee
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -156,6 +157,7 @@ filter Test-GitHubAssignee
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -299,6 +301,7 @@ function Add-GitHubAssignee
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -476,6 +479,7 @@ function Remove-GitHubAssignee
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
1 change: 1 addition & 0 deletions GitHubBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ filter Get-GitHubRepositoryBranch
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
1 change: 1 addition & 0 deletions GitHubContents.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
1 change: 1 addition & 0 deletions GitHubEvents.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ filter Get-GitHubEvent
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
4 changes: 4 additions & 0 deletions GitHubIssueComments.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ filter Get-GitHubIssueComment
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -343,6 +344,7 @@ filter New-GitHubIssueComment
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -486,6 +488,7 @@ filter Set-GitHubIssueComment
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -616,6 +619,7 @@ filter Remove-GitHubIssueComment
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
6 changes: 6 additions & 0 deletions GitHubIssues.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ filter Get-GitHubIssue
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
GitHub.User
Expand Down Expand Up @@ -431,6 +432,7 @@ filter Get-GitHubIssueTimeline
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -569,6 +571,7 @@ filter New-GitHubIssue
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -737,6 +740,7 @@ filter Set-GitHubIssue
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -887,6 +891,7 @@ filter Lock-GitHubIssue
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -1017,6 +1022,7 @@ filter Unlock-GitHubIssue
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
8 changes: 8 additions & 0 deletions GitHubLabels.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ filter Get-GitHubLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -250,6 +251,7 @@ filter New-GitHubLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -391,6 +393,7 @@ filter Remove-GitHubLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -548,6 +551,7 @@ filter Set-GitHubLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -694,6 +698,7 @@ filter Initialize-GitHubLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -833,6 +838,7 @@ function Add-GitHubIssueLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -993,6 +999,7 @@ function Set-GitHubIssueLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -1184,6 +1191,7 @@ filter Remove-GitHubIssueLabel
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
4 changes: 4 additions & 0 deletions GitHubMilestones.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ filter Get-GitHubMilestone
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -269,6 +270,7 @@ filter New-GitHubMilestone
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -450,6 +452,7 @@ filter Set-GitHubMilestone
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -630,6 +633,7 @@ filter Remove-GitHubMilestone
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
5 changes: 2 additions & 3 deletions GitHubMiscellaneous.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ filter Get-GitHubLicense
the background, enabling the command prompt to provide status information.
If not supplied here, the DefaultNoStatus configuration property value will be used.
.INPUTS
[String]
GitHub.Branch
Expand All @@ -249,10 +248,10 @@ filter Get-GitHubLicense
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
.OUTPUTS
GitHub.License
Expand Down Expand Up @@ -487,10 +486,10 @@ filter Get-GitHubCodeOfConduct
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
.OUTPUTS
GitHub.CodeOfConduct
Expand Down
2 changes: 2 additions & 0 deletions GitHubProjects.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ filter Get-GitHubProject
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -274,6 +275,7 @@ filter New-GitHubProject
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
2 changes: 2 additions & 0 deletions GitHubPullRequests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ filter Get-GitHubPullRequest
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down Expand Up @@ -271,6 +272,7 @@ filter New-GitHubPullRequest
GitHub.Project
GitHub.ProjectCard
GitHub.ProjectColumn
GitHub.Reaction
GitHub.Release
GitHub.Repository
Expand Down
Loading

0 comments on commit 8e55f5a

Please sign in to comment.