License | BSD-3-Clause |
---|---|

Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |

Safe Haskell | None |

Language | Haskell2010 |

Module with modifiers for pull requests' and issues' listings.

- stateOpen :: HasState mod => mod
- stateClosed :: HasState mod => mod
- stateAll :: HasState mod => mod
- sortAscending :: HasDirection mod => mod
- sortDescending :: HasDirection mod => mod
- sortByCreated :: HasCreatedUpdated mod => mod
- sortByUpdated :: HasCreatedUpdated mod => mod
- data PullRequestMod
- prModToQueryString :: PullRequestMod -> QueryString
- optionsBase :: Text -> PullRequestMod
- optionsNoBase :: PullRequestMod
- optionsHead :: Text -> PullRequestMod
- optionsNoHead :: PullRequestMod
- sortByPopularity :: PullRequestMod
- sortByLongRunning :: PullRequestMod
- data IssueMod
- issueModToQueryString :: IssueMod -> QueryString
- sortByComments :: HasComments mod => mod
- optionsLabels :: (HasLabels mod, Foldable f) => f (Name IssueLabel) -> mod
- optionsSince :: HasSince mod => UTCTime -> mod
- optionsSinceAll :: HasSince mod => mod
- optionsAssignedIssues :: IssueMod
- optionsCreatedIssues :: IssueMod
- optionsMentionedIssues :: IssueMod
- optionsSubscribedIssues :: IssueMod
- optionsAllIssues :: IssueMod
- data IssueRepoMod
- issueRepoModToQueryString :: IssueRepoMod -> QueryString
- optionsIrrelevantMilestone :: IssueRepoMod
- optionsAnyMilestone :: IssueRepoMod
- optionsNoMilestone :: IssueRepoMod
- optionsIrrelevantAssignee :: IssueRepoMod
- optionsAnyAssignee :: IssueRepoMod
- optionsNoAssignee :: IssueRepoMod
- data IssueState
- data MergeableState
- class HasState mod
- class HasDirection mod
- class HasCreatedUpdated mod where
- class HasComments mod where
- class HasLabels mod where
- class HasSince mod where

# Common modifiers

stateClosed :: HasState mod => mod Source #

sortAscending :: HasDirection mod => mod Source #

sortDescending :: HasDirection mod => mod Source #

sortByCreated :: HasCreatedUpdated mod => mod Source #

sortByUpdated :: HasCreatedUpdated mod => mod Source #

# Pull Requests

data PullRequestMod Source #

optionsBase :: Text -> PullRequestMod Source #

optionsHead :: Text -> PullRequestMod Source #

# Issues

sortByComments :: HasComments mod => mod Source #

optionsLabels :: (HasLabels mod, Foldable f) => f (Name IssueLabel) -> mod Source #

optionsSince :: HasSince mod => UTCTime -> mod Source #

optionsSinceAll :: HasSince mod => mod Source #

# Repo issues

data IssueRepoMod Source #

optionsIrrelevantMilestone :: IssueRepoMod Source #

Don't care about milestones.

`optionsAnyMilestone`

means there should be some milestone, but it can be any.

See https://developer.github.com/v3/issues/#list-issues-for-a-repository

# Data

data IssueState Source #

`Issue`

or `PullRequest`

state

data MergeableState Source #

`PullRequest`

mergeable_state

# Internal

state

class HasDirection mod Source #

sortDir

class HasCreatedUpdated mod where Source #

sortByCreated :: mod Source #

sortByUpdated :: mod Source #

class HasComments mod where Source #

sortByComments :: mod Source #

class HasLabels mod where Source #

optionsLabels :: Foldable f => f (Name IssueLabel) -> mod Source #

class HasSince mod where Source #

optionsSince :: UTCTime -> mod Source #

optionsSinceAll :: mod Source #