New GitHubComment
apobekiaris edited this page Jun 15, 2020
·
5 revisions
Pages 277
-
- external help file: XpandPwsh.Cmdlets.dll-Help.xml Module Name: XpandPwsh online version: https://go.microsoft.com/fwlink/?LinkID=2097043 schema: 2.0.0
- New-GitHubComment
- SYNOPSIS
- SYNTAX
- Owner
- Token
- DESCRIPTION
- EXAMPLES
- Example 1
- PARAMETERS
- -Comment
- -Confirm
- -IssueNumber
- -Organization
- -Owner
- -Pass
- -Repository
- -Token
- -WhatIf
- CommonParameters
- INPUTS
- None
- OUTPUTS
- System.Object
- NOTES
- RELATED LINKS
Clone this wiki locally
external help file: XpandPwsh.Cmdlets.dll-Help.xml Module Name: XpandPwsh online version: https://go.microsoft.com/fwlink/?LinkID=2097043 schema: 2.0.0
New-GitHubComment
SYNOPSIS
Post a comment to a GitHub issue
SYNTAX
Owner
New-GitHubComment [-IssueNumber <Int32>] -Comment <String> -Repository <String> -Owner <String>
-Organization <String> -Pass <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Token
New-GitHubComment [-IssueNumber <Int32>] -Comment <String> -Repository <String> -Organization <String>
-Token <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Post a comment to a GitHub issue.
EXAMPLES
Example 1
PS C:\> $cred = @{
Owner = $GitHubUserName
Pass = $GithubPass
Organization = "eXpandFramework"
}
$iArgs = @{
Repository = "eXpand"
} + $cred
New-GitHubComment -IssueNumber $issueNumber -Comment $labelsText @iArgs
Adds a new Github comment to the issue.
PARAMETERS
-Comment
{{ Fill Comment Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IssueNumber
{{ Fill IssueNumber Description }}
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Organization
{{ Fill Organization Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Owner
{{ Fill Owner Description }}
Type: String
Parameter Sets: Owner
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Pass
{{ Fill Pass Description }}
Type: String
Parameter Sets: Owner
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Repository
{{ Fill Repository Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Token
{{ Fill Token Description }}
Type: String
Parameter Sets: Token
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.