| Copyright | (c) Rob Stewart Heriot-Watt University 2020 |
|---|---|
| License | BSD3 |
| Maintainer | [email protected] |
| Stability | stable |
| Safe Haskell | None |
| Language | Haskell2010 |
GitLab.API.Notes
Contents
Description
Synopsis
- issueNotes :: Project -> Int -> Maybe SortBy -> Maybe OrderBy -> GitLab (Either (Response ByteString) [Note])
- issueNote :: Project -> Int -> Int -> GitLab (Either (Response ByteString) (Maybe Note))
- newIssueNote :: Project -> Int -> Text -> Maybe Bool -> GitLab (Either (Response ByteString) (Maybe ()))
- modifyIssueNote :: Project -> Int -> Int -> Maybe Text -> GitLab (Either (Response ByteString) (Maybe Note))
- deleteIssueNote :: Project -> Int -> Int -> GitLab (Either (Response ByteString) (Maybe ()))
- snippetNotes :: Project -> Int -> Maybe SortBy -> Maybe OrderBy -> GitLab (Either (Response ByteString) [Note])
- snippetNote :: Project -> Int -> Int -> GitLab (Either (Response ByteString) (Maybe Note))
- newSnippetNote :: Project -> Int -> Text -> Maybe Bool -> GitLab (Either (Response ByteString) (Maybe ()))
- modifySnippetNote :: Project -> Int -> Int -> Maybe Text -> GitLab (Either (Response ByteString) (Maybe Note))
- deleteSnippetNote :: Project -> Int -> Int -> GitLab (Either (Response ByteString) (Maybe ()))
- mergeRequestNotes :: Project -> Int -> Maybe SortBy -> Maybe OrderBy -> GitLab (Either (Response ByteString) [Note])
- mergeRequestNote :: Project -> Int -> Int -> GitLab (Either (Response ByteString) (Maybe Note))
- newMergeRequestNote :: Project -> Int -> Text -> Maybe Bool -> GitLab (Either (Response ByteString) (Maybe ()))
- modifyMergeRequestNote :: Project -> Int -> Int -> Maybe Text -> GitLab (Either (Response ByteString) (Maybe Note))
- deleteMergeRequestNote :: Project -> Int -> Int -> GitLab (Either (Response ByteString) (Maybe ()))
Issues
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.
Arguments
| :: Project | project |
| -> Int | issue IID |
| -> Int | note ID |
| -> GitLab (Either (Response ByteString) (Maybe Note)) |
Returns a single note for a specific project issue.
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.
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.
Arguments
| :: Project | project |
| -> Int | issue IID |
| -> Int | note ID |
| -> GitLab (Either (Response ByteString) (Maybe ())) |
Deletes an existing note of an issue.
Snippets
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.
Arguments
| :: Project | project |
| -> Int | snippet IID |
| -> Int | note ID |
| -> GitLab (Either (Response ByteString) (Maybe Note)) |
Returns a single note for a specific project snippet.
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.
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.
Arguments
| :: Project | project |
| -> Int | snippet IID |
| -> Int | note ID |
| -> GitLab (Either (Response ByteString) (Maybe ())) |
Deletes an existing note of an snippet.
Merge Requests
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.
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.
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.