Copyright | (c) 2013-2021 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 |
Returns information about a commit, including commit message and committer information.
Synopsis
- data GetCommit = GetCommit' {
- repositoryName :: Text
- commitId :: Text
- newGetCommit :: Text -> Text -> GetCommit
- getCommit_repositoryName :: Lens' GetCommit Text
- getCommit_commitId :: Lens' GetCommit Text
- data GetCommitResponse = GetCommitResponse' {
- httpStatus :: Int
- commit :: Commit
- newGetCommitResponse :: Int -> Commit -> GetCommitResponse
- getCommitResponse_httpStatus :: Lens' GetCommitResponse Int
- getCommitResponse_commit :: Lens' GetCommitResponse Commit
Creating a Request
Represents the input of a get commit operation.
See: newGetCommit
smart constructor.
GetCommit' | |
|
Instances
Create a value of GetCommit
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:repositoryName:GetCommit'
, getCommit_repositoryName
- The name of the repository to which the commit was made.
$sel:commitId:GetCommit'
, getCommit_commitId
- The commit ID. Commit IDs are the full SHA ID of the commit.
Request Lenses
getCommit_repositoryName :: Lens' GetCommit Text Source #
The name of the repository to which the commit was made.
getCommit_commitId :: Lens' GetCommit Text Source #
The commit ID. Commit IDs are the full SHA ID of the commit.
Destructuring the Response
data GetCommitResponse Source #
Represents the output of a get commit operation.
See: newGetCommitResponse
smart constructor.
GetCommitResponse' | |
|
Instances
Create a value of GetCommitResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetCommitResponse'
, getCommitResponse_httpStatus
- The response's http status code.
$sel:commit:GetCommitResponse'
, getCommitResponse_commit
- A commit data type object that contains information about the specified
commit.
Response Lenses
getCommitResponse_httpStatus :: Lens' GetCommitResponse Int Source #
The response's http status code.
getCommitResponse_commit :: Lens' GetCommitResponse Commit Source #
A commit data type object that contains information about the specified commit.