Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
- List issues
- List group issues
- List project issues
- Single issue
- User issues
- Single project issue
- New issue
- Edit issue
- Delete an issue
- Reorder an issue
- Move an issue
- Clone an issue
- Subscribe to an issue
- Unsubscribe from an issue
- Create a to-do item
- List merge requests related to issue
- List merge requests that close a particular issue on merge
- Participants on issues
- Comments on issues
- Get issues statistics
- Get group issues statistics
- Get project issues statistics
- Issues attributes
Synopsis
- groupIssues :: Group -> IssueAttrs -> GitLab [Issue]
- projectIssues :: Project -> IssueAttrs -> GitLab [Issue]
- issue :: Int -> GitLab (Either (Response ByteString) (Maybe Issue))
- userIssues :: User -> GitLab [Issue]
- projectIssue :: Project -> Int -> GitLab (Either (Response ByteString) (Maybe Issue))
- newIssue :: Project -> Text -> Text -> GitLab (Either (Response ByteString) (Maybe Issue))
- editIssue :: Project -> IssueId -> EditIssueReq -> GitLab (Either (Response ByteString) Issue)
- deleteIssue :: Project -> IssueId -> GitLab (Either (Response ByteString) (Maybe ()))
- reorderIssue :: Project -> IssueId -> Int -> Int -> GitLab (Either (Response ByteString) Issue)
- moveIssue :: Project -> IssueId -> ProjectId -> GitLab (Either (Response ByteString) (Maybe Issue))
- cloneIssue :: Project -> IssueId -> ProjectId -> GitLab (Either (Response ByteString) (Maybe Issue))
- subscribeIssue :: Project -> IssueId -> GitLab (Either (Response ByteString) (Maybe Issue))
- unsubscribeIssue :: Project -> IssueId -> GitLab (Either (Response ByteString) (Maybe Issue))
- createTodo :: Project -> IssueId -> GitLab (Either (Response ByteString) (Maybe Todo))
- issueMergeRequests :: Project -> IssueId -> GitLab (Either (Response ByteString) [MergeRequest])
- issueMergeRequestsThatClose :: Project -> IssueId -> GitLab (Either (Response ByteString) [MergeRequest])
- issueParticipants :: Project -> IssueId -> GitLab (Either (Response ByteString) [User])
- issueStatisticsUser :: IssueAttrs -> GitLab IssueStatistics
- issueStatisticsGroup :: Group -> IssueAttrs -> GitLab IssueStatistics
- issueStatisticsProject :: Project -> IssueAttrs -> GitLab IssueStatistics
- defaultIssueFilters :: IssueAttrs
- data IssueAttrs = IssueAttrs {
- issueFilter_assignee_id :: Maybe Int
- issueFilter_assignee_username :: Maybe String
- issueFilter_author_id :: Maybe Int
- issueFilter_author_username :: Maybe String
- issueFilter_confidential :: Maybe Bool
- issueFilter_created_after :: Maybe UTCTime
- issueFilter_created_before :: Maybe UTCTime
- issueFilter_due_date :: Maybe DueDate
- issueFilter_iids :: Maybe Int
- issueFilter_in :: Maybe SearchIn
- issueFilter_iteration_id :: Maybe Int
- issueFilter_iteration_title :: Maybe String
- issueFilter_milestone :: Maybe String
- issueFilter_labels :: Maybe String
- issueFilter_my_reaction_emoji :: Maybe String
- issueFilter_non_archived :: Maybe Bool
- issueFilter_order_by :: Maybe OrderBy
- issueFilter_scope :: Maybe Scope
- issueFilter_search :: Maybe String
- issueFilter_sort :: Maybe SortBy
- issueFilter_state :: Maybe IssueState
- issueFilter_updated_after :: Maybe UTCTime
- issueFilter_updated_before :: Maybe UTCTime
- issueFilter_with_labels_details :: Maybe Bool
- data DueDate
- data IssueState
List issues
List group issues
:: Group | the group |
-> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues.html#list-issues |
-> GitLab [Issue] |
Get a list of a project’s issues
List project issues
:: Project | the project |
-> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues.html#list-issues |
-> GitLab [Issue] |
Get a list of a project’s issues
Single issue
Only for administrators. Get a single issue.
User issues
Single project issue
Get a single project issue. If the project is private or the issue is confidential, you need to provide credentials to authorize.
New issue
:: Project | project |
-> Text | issue title |
-> Text | issue description |
-> GitLab (Either (Response ByteString) (Maybe Issue)) |
create a new issue.
Edit issue
:: Project | |
-> IssueId | issue ID |
-> EditIssueReq | |
-> GitLab (Either (Response ByteString) Issue) |
edits an issue. see https://docs.gitlab.com/ee/api/issues.html#edit-issue
Delete an issue
deletes an issue. see https://docs.gitlab.com/ee/api/issues.html#delete-an-issue
Reorder an issue
:: Project | |
-> IssueId | issue ID |
-> Int | The ID of a project’s issue that should be placed after this issue |
-> Int | The ID of a project’s issue that should be placed before this issue |
-> GitLab (Either (Response ByteString) Issue) |
edits an issue. see https://docs.gitlab.com/ee/api/issues.html#edit-issue
Move an issue
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> ProjectId | The ID of the new project |
-> GitLab (Either (Response ByteString) (Maybe Issue)) |
Moves an issue to a different project. If a given label or milestone with the same name also exists in the target project, it’s then assigned to the issue being moved.
Clone an issue
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> ProjectId | The ID of the new project |
-> GitLab (Either (Response ByteString) (Maybe Issue)) |
Clone the issue to given project. Copies as much data as possible as long as the target project contains equivalent labels, milestones, and so on.
Subscribe to an issue
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> GitLab (Either (Response ByteString) (Maybe Issue)) |
Subscribes the authenticated user to an issue to receive notifications.
Unsubscribe from an issue
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> GitLab (Either (Response ByteString) (Maybe Issue)) |
Unsubscribes the authenticated user from the issue to not receive notifications from it.
Create a to-do item
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> GitLab (Either (Response ByteString) (Maybe Todo)) |
Get all the merge requests that are related to the issue.
List merge requests related to issue
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> GitLab (Either (Response ByteString) [MergeRequest]) |
Get all the merge requests that are related to the issue.
List merge requests that close a particular issue on merge
issueMergeRequestsThatClose Source #
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> GitLab (Either (Response ByteString) [MergeRequest]) |
get all merge requests that close a particular issue when merged.
Participants on issues
:: Project | project |
-> IssueId | The internal ID of a project’s issue |
-> GitLab (Either (Response ByteString) [User]) |
get all merge requests that close a particular issue when merged.
Comments on issues
Get issues statistics
:: IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues_statistics.html#get-issues-statistics |
-> GitLab IssueStatistics | the issue statistics |
Gets issues count statistics on all issues the authenticated user has access to.
Get group issues statistics
:: Group | the group |
-> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues_statistics.html#get-issues-statistics |
-> GitLab IssueStatistics | the issue statistics |
Gets issues count statistics for a given group.
Get project issues statistics
issueStatisticsProject Source #
:: Project | the project |
-> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues_statistics.html#get-issues-statistics |
-> GitLab IssueStatistics | the issue statistics |
Gets issues count statistics for a given group.
Issues attributes
defaultIssueFilters :: IssueAttrs Source #
No issue filters, thereby returning all issues. Default scope is "all".
data IssueAttrs Source #
Attributes related to a project issue
When an issue is due
data IssueState Source #
Is a project issues open or closed
Instances
Show IssueState Source # | |
Defined in GitLab.API.Issues showsPrec :: Int -> IssueState -> ShowS # show :: IssueState -> String # showList :: [IssueState] -> ShowS # |