< Back
Get-GitHubComment
Post
NAME Get-GitHubComment
SYNOPSIS
SYNTAX
Get-GitHubComment -OwnerName <String> -RepositoryName <String> [-Since <DateTime>] [-Sort <String>] [-Direction
<String>] [-MediaType <String>] [-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -OwnerName <String> -RepositoryName <String> -CommentID <String> [-MediaType <String>]
[-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -OwnerName <String> -RepositoryName <String> -Issue <Int64> [-Since <DateTime>] [-MediaType
<String>] [-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -Uri <String> -CommentID <String> [-MediaType <String>] [-AccessToken <String>] [-NoStatus]
[-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -Uri <String> -Issue <Int64> [-Since <DateTime>] [-MediaType <String>] [-AccessToken <String>]
[-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -Uri <String> [-Since <DateTime>] [-Sort <String>] [-Direction <String>] [-MediaType <String>]
[-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Get the comments for a given Github repository.
The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub
PARAMETERS
-OwnerName <String>
Owner of the repository.
If not supplied here, the DefaultOwnerName configuration property value will be used.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RepositoryName <String>
Name of the repository.
If not supplied here, the DefaultRepositoryName configuration property value will be used.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Uri <String>
Uri for the repository.
The OwnerName and RepositoryName will be extracted from here instead of needing to provide
them individually.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CommentID <String>
The ID of a specific comment to get. If not supplied, will return back all comments for this repository.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Issue <Int64>
Issue number to get comments for. If not supplied, will return back all comments for this repository.
Required? true
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Since <DateTime>
Only comments updated at or after this time are returned.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Sort <String>
How to sort the results.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Direction <String>
How to list the results. Ignored without the sort parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MediaType <String>
The format in which the API will return the body of the comment.
Raw - Return the raw markdown body. Response will include body. This is the default if you do not pass any
specific media type.
Text - Return a text only representation of the markdown body. Response will include body_text.
Html - Return HTML rendered from the body's markdown. Response will include body_html.
Full - Return raw, text and HTML representations. Response will include body, body_text, and body_html.
Required? false
Position? named
Default value Raw
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
If provided, this will be used as the AccessToken for authentication with the
REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NoStatus [<SwitchParameter>]
If this switch is specified, long-running commands will run on the main thread
with no commandline status update. When not specified, those commands run in
the background, enabling the command prompt to provide status information.
If not supplied here, the DefaultNoStatus configuration property value will be used.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GitHubComment-OwnerName Microsoft -RepositoryName PowerShellForGitHub
Get the comments for the Microsoft\\PowerShellForGitHub project.
RELATED LINKS
SYNOPSIS
SYNTAX
Get-GitHubComment -OwnerName <String> -RepositoryName <String> [-Since <DateTime>] [-Sort <String>] [-Direction
<String>] [-MediaType <String>] [-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -OwnerName <String> -RepositoryName <String> -CommentID <String> [-MediaType <String>]
[-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -OwnerName <String> -RepositoryName <String> -Issue <Int64> [-Since <DateTime>] [-MediaType
<String>] [-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -Uri <String> -CommentID <String> [-MediaType <String>] [-AccessToken <String>] [-NoStatus]
[-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -Uri <String> -Issue <Int64> [-Since <DateTime>] [-MediaType <String>] [-AccessToken <String>]
[-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
Get-GitHubComment -Uri <String> [-Since <DateTime>] [-Sort <String>] [-Direction <String>] [-MediaType <String>]
[-AccessToken <String>] [-NoStatus] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Get the comments for a given Github repository.
The Git repo for this module can be found here: http://aka.ms/PowerShellForGitHub
PARAMETERS
-OwnerName <String>
Owner of the repository.
If not supplied here, the DefaultOwnerName configuration property value will be used.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RepositoryName <String>
Name of the repository.
If not supplied here, the DefaultRepositoryName configuration property value will be used.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Uri <String>
Uri for the repository.
The OwnerName and RepositoryName will be extracted from here instead of needing to provide
them individually.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CommentID <String>
The ID of a specific comment to get. If not supplied, will return back all comments for this repository.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Issue <Int64>
Issue number to get comments for. If not supplied, will return back all comments for this repository.
Required? true
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Since <DateTime>
Only comments updated at or after this time are returned.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Sort <String>
How to sort the results.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Direction <String>
How to list the results. Ignored without the sort parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MediaType <String>
The format in which the API will return the body of the comment.
Raw - Return the raw markdown body. Response will include body. This is the default if you do not pass any
specific media type.
Text - Return a text only representation of the markdown body. Response will include body_text.
Html - Return HTML rendered from the body's markdown. Response will include body_html.
Full - Return raw, text and HTML representations. Response will include body, body_text, and body_html.
Required? false
Position? named
Default value Raw
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
If provided, this will be used as the AccessToken for authentication with the
REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NoStatus [<SwitchParameter>]
If this switch is specified, long-running commands will run on the main thread
with no commandline status update. When not specified, those commands run in
the background, enabling the command prompt to provide status information.
If not supplied here, the DefaultNoStatus configuration property value will be used.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GitHubComment-OwnerName Microsoft -RepositoryName PowerShellForGitHub
Get the comments for the Microsoft\\PowerShellForGitHub project.
RELATED LINKS