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

GitLab.API.Repositories

Description

 
Synopsis

List repository tree

repositoryTree Source #

Arguments

:: Project

the project

-> GitLab [Repository] 

returns a list of repository files and directories in a project.

Get file archive

fileArchive Source #

Arguments

:: Project

project

-> ArchiveFormat

file format

-> FilePath

file path to store the archive

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

get a file archive of the repository files. For example:

fileArchive myProject TarGz "/tmp/myProject.tar.gz"

fileArchiveBS Source #

Arguments

:: Project

project

-> ArchiveFormat

file format

-> GitLab (Either (Response ByteString) ByteString) 

get a file archive of the repository files as a ByteString. For example:

fileArchiveBS myProject TarGz "/tmp/myProject.tar.gz"

Contributors

contributors Source #

Arguments

:: Project

project

-> Maybe OrderBy

Return contributors ordered by name, email, or commits (orders by commit date) fields. Default is commits.

-> Maybe SortBy

Return contributors sorted in asc or desc order. Default is asc.

-> GitLab [Contributor] 

Get repository contributors list.

Merge Base

mergeBase Source #

Arguments

:: Project

project

-> [Text]

The refs to find the common ancestor of, multiple refs can be passed. An example of a ref is '304d257dcb821665ab5110318fc58a007bd104ed'.

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

Get the common ancestor for 2 or more refs.