gitlab-haskell-1.0.0.1: A Haskell library for the GitLab web API
Copyright(c) Rob Stewart Heriot-Watt University 2019
LicenseBSD3
Maintainerrobstewart57@gmail.com
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

GitLab.API.Branches

Description

 
Synopsis

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

branch Source #

Arguments

:: Project

the project

-> Text

the branch name

-> GitLab (Maybe Branch) 

Get a single project repository branch.

Create repository branch

createRepositoryBranch Source #

Arguments

:: 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 #

Arguments

:: Project

project

-> Text

branch name

-> GitLab (Either (Response ByteString) (Maybe ())) 

Delete a branch from the repository.

Delete merged branches

deleteMergedBranches Source #

Arguments

:: Project

project

-> GitLab (Either (Response ByteString) (Maybe ())) 

Deletes all branches that are merged into the project’s default branch.