| Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
|---|---|
| License | BSD3 |
| Maintainer | robstewart57@gmail.com |
| Stability | stable |
| Safe Haskell | None |
| Language | Haskell2010 |
GitLab.API.Issues
Description
Synopsis
- 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 IssueSearchIn
- 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 IssueOrderBy
- issueFilter_scope :: Maybe IssueScope
- issueFilter_search :: Maybe String
- issueFilter_sort :: Maybe IssueSortBy
- issueFilter_state :: Maybe IssueState
- issueFilter_updated_after :: Maybe UTCTime
- issueFilter_updated_before :: Maybe UTCTime
- issueFilter_with_labels_details :: Maybe Bool
- data DueDate
- data IssueSearchIn
- data IssueOrderBy
- data IssueScope
- data IssueSortBy
- data IssueState
- projectIssues :: Project -> IssueAttrs -> GitLab [Issue]
- projectIssues' :: Int -> IssueAttrs -> GitLab (Either (Response ByteString) [Issue])
- issueStatisticsUser :: IssueAttrs -> GitLab IssueStatistics
- issueStatisticsGroup :: Group -> IssueAttrs -> GitLab IssueStatistics
- issueStatisticsGroup' :: Int -> IssueAttrs -> GitLab (Either (Response ByteString) (Maybe IssueStatistics))
- issueStatisticsProject :: Project -> IssueAttrs -> GitLab IssueStatistics
- issueStatisticsProject' :: Int -> IssueAttrs -> GitLab (Either (Response ByteString) (Maybe IssueStatistics))
- userIssues :: User -> GitLab [Issue]
- newIssue :: Project -> Text -> Text -> GitLab (Either (Response ByteString) (Maybe Issue))
- newIssue' :: Int -> Text -> Text -> GitLab (Either (Response ByteString) (Maybe Issue))
- editIssue :: ProjectId -> IssueId -> EditIssueReq -> GitLab (Either (Response ByteString) Issue)
Documentation
defaultIssueFilters :: IssueAttrs Source #
No issue filters, thereby returning all issues. Default scope is "all".
data IssueAttrs Source #
Constructors
Constructors
| NoDueDate | |
| Overdue | |
| Week | |
| Month | |
| NextMonthPreviousTwoWeeks |
data IssueSearchIn Source #
Constructors
| JustTitle | |
| JustDescription | |
| TitleAndDescription |
Instances
| Show IssueSearchIn Source # | |
Defined in GitLab.API.Issues Methods showsPrec :: Int -> IssueSearchIn -> ShowS # show :: IssueSearchIn -> String # showList :: [IssueSearchIn] -> ShowS # | |
data IssueOrderBy Source #
Constructors
| CreatedAt | |
| UpdatedAt | |
| Priority | |
| DueDate | |
| RelativePosition | |
| LabelPriority | |
| MilestoneDue | |
| Popularity | |
| Weight |
Instances
| Show IssueOrderBy Source # | |
Defined in GitLab.API.Issues Methods showsPrec :: Int -> IssueOrderBy -> ShowS # show :: IssueOrderBy -> String # showList :: [IssueOrderBy] -> ShowS # | |
data IssueScope Source #
Constructors
| CreatedByMe | |
| AssignedToMe | |
| All |
Instances
| Show IssueScope Source # | |
Defined in GitLab.API.Issues Methods showsPrec :: Int -> IssueScope -> ShowS # show :: IssueScope -> String # showList :: [IssueScope] -> ShowS # | |
data IssueSortBy Source #
Constructors
| Ascending | |
| Descending |
Instances
| Show IssueSortBy Source # | |
Defined in GitLab.API.Issues Methods showsPrec :: Int -> IssueSortBy -> ShowS # show :: IssueSortBy -> String # showList :: [IssueSortBy] -> ShowS # | |
data IssueState Source #
Constructors
| IssueOpen | |
| IssueClosed |
Instances
| Show IssueState Source # | |
Defined in GitLab.API.Issues Methods showsPrec :: Int -> IssueState -> ShowS # show :: IssueState -> String # showList :: [IssueState] -> ShowS # | |
Arguments
| :: Project | the project |
| -> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues.html#list-issues |
| -> GitLab [Issue] |
Arguments
| :: Int | the project ID |
| -> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues.html#list-issues |
| -> GitLab (Either (Response ByteString) [Issue]) | the GitLab issues |
Arguments
| :: 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.
Arguments
| :: 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.
issueStatisticsGroup' Source #
Arguments
| :: Int | the group ID |
| -> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues_statistics.html#get-issues-statistics |
| -> GitLab (Either (Response ByteString) (Maybe IssueStatistics)) | the issue statistics |
Gets issues count statistics for a given group.
issueStatisticsProject Source #
Arguments
| :: 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.
issueStatisticsProject' Source #
Arguments
| :: Int | the project ID |
| -> IssueAttrs | filter the issues, see https://docs.gitlab.com/ee/api/issues_statistics.html#get-issues-statistics |
| -> GitLab (Either (Response ByteString) (Maybe IssueStatistics)) | the issue statistics |
Gets issues count statistics for a given project.
Arguments
| :: Project | project |
| -> Text | issue title |
| -> Text | issue description |
| -> GitLab (Either (Response ByteString) (Maybe Issue)) |
create a new issue.
Arguments
| :: Int | project ID |
| -> Text | issue title |
| -> Text | issue description |
| -> GitLab (Either (Response ByteString) (Maybe Issue)) |
create a new issue.
editIssue :: ProjectId -> IssueId -> EditIssueReq -> GitLab (Either (Response ByteString) Issue) Source #
edits an issue. see https://docs.gitlab.com/ee/api/issues.html#edit-issue