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.
Synopsis
- 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
- optionsCreator :: Name User -> IssueRepoMod
- optionsMentioned :: Name User -> IssueRepoMod
- optionsIrrelevantMilestone :: IssueRepoMod
- optionsAnyMilestone :: IssueRepoMod
- optionsNoMilestone :: IssueRepoMod
- optionsMilestone :: Id Milestone -> IssueRepoMod
- optionsIrrelevantAssignee :: IssueRepoMod
- optionsAnyAssignee :: IssueRepoMod
- optionsNoAssignee :: IssueRepoMod
- optionsAssignee :: Name User -> IssueRepoMod
- data IssueState
- data MergeableState
- class HasState mod
- class HasDirection mod
- class HasCreatedUpdated mod
- class HasComments mod
- class HasLabels mod
- class HasSince mod
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 #
Instances
Semigroup PullRequestMod Source # | |
Defined in GitHub.Data.Options (<>) :: PullRequestMod -> PullRequestMod -> PullRequestMod # sconcat :: NonEmpty PullRequestMod -> PullRequestMod # stimes :: Integral b => b -> PullRequestMod -> PullRequestMod # | |
Monoid PullRequestMod Source # | |
Defined in GitHub.Data.Options mappend :: PullRequestMod -> PullRequestMod -> PullRequestMod # mconcat :: [PullRequestMod] -> PullRequestMod # | |
HasCreatedUpdated PullRequestMod Source # | |
Defined in GitHub.Data.Options | |
HasDirection PullRequestMod Source # | |
Defined in GitHub.Data.Options sortDir :: SortDirection -> PullRequestMod | |
HasState PullRequestMod Source # | |
Defined in GitHub.Data.Options state :: Maybe IssueState -> PullRequestMod |
optionsBase :: Text -> PullRequestMod Source #
optionsHead :: Text -> PullRequestMod Source #
Issues
Instances
Semigroup IssueMod Source # | |
Monoid IssueMod Source # | |
HasSince IssueMod Source # | |
Defined in GitHub.Data.Options optionsSince :: UTCTime -> IssueMod Source # | |
HasLabels IssueMod Source # | |
Defined in GitHub.Data.Options optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueMod Source # | |
HasComments IssueMod Source # | |
Defined in GitHub.Data.Options | |
HasCreatedUpdated IssueMod Source # | |
Defined in GitHub.Data.Options | |
HasDirection IssueMod Source # | |
Defined in GitHub.Data.Options | |
HasState IssueMod Source # | |
Defined in GitHub.Data.Options state :: Maybe IssueState -> IssueMod |
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 #
Instances
Semigroup IssueRepoMod Source # | |
Defined in GitHub.Data.Options (<>) :: IssueRepoMod -> IssueRepoMod -> IssueRepoMod # sconcat :: NonEmpty IssueRepoMod -> IssueRepoMod # stimes :: Integral b => b -> IssueRepoMod -> IssueRepoMod # | |
Monoid IssueRepoMod Source # | |
Defined in GitHub.Data.Options mempty :: IssueRepoMod # mappend :: IssueRepoMod -> IssueRepoMod -> IssueRepoMod # mconcat :: [IssueRepoMod] -> IssueRepoMod # | |
HasSince IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
HasLabels IssueRepoMod Source # | |
Defined in GitHub.Data.Options optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueRepoMod Source # | |
HasComments IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
HasCreatedUpdated IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
HasDirection IssueRepoMod Source # | |
Defined in GitHub.Data.Options sortDir :: SortDirection -> IssueRepoMod | |
HasState IssueRepoMod Source # | |
Defined in GitHub.Data.Options state :: Maybe IssueState -> IssueRepoMod |
optionsCreator :: Name User -> IssueRepoMod Source #
Issues created by a certain user.
optionsMentioned :: Name User -> IssueRepoMod Source #
Issue mentioning the given user.
optionsIrrelevantMilestone :: IssueRepoMod Source #
Don't care about milestones (default).
optionsAnyMilestone
means there should be some milestone, but it can be any.
See https://developer.github.com/v3/issues/#list-issues-for-a-repository
optionsAnyMilestone :: IssueRepoMod Source #
Issues that have a milestone.
optionsNoMilestone :: IssueRepoMod Source #
Issues that have no milestone.
optionsMilestone :: Id Milestone -> IssueRepoMod Source #
Issues with the given milestone.
optionsIrrelevantAssignee :: IssueRepoMod Source #
Issues with or without assignee (default).
optionsAnyAssignee :: IssueRepoMod Source #
Issues assigned to someone.
optionsNoAssignee :: IssueRepoMod Source #
Issues assigned to nobody.
optionsAssignee :: Name User -> IssueRepoMod Source #
Issues assigned to a specific user.
Data
data IssueState Source #
Issue
or PullRequest
state
Instances
data MergeableState Source #
PullRequest
mergeable_state
Instances
Internal
state
Instances
HasState IssueRepoMod Source # | |
Defined in GitHub.Data.Options state :: Maybe IssueState -> IssueRepoMod | |
HasState IssueMod Source # | |
Defined in GitHub.Data.Options state :: Maybe IssueState -> IssueMod | |
HasState PullRequestMod Source # | |
Defined in GitHub.Data.Options state :: Maybe IssueState -> PullRequestMod |
class HasDirection mod Source #
sortDir
Instances
HasDirection IssueRepoMod Source # | |
Defined in GitHub.Data.Options sortDir :: SortDirection -> IssueRepoMod | |
HasDirection IssueMod Source # | |
Defined in GitHub.Data.Options | |
HasDirection PullRequestMod Source # | |
Defined in GitHub.Data.Options sortDir :: SortDirection -> PullRequestMod |
class HasCreatedUpdated mod Source #
Instances
HasCreatedUpdated IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
HasCreatedUpdated IssueMod Source # | |
Defined in GitHub.Data.Options | |
HasCreatedUpdated PullRequestMod Source # | |
Defined in GitHub.Data.Options |
class HasComments mod Source #
Instances
HasComments IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
HasComments IssueMod Source # | |
Defined in GitHub.Data.Options |
Instances
HasLabels IssueRepoMod Source # | |
Defined in GitHub.Data.Options optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueRepoMod Source # | |
HasLabels IssueMod Source # | |
Defined in GitHub.Data.Options optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueMod Source # |
Instances
HasSince IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
HasSince IssueMod Source # | |
Defined in GitHub.Data.Options optionsSince :: UTCTime -> IssueMod Source # |