| License | BSD-3-Clause |
|---|---|
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Safe Haskell | None |
| Language | Haskell2010 |
GitHub.Data.Options
Description
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
- 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
- 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 Methods (<>) :: PullRequestMod -> PullRequestMod -> PullRequestMod # sconcat :: NonEmpty PullRequestMod -> PullRequestMod # stimes :: Integral b => b -> PullRequestMod -> PullRequestMod # | |
| Monoid PullRequestMod Source # | |
Defined in GitHub.Data.Options Methods mappend :: PullRequestMod -> PullRequestMod -> PullRequestMod # mconcat :: [PullRequestMod] -> PullRequestMod # | |
| HasCreatedUpdated PullRequestMod Source # | |
Defined in GitHub.Data.Options | |
| HasDirection PullRequestMod Source # | |
Defined in GitHub.Data.Options Methods sortDir :: SortDirection -> PullRequestMod | |
| HasState PullRequestMod Source # | |
Defined in GitHub.Data.Options Methods 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 | |
| HasLabels IssueMod Source # | |
Defined in GitHub.Data.Options Methods optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueMod Source # | |
| HasComments IssueMod Source # | |
Defined in GitHub.Data.Options Methods | |
| HasCreatedUpdated IssueMod Source # | |
Defined in GitHub.Data.Options | |
| HasDirection IssueMod Source # | |
Defined in GitHub.Data.Options | |
| HasState IssueMod Source # | |
Defined in GitHub.Data.Options Methods 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
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
Constructors
| StateOpen | |
| StateClosed |
Instances
| Bounded IssueState Source # | |
Defined in GitHub.Data.Options | |
| Enum IssueState Source # | |
Defined in GitHub.Data.Options Methods succ :: IssueState -> IssueState pred :: IssueState -> IssueState toEnum :: Int -> IssueState fromEnum :: IssueState -> Int enumFrom :: IssueState -> [IssueState] enumFromThen :: IssueState -> IssueState -> [IssueState] enumFromTo :: IssueState -> IssueState -> [IssueState] enumFromThenTo :: IssueState -> IssueState -> IssueState -> [IssueState] | |
| Eq IssueState Source # | |
Defined in GitHub.Data.Options | |
| Data IssueState Source # | |
Defined in GitHub.Data.Options Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> IssueState -> c IssueState gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c IssueState toConstr :: IssueState -> Constr dataTypeOf :: IssueState -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c IssueState) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c IssueState) gmapT :: (forall b. Data b => b -> b) -> IssueState -> IssueState gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> IssueState -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> IssueState -> r gmapQ :: (forall d. Data d => d -> u) -> IssueState -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> IssueState -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> IssueState -> m IssueState gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> IssueState -> m IssueState gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> IssueState -> m IssueState | |
| Ord IssueState Source # | |
Defined in GitHub.Data.Options Methods compare :: IssueState -> IssueState -> Ordering (<) :: IssueState -> IssueState -> Bool (<=) :: IssueState -> IssueState -> Bool (>) :: IssueState -> IssueState -> Bool (>=) :: IssueState -> IssueState -> Bool max :: IssueState -> IssueState -> IssueState min :: IssueState -> IssueState -> IssueState | |
| Show IssueState Source # | |
Defined in GitHub.Data.Options Methods showsPrec :: Int -> IssueState -> ShowS show :: IssueState -> String showList :: [IssueState] -> ShowS | |
| Generic IssueState Source # | |
Defined in GitHub.Data.Options Associated Types type Rep IssueState :: Type -> Type | |
| NFData IssueState Source # | |
Defined in GitHub.Data.Options Methods rnf :: IssueState -> () # | |
| FromJSON IssueState Source # | |
Defined in GitHub.Data.Options | |
| ToJSON IssueState Source # | |
Defined in GitHub.Data.Options Methods toJSON :: IssueState -> Value # toEncoding :: IssueState -> Encoding # toJSONList :: [IssueState] -> Value # toEncodingList :: [IssueState] -> Encoding # | |
| Binary IssueState Source # | |
Defined in GitHub.Data.Options | |
| type Rep IssueState Source # | |
Defined in GitHub.Data.Options type Rep IssueState = D1 ('MetaData "IssueState" "GitHub.Data.Options" "github-0.23-K3uQMQDn7B7DXfUjYtDWP8" 'False) (C1 ('MetaCons "StateOpen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StateClosed" 'PrefixI 'False) (U1 :: Type -> Type)) | |
data MergeableState Source #
PullRequest mergeable_state
Constructors
| StateUnknown | |
| StateClean | |
| StateDirty | |
| StateUnstable | |
| StateBlocked | |
| StateBehind |
Instances
| Bounded MergeableState Source # | |
Defined in GitHub.Data.Options | |
| Enum MergeableState Source # | |
Defined in GitHub.Data.Options Methods succ :: MergeableState -> MergeableState pred :: MergeableState -> MergeableState toEnum :: Int -> MergeableState fromEnum :: MergeableState -> Int enumFrom :: MergeableState -> [MergeableState] enumFromThen :: MergeableState -> MergeableState -> [MergeableState] enumFromTo :: MergeableState -> MergeableState -> [MergeableState] enumFromThenTo :: MergeableState -> MergeableState -> MergeableState -> [MergeableState] | |
| Eq MergeableState Source # | |
Defined in GitHub.Data.Options Methods (==) :: MergeableState -> MergeableState -> Bool (/=) :: MergeableState -> MergeableState -> Bool | |
| Data MergeableState Source # | |
Defined in GitHub.Data.Options Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MergeableState -> c MergeableState gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MergeableState toConstr :: MergeableState -> Constr dataTypeOf :: MergeableState -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MergeableState) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MergeableState) gmapT :: (forall b. Data b => b -> b) -> MergeableState -> MergeableState gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MergeableState -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MergeableState -> r gmapQ :: (forall d. Data d => d -> u) -> MergeableState -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> MergeableState -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> MergeableState -> m MergeableState gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MergeableState -> m MergeableState gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MergeableState -> m MergeableState | |
| Ord MergeableState Source # | |
Defined in GitHub.Data.Options Methods compare :: MergeableState -> MergeableState -> Ordering (<) :: MergeableState -> MergeableState -> Bool (<=) :: MergeableState -> MergeableState -> Bool (>) :: MergeableState -> MergeableState -> Bool (>=) :: MergeableState -> MergeableState -> Bool max :: MergeableState -> MergeableState -> MergeableState min :: MergeableState -> MergeableState -> MergeableState | |
| Show MergeableState Source # | |
Defined in GitHub.Data.Options Methods showsPrec :: Int -> MergeableState -> ShowS show :: MergeableState -> String showList :: [MergeableState] -> ShowS | |
| Generic MergeableState Source # | |
Defined in GitHub.Data.Options Associated Types type Rep MergeableState :: Type -> Type | |
| NFData MergeableState Source # | |
Defined in GitHub.Data.Options Methods rnf :: MergeableState -> () # | |
| FromJSON MergeableState Source # | |
Defined in GitHub.Data.Options Methods parseJSON :: Value -> Parser MergeableState # parseJSONList :: Value -> Parser [MergeableState] # | |
| ToJSON MergeableState Source # | |
Defined in GitHub.Data.Options Methods toJSON :: MergeableState -> Value # toEncoding :: MergeableState -> Encoding # toJSONList :: [MergeableState] -> Value # toEncodingList :: [MergeableState] -> Encoding # | |
| Binary MergeableState Source # | |
Defined in GitHub.Data.Options | |
| type Rep MergeableState Source # | |
Defined in GitHub.Data.Options type Rep MergeableState = D1 ('MetaData "MergeableState" "GitHub.Data.Options" "github-0.23-K3uQMQDn7B7DXfUjYtDWP8" 'False) ((C1 ('MetaCons "StateUnknown" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "StateClean" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StateDirty" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "StateUnstable" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "StateBlocked" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StateBehind" 'PrefixI 'False) (U1 :: Type -> Type)))) | |
Internal
Minimal complete definition
state
Instances
| HasState IssueRepoMod Source # | |
Defined in GitHub.Data.Options Methods state :: Maybe IssueState -> IssueRepoMod | |
| HasState IssueMod Source # | |
Defined in GitHub.Data.Options Methods state :: Maybe IssueState -> IssueMod | |
| HasState PullRequestMod Source # | |
Defined in GitHub.Data.Options Methods state :: Maybe IssueState -> PullRequestMod | |
class HasDirection mod Source #
Minimal complete definition
sortDir
Instances
| HasDirection IssueRepoMod Source # | |
Defined in GitHub.Data.Options Methods sortDir :: SortDirection -> IssueRepoMod | |
| HasDirection IssueMod Source # | |
Defined in GitHub.Data.Options | |
| HasDirection PullRequestMod Source # | |
Defined in GitHub.Data.Options Methods sortDir :: SortDirection -> PullRequestMod | |
class HasCreatedUpdated mod Source #
Minimal complete definition
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 #
Minimal complete definition
Instances
| HasComments IssueRepoMod Source # | |
Defined in GitHub.Data.Options Methods | |
| HasComments IssueMod Source # | |
Defined in GitHub.Data.Options Methods | |
Minimal complete definition
Instances
| HasLabels IssueRepoMod Source # | |
Defined in GitHub.Data.Options Methods optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueRepoMod Source # | |
| HasLabels IssueMod Source # | |
Defined in GitHub.Data.Options Methods optionsLabels :: Foldable f => f (Name IssueLabel) -> IssueMod Source # | |
Minimal complete definition
Instances
| HasSince IssueRepoMod Source # | |
Defined in GitHub.Data.Options | |
| HasSince IssueMod Source # | |
Defined in GitHub.Data.Options | |