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.Commits

Description

 
Synopsis

List repository commits

repoCommits Source #

Arguments

:: Project

the project

-> GitLab [Commit] 

Get a list of repository commits in a project.

Create a commit with multiple files and actions

createCommitMultipleFilesActions Source #

Arguments

:: Project

the project

-> Text

Name of the branch to commit into.

-> Text

Commit message

-> [CommitAction] 
-> GitLab (Maybe Commit) 

Get a list of repository commits in a project.

Get a single commit

singleCommit Source #

Arguments

:: Project

the project

-> Text

the commit hash

-> GitLab (Maybe Commit) 

Get a specific commit identified by the commit hash or name of a branch or tag.

Get references a commit is pushed to

Cherry-pick a commit

cheryPickCommit Source #

Arguments

:: Project

the project

-> Text

the commit hash

-> Text

The name of the branch

-> GitLab (Maybe Commit) 

Cherry-picks a commit to a given branch.

Revert a commit

revertCommit Source #

Arguments

:: Project

the project

-> Text

the commit hash

-> Text

target branch name

-> GitLab (Maybe Commit) 

Reverts a commit in a given branch.

Get the diff of a commit

commitDiff Source #

Arguments

:: Project

project

-> Text

The commit hash or name of a repository branch or tag

-> GitLab (Either (Response ByteString) [Diff]) 

Get the diff of a commit in a project.

Get the comments of a commit

commitComments Source #

Arguments

:: Project

project

-> Text

The commit hash or name of a repository branch or tag

-> GitLab (Either (Response ByteString) [CommitNote]) 

Get the diff of a commit in a project.

Post comment to commit

postCommitComment Source #

Arguments

:: Project

project

-> Text

The commit hash or name of a repository branch or tag

-> Text

The text of the comment

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

Adds a comment to a commit.

Get the discussions of a commit

commitDiscussions Source #

Arguments

:: Project

project

-> Text

The commit hash or name of a repository branch or tag

-> GitLab (Either (Response ByteString) [Discussion]) 

Get the discussions of a commit in a project.

List merge requests associated with a commit

commitMergeRequests Source #

Arguments

:: Project

project

-> Text

The commit SHA

-> GitLab (Either (Response ByteString) [MergeRequest]) 

Get the discussions of a commit in a project.

Commits on specific branch

branchCommits Source #

Arguments

:: Project

project

-> Text

branch name

-> GitLab (Either (Response ByteString) [Commit]) 

returns all commits of a branch from a project given its project ID and the branch name.

Types

data CommitAction Source #

A commit action.

Constructors

CommitAction 

Fields

Instances

Instances details
Eq CommitAction Source # 
Instance details

Defined in GitLab.API.Commits

Show CommitAction Source # 
Instance details

Defined in GitLab.API.Commits

data ContentEncoding Source #

Whether the content is text or base 64.

data Action Source #

The actual action within a commit action.

Instances

Instances details
Eq Action Source # 
Instance details

Defined in GitLab.API.Commits

Methods

(==) :: Action -> Action -> Bool #

(/=) :: Action -> Action -> Bool #

Show Action Source # 
Instance details

Defined in GitLab.API.Commits