Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- branches :: Project -> GitLab [Branch]
- branch :: Project -> Text -> GitLab (Maybe Branch)
- createRepositoryBranch :: Project -> Text -> Text -> GitLab (Maybe Branch)
- deleteRepositoryBranch :: Project -> Text -> GitLab (Either (Response ByteString) (Maybe ()))
- deleteMergedBranches :: Project -> GitLab (Either (Response ByteString) (Maybe ()))
List repository branches
branches :: Project -> GitLab [Branch] Source #
Get a list of repository branches from a project, sorted by name alphabetically.
Get single repository branch
Get a single project repository branch.
Create repository branch
createRepositoryBranch Source #
:: Project | the project |
-> Text | branch name |
-> Text | Branch name or commit SHA to create branch from |
-> GitLab (Maybe Branch) |
Create a new branch in the repository.
Delete repository branch
deleteRepositoryBranch Source #
Delete a branch from the repository.
Delete merged branches
Deletes all branches that are merged into the project’s default branch.