Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns information about a commit, including commit message and committer information.
Synopsis
Creating a Request
Creates a value of GetCommit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcRepositoryName
- The name of the repository to which the commit was made.gcCommitId
- The commit ID. Commit IDs are the full SHA of the commit.
Represents the input of a get commit operation.
See: getCommit
smart constructor.
Instances
Request Lenses
gcRepositoryName :: Lens' GetCommit Text Source #
The name of the repository to which the commit was made.
gcCommitId :: Lens' GetCommit Text Source #
The commit ID. Commit IDs are the full SHA of the commit.
Destructuring the Response
Creates a value of GetCommitResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcrsResponseStatus
- -- | The response status code.gcrsCommit
- A commit data type object that contains information about the specified commit.
data GetCommitResponse Source #
Represents the output of a get commit operation.
See: getCommitResponse
smart constructor.
Instances
Response Lenses
gcrsResponseStatus :: Lens' GetCommitResponse Int Source #
- - | The response status code.
gcrsCommit :: Lens' GetCommitResponse Commit Source #
A commit data type object that contains information about the specified commit.