Commits
14 commands (DELETE 1, GET 10, PATCH 1, POST 2). Write commands (POST, PUT, PATCH, DELETE) change data on GitHub, use -WhatIf to preview a request
| Command | Alias | Method | Endpoint | Synopsis |
|---|---|---|---|---|
| Get-GitHubRepositoryBranchesForHeadCommit | Get-GHRepositoryBranchesForHeadCommit | GET | /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head |
List branches for HEAD commit |
| Get-GitHubRepositoryCombinedStatusForRef | Get-GHRepositoryCombinedStatusForRef | GET | /repos/{owner}/{repo}/commits/{ref}/status |
Get the combined status for a specific reference |
| Get-GitHubRepositoryCommentsForCommit | Get-GHRepositoryCommentsForCommit | GET | /repos/{owner}/{repo}/commits/{commit_sha}/comments |
List commit comments |
| Get-GitHubRepositoryCommit | Get-GHRepositoryCommit | GET | /repos/{owner}/{repo}/commits/{ref} |
Get a commit |
| Get-GitHubRepositoryCommitComment | Get-GHRepositoryCommitComment | GET | /repos/{owner}/{repo}/comments/{comment_id} |
Get a commit comment |
| Get-GitHubRepositoryCommitCommentsForRepo | Get-GHRepositoryCommitCommentsForRepo | GET | /repos/{owner}/{repo}/comments |
List commit comments for a repository |
| Get-GitHubRepositoryCommitStatusesForRef | Get-GHRepositoryCommitStatusesForRef | GET | /repos/{owner}/{repo}/commits/{ref}/statuses |
List commit statuses for a reference |
| Get-GitHubRepositoryCommits | Get-GHRepositoryCommits | GET | /repos/{owner}/{repo}/commits |
List commits |
| Get-GitHubRepositoryCompareCommits | Get-GHRepositoryCompareCommits | GET | /repos/{owner}/{repo}/compare/{basehead} |
Compare two commits |
| Get-GitHubRepositoryPullRequestsAssociatedWithCommit | Get-GHRepositoryPullRequestsAssociatedWithCommit | GET | /repos/{owner}/{repo}/commits/{commit_sha}/pulls |
List pull requests associated with a commit |
| New-GitHubRepositoryCommitComment | Get-GHNewRepositoryCommitComment | POST | /repos/{owner}/{repo}/commits/{commit_sha}/comments |
Create a commit comment |
| New-GitHubRepositoryCommitStatus | Get-GHNewRepositoryCommitStatus | POST | /repos/{owner}/{repo}/statuses/{sha} |
Create a commit status |
| Remove-GitHubRepositoryCommitComment | Get-GHRemoveRepositoryCommitComment | DELETE | /repos/{owner}/{repo}/comments/{comment_id} |
Delete a commit comment |
| Set-GitHubRepositoryCommitComment | Get-GHSetRepositoryCommitComment | PATCH | /repos/{owner}/{repo}/comments/{comment_id} |
Update a commit comment |
Have a look around and if you would like to contribute please read over the Contributing guide
Table of contents
- Get-GitHubRepositoryBranchesForHeadCommit
- Get-GitHubRepositoryCombinedStatusForRef
- Get-GitHubRepositoryCommentsForCommit
- Get-GitHubRepositoryCommit
- Get-GitHubRepositoryCommitComment
- Get-GitHubRepositoryCommitCommentsForRepo
- Get-GitHubRepositoryCommitStatusesForRef
- Get-GitHubRepositoryCommits
- Get-GitHubRepositoryCompareCommits
- Get-GitHubRepositoryPullRequestsAssociatedWithCommit
- New-GitHubRepositoryCommitComment
- New-GitHubRepositoryCommitStatus
- Remove-GitHubRepositoryCommitComment
- Set-GitHubRepositoryCommitComment