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 repository branch, including its name and the last commit ID.
Synopsis
Creating a Request
getBranch :: GetBranch Source #
Creates a value of GetBranch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbBranchName
- The name of the branch for which you want to retrieve information.gbRepositoryName
- The name of the repository that contains the branch for which you want to retrieve information.
Represents the input of a get branch operation.
See: getBranch
smart constructor.
Instances
Request Lenses
gbBranchName :: Lens' GetBranch (Maybe Text) Source #
The name of the branch for which you want to retrieve information.
gbRepositoryName :: Lens' GetBranch (Maybe Text) Source #
The name of the repository that contains the branch for which you want to retrieve information.
Destructuring the Response
Creates a value of GetBranchResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grsBranch
- The name of the branch.grsResponseStatus
- -- | The response status code.
data GetBranchResponse Source #
Represents the output of a get branch operation.
See: getBranchResponse
smart constructor.
Instances
Response Lenses
grsBranch :: Lens' GetBranchResponse (Maybe BranchInfo) Source #
The name of the branch.
grsResponseStatus :: Lens' GetBranchResponse Int Source #
- - | The response status code.