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

GitLab.API.Notes

Description

 
Synopsis

Issues

issueNotes Source #

Arguments

:: Project

project

-> Int

issue IID

-> Maybe SortBy

sort the issues

-> Maybe OrderBy

Return issue notes ordered by created_at or updated_at fields

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

Gets a list of all notes for a single issue.

issueNote Source #

Arguments

:: Project

project

-> Int

issue IID

-> Int

note ID

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

Returns a single note for a specific project issue.

newIssueNote Source #

Arguments

:: Project

project

-> Int

issue IID

-> Text

the body of the note

-> Maybe Bool

The confidential flag of a note. Default is false.

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

Creates a new note to a single project issue.

modifyIssueNote Source #

Arguments

:: Project

project

-> Int

issue IID

-> Int

note ID

-> Maybe Text

the body of the note

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

Modify existing note of an issue.

deleteIssueNote Source #

Arguments

:: Project

project

-> Int

issue IID

-> Int

note ID

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

Deletes an existing note of an issue.

Snippets

snippetNotes Source #

Arguments

:: Project

project

-> Int

snippet IID

-> Maybe SortBy

sort the snippets

-> Maybe OrderBy

Return snippet notes ordered by created_at or updated_at fields

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

Gets a list of all notes for a single snippet.

snippetNote Source #

Arguments

:: Project

project

-> Int

snippet IID

-> Int

note ID

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

Returns a single note for a specific project snippet.

newSnippetNote Source #

Arguments

:: Project

project

-> Int

snippet IID

-> Text

the body of the note

-> Maybe Bool

The confidential flag of a note. Default is false.

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

Creates a new note to a single project snippet.

modifySnippetNote Source #

Arguments

:: Project

project

-> Int

snippet IID

-> Int

note ID

-> Maybe Text

the body of the note

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

Modify existing note of an snippet.

deleteSnippetNote Source #

Arguments

:: Project

project

-> Int

snippet IID

-> Int

note ID

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

Deletes an existing note of an snippet.

Merge Requests

mergeRequestNotes Source #

Arguments

:: Project

project

-> Int

merge request IID

-> Maybe SortBy

sort the merge requests

-> Maybe OrderBy

Return merge request notes ordered by created_at or updated_at fields

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

Gets a list of all notes for a single merge request.

mergeRequestNote Source #

Arguments

:: Project

project

-> Int

merge request IID

-> Int

note ID

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

Returns a single note for a specific project merge request.

newMergeRequestNote Source #

Arguments

:: Project

project

-> Int

merge request IID

-> Text

the body of the note

-> Maybe Bool

The confidential flag of a note. Default is false.

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

Creates a new note to a single project merge request.

modifyMergeRequestNote Source #

Arguments

:: Project

project

-> Int

merge request IID

-> Int

note ID

-> Maybe Text

the body of the note

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

Modify existing note of an merge request.

deleteMergeRequestNote Source #

Arguments

:: Project

project

-> Int

merge request IID

-> Int

note ID

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

Deletes an existing note of an merge request.