amazonka-codecommit-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Data PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

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 # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Show PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Generic PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Associated Types

type Rep PostCommentForPullRequest :: Type -> Type #

Hashable PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

ToJSON PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

AWSRequest PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Associated Types

type Rs PostCommentForPullRequest :: Type #

ToHeaders PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

ToPath PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

ToQuery PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

NFData PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

type Rep PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

type Rep PostCommentForPullRequest = D1 (MetaData "PostCommentForPullRequest" "Network.AWS.CodeCommit.PostCommentForPullRequest" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "PostCommentForPullRequest'" PrefixI True) ((S1 (MetaSel (Just "_pcfprLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Location)) :*: (S1 (MetaSel (Just "_pcfprClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcfprPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_pcfprRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pcfprBeforeCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_pcfprAfterCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pcfprContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PostCommentForPullRequest Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

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 # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Data PostCommentForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

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 # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Show PostCommentForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Generic PostCommentForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

Associated Types

type Rep PostCommentForPullRequestResponse :: Type -> Type #

NFData PostCommentForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

type Rep PostCommentForPullRequestResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.PostCommentForPullRequest

type Rep PostCommentForPullRequestResponse = D1 (MetaData "PostCommentForPullRequestResponse" "Network.AWS.CodeCommit.PostCommentForPullRequest" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "PostCommentForPullRequestResponse'" PrefixI True) (((S1 (MetaSel (Just "_pcfprrsBeforeBlobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcfprrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Location))) :*: (S1 (MetaSel (Just "_pcfprrsAfterCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcfprrsPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pcfprrsAfterBlobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pcfprrsBeforeCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pcfprrsRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pcfprrsComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Comment)) :*: S1 (MetaSel (Just "_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.