Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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.
- getBranch :: GetBranch
- data GetBranch
- gbBranchName :: Lens' GetBranch (Maybe Text)
- gbRepositoryName :: Lens' GetBranch (Maybe Text)
- getBranchResponse :: Int -> GetBranchResponse
- data GetBranchResponse
- gbrsBranch :: Lens' GetBranchResponse (Maybe BranchInfo)
- gbrsResponseStatus :: Lens' GetBranchResponse Int
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.
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:
gbrsBranch
- The name of the branch.gbrsResponseStatus
- -- | The response status code.
data GetBranchResponse Source #
Represents the output of a get branch operation.
See: getBranchResponse
smart constructor.
Response Lenses
gbrsBranch :: Lens' GetBranchResponse (Maybe BranchInfo) Source #
The name of the branch.
gbrsResponseStatus :: Lens' GetBranchResponse Int Source #
- - | The response status code.