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 the contents of one or more commits in a repository.
Synopsis
- data BatchGetCommits = BatchGetCommits' {
- commitIds :: [Text]
- repositoryName :: Text
- newBatchGetCommits :: Text -> BatchGetCommits
- batchGetCommits_commitIds :: Lens' BatchGetCommits [Text]
- batchGetCommits_repositoryName :: Lens' BatchGetCommits Text
- data BatchGetCommitsResponse = BatchGetCommitsResponse' {
- commits :: Maybe [Commit]
- errors :: Maybe [BatchGetCommitsError]
- httpStatus :: Int
- newBatchGetCommitsResponse :: Int -> BatchGetCommitsResponse
- batchGetCommitsResponse_commits :: Lens' BatchGetCommitsResponse (Maybe [Commit])
- batchGetCommitsResponse_errors :: Lens' BatchGetCommitsResponse (Maybe [BatchGetCommitsError])
- batchGetCommitsResponse_httpStatus :: Lens' BatchGetCommitsResponse Int
Creating a Request
data BatchGetCommits Source #
See: newBatchGetCommits
smart constructor.
BatchGetCommits' | |
|
Instances
Create a value of BatchGetCommits
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:commitIds:BatchGetCommits'
, batchGetCommits_commitIds
- The full commit IDs of the commits to get information about.
You must supply the full SHA IDs of each commit. You cannot use shortened SHA IDs.
$sel:repositoryName:BatchGetCommits'
, batchGetCommits_repositoryName
- The name of the repository that contains the commits.
Request Lenses
batchGetCommits_commitIds :: Lens' BatchGetCommits [Text] Source #
The full commit IDs of the commits to get information about.
You must supply the full SHA IDs of each commit. You cannot use shortened SHA IDs.
batchGetCommits_repositoryName :: Lens' BatchGetCommits Text Source #
The name of the repository that contains the commits.
Destructuring the Response
data BatchGetCommitsResponse Source #
See: newBatchGetCommitsResponse
smart constructor.
BatchGetCommitsResponse' | |
|
Instances
newBatchGetCommitsResponse Source #
Create a value of BatchGetCommitsResponse
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:commits:BatchGetCommitsResponse'
, batchGetCommitsResponse_commits
- An array of commit data type objects, each of which contains information
about a specified commit.
$sel:errors:BatchGetCommitsResponse'
, batchGetCommitsResponse_errors
- Returns any commit IDs for which information could not be found. For
example, if one of the commit IDs was a shortened SHA ID or that commit
was not found in the specified repository, the ID returns an error
object with more information.
$sel:httpStatus:BatchGetCommitsResponse'
, batchGetCommitsResponse_httpStatus
- The response's http status code.
Response Lenses
batchGetCommitsResponse_commits :: Lens' BatchGetCommitsResponse (Maybe [Commit]) Source #
An array of commit data type objects, each of which contains information about a specified commit.
batchGetCommitsResponse_errors :: Lens' BatchGetCommitsResponse (Maybe [BatchGetCommitsError]) Source #
Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
batchGetCommitsResponse_httpStatus :: Lens' BatchGetCommitsResponse Int Source #
The response's http status code.