gitlab-haskell-1.0.0.5: 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.RepositoryFiles

Description

 
Synopsis

Documentation

repositoryFile Source #

Arguments

:: Project

the project

-> Text

the file path

-> Text

name of the branch, tag or commit

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

Allows you to receive information about file in repository like name, size, content. File content is Base64 encoded.

repositoryFileBlame Source #

Arguments

:: Project

the project

-> Text

the file path

-> Text

name of the branch, tag or commit

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

Allows you to receive blame information. Each blame range contains lines and corresponding commit information.

repositoryFileRawFile Source #

Arguments

:: Project

the project

-> Text

the file path

-> Text

The name of branch, tag or commit. Default is the HEAD of the project.

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

Get a raw file from a repository.

repositoryFileBlob Source #

Arguments

:: Int

project ID

-> Text

blob SHA

-> GitLab (Either (Response ByteString) String) 

Allows you to receive information about blob in repository like size and content. Blob content is Base64 encoded.

createRepositoryFile Source #

Arguments

:: Project

the project

-> Text

the file path

-> Text

Name of the new branch to create. The commit is added to this branch.

-> Text

The file’s content

-> Text

The commit message

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

This allows you to create a single file. For creating multiple files with a single request see the commits API.

updateRepositoryFile Source #

Arguments

:: Project

the project

-> Text

the file path

-> Text

Name of the new branch to create. The commit is added to this branch.

-> Text

The file’s content

-> Text

The commit message

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

This allows you to update a single file. For updating multiple files with a single request see the commits API.

deleteRepositoryFile Source #

Arguments

:: Project

the project

-> Text

the file path

-> Text

Name of the new branch to create. The commit is added to this branch.

-> Text

The commit message

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

This allows you to delete a single file. For deleting multiple files with a single request, see the commits API.