Add-GistComment


Synopsis

Add a Comment to a Gist Object.


Syntax

Add-GistComment [-Id] <string> [-Comment] <string>  [<CommonParameters>]

Aliases

None.


Description

Adds a comment to a Gist Object using the currently authenticated user context.


Parameters

-Comment <string>
    The comment content.

    Required?                    true
    Position?                    Named
    Accept pipeline input?       true (ByPropertyName)
    Parameter set name           (All)
    Aliases                      None
    Dynamic?                     false

-Id <string>
    The Id of the Gist Object.

    Required?                    true
    Position?                    Named
    Accept pipeline input?       true (ByPropertyName)
    Parameter set name           (All)
    Aliases                      None
    Dynamic?                     false

<CommonParameters>
    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see
    about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

System.String

  • Represents text as a sequence of UTF-16 code units.

Outputs

GistComment

  • A custom .net object representation of the JSON response from the GitHub API.

Notes

There must be an Authenticated User Context to interact with Gist Objects.


Example 1

Add the comment ‘Test comment added through PSGist.’ to the Gist ‘93258652fee1551dd0c63fbd5a37c8e0’.

PS C:\> Add-GistComment -Id 93258652fee1551dd0c63fbd5a37c8e0 -Comment 'Test comment added through PSGist.'


User      : dotps1
Id        : 93258652fee1551dd0c63fbd5a37c8e0
CommentId : 1788460
Body      : Test comment added through PSGist.
Fork me on GitHub