amazonka-codecommit-1.6.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.PostCommentForPullRequest

Contents

Description

Posts a comment on a pull request.

Synopsis

Creating a Request

postCommentForPullRequest Source #

Creates a value of PostCommentForPullRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • pcfprLocation - The location of the change where you want to post your comment. If no location is provided, the comment will be posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
  • pcfprClientRequestToken - A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
  • pcfprPullRequestId - The system-generated ID of the pull request. To get this ID, use ListPullRequests .
  • pcfprRepositoryName - The name of the repository where you want to post a comment on a pull request.
  • pcfprBeforeCommitId - The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
  • pcfprAfterCommitId - The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
  • pcfprContent - The content of your comment on the change.

data PostCommentForPullRequest Source #

See: postCommentForPullRequest smart constructor.

Instances

Eq PostCommentForPullRequest Source # 
Data PostCommentForPullRequest Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PostCommentForPullRequest -> c PostCommentForPullRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PostCommentForPullRequest #

toConstr :: PostCommentForPullRequest -> Constr #

dataTypeOf :: PostCommentForPullRequest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PostCommentForPullRequest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PostCommentForPullRequest) #

gmapT :: (forall b. Data b => b -> b) -> PostCommentForPullRequest -> PostCommentForPullRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PostCommentForPullRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PostCommentForPullRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> PostCommentForPullRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PostCommentForPullRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PostCommentForPullRequest -> m PostCommentForPullRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PostCommentForPullRequest -> m PostCommentForPullRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PostCommentForPullRequest -> m PostCommentForPullRequest #

Read PostCommentForPullRequest Source # 
Show PostCommentForPullRequest Source # 
Generic PostCommentForPullRequest Source # 
Hashable PostCommentForPullRequest Source # 
ToJSON PostCommentForPullRequest Source # 
NFData PostCommentForPullRequest Source # 
AWSRequest PostCommentForPullRequest Source # 
ToHeaders PostCommentForPullRequest Source # 
ToPath PostCommentForPullRequest Source # 
ToQuery PostCommentForPullRequest Source # 
type Rep PostCommentForPullRequest Source # 
type Rep PostCommentForPullRequest = D1 * (MetaData "PostCommentForPullRequest" "Network.AWS.CodeCommit.PostCommentForPullRequest" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "PostCommentForPullRequest'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Location))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pcfprPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_pcfprBeforeCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprAfterCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_pcfprContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs PostCommentForPullRequest Source # 

Request Lenses

pcfprLocation :: Lens' PostCommentForPullRequest (Maybe Location) Source #

The location of the change where you want to post your comment. If no location is provided, the comment will be posted as a general comment on the pull request difference between the before commit ID and the after commit ID.

pcfprClientRequestToken :: Lens' PostCommentForPullRequest (Maybe Text) Source #

A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.

pcfprPullRequestId :: Lens' PostCommentForPullRequest Text Source #

The system-generated ID of the pull request. To get this ID, use ListPullRequests .

pcfprRepositoryName :: Lens' PostCommentForPullRequest Text Source #

The name of the repository where you want to post a comment on a pull request.

pcfprBeforeCommitId :: Lens' PostCommentForPullRequest Text Source #

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.

pcfprAfterCommitId :: Lens' PostCommentForPullRequest Text Source #

The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.

pcfprContent :: Lens' PostCommentForPullRequest Text Source #

The content of your comment on the change.

Destructuring the Response

postCommentForPullRequestResponse Source #

Creates a value of PostCommentForPullRequestResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • pcfprrsBeforeBlobId - In the directionality of the pull request, the blob ID of the before blob.
  • pcfprrsLocation - The location of the change where you posted your comment.
  • pcfprrsAfterCommitId - The full commit ID of the commit in the destination branch where the pull request will be merged.
  • pcfprrsPullRequestId - The system-generated ID of the pull request.
  • pcfprrsAfterBlobId - In the directionality of the pull request, the blob ID of the after blob.
  • pcfprrsBeforeCommitId - The full commit ID of the commit in the source branch used to create the pull request, or in the case of an updated pull request, the full commit ID of the commit used to update the pull request.
  • pcfprrsRepositoryName - The name of the repository where you posted a comment on a pull request.
  • pcfprrsComment - The content of the comment you posted.
  • pcfprrsResponseStatus - -- | The response status code.

data PostCommentForPullRequestResponse Source #

See: postCommentForPullRequestResponse smart constructor.

Instances

Eq PostCommentForPullRequestResponse Source # 
Data PostCommentForPullRequestResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PostCommentForPullRequestResponse -> c PostCommentForPullRequestResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PostCommentForPullRequestResponse #

toConstr :: PostCommentForPullRequestResponse -> Constr #

dataTypeOf :: PostCommentForPullRequestResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PostCommentForPullRequestResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PostCommentForPullRequestResponse) #

gmapT :: (forall b. Data b => b -> b) -> PostCommentForPullRequestResponse -> PostCommentForPullRequestResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PostCommentForPullRequestResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PostCommentForPullRequestResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PostCommentForPullRequestResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PostCommentForPullRequestResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PostCommentForPullRequestResponse -> m PostCommentForPullRequestResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PostCommentForPullRequestResponse -> m PostCommentForPullRequestResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PostCommentForPullRequestResponse -> m PostCommentForPullRequestResponse #

Read PostCommentForPullRequestResponse Source # 
Show PostCommentForPullRequestResponse Source # 
Generic PostCommentForPullRequestResponse Source # 
NFData PostCommentForPullRequestResponse Source # 
type Rep PostCommentForPullRequestResponse Source # 
type Rep PostCommentForPullRequestResponse = D1 * (MetaData "PostCommentForPullRequestResponse" "Network.AWS.CodeCommit.PostCommentForPullRequest" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "PostCommentForPullRequestResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprrsBeforeBlobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pcfprrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Location)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprrsAfterCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pcfprrsPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprrsAfterBlobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_pcfprrsBeforeCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprrsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_pcfprrsComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Comment))) (S1 * (MetaSel (Just Symbol "_pcfprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))))

Response Lenses

pcfprrsBeforeBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #

In the directionality of the pull request, the blob ID of the before blob.

pcfprrsLocation :: Lens' PostCommentForPullRequestResponse (Maybe Location) Source #

The location of the change where you posted your comment.

pcfprrsAfterCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #

The full commit ID of the commit in the destination branch where the pull request will be merged.

pcfprrsPullRequestId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #

The system-generated ID of the pull request.

pcfprrsAfterBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #

In the directionality of the pull request, the blob ID of the after blob.

pcfprrsBeforeCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #

The full commit ID of the commit in the source branch used to create the pull request, or in the case of an updated pull request, the full commit ID of the commit used to update the pull request.

pcfprrsRepositoryName :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #

The name of the repository where you posted a comment on a pull request.

pcfprrsComment :: Lens' PostCommentForPullRequestResponse (Maybe Comment) Source #

The content of the comment you posted.