-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Access to the GitHub API, v3. -- -- The GitHub API provides programmatic access to the full GitHub Web -- site, from Issues to Gists to repos down to the underlying git data -- like references and trees. This library wraps all of that, exposing a -- basic but Haskell-friendly set of functions and data structures. -- -- For supported endpoints see GitHub module. -- --
-- import qualified GitHub as GH -- -- main :: IO () -- main = do -- possibleUser <- GH.executeRequest' $ GH.userInfoR "phadej" -- print possibleUser ---- -- For more of an overview please see the README: -- https://github.com/phadej/github/blob/master/README.md @package github @version 0.20 -- | This module may change between minor releases. Do not rely on it -- contents. module GitHub.Internal.Prelude -- | This is the simplest representation of UTC. It consists of the day -- number, and a time offset from midnight. Note that if a day has a leap -- second added to it, it will have 86401 seconds. data UTCTime -- | A map from keys to values. A map cannot contain duplicate keys; each -- key can map to at most one value. data HashMap k v -- | A space efficient, packed, unboxed Unicode text type. data Text -- | O(n) Convert a String into a Text. Subject to -- fusion. Performs replacement on invalid scalar values. pack :: String -> Text -- | O(n) Convert a Text into a String. Subject to -- fusion. unpack :: Text -> String -- | Boxed vectors, supporting efficient slicing. data Vector a -- | The Binary class provides put and get, methods to -- encode and decode a Haskell value to a lazy ByteString. It -- mirrors the Read and Show classes for textual -- representation of Haskell types, and is suitable for serialising -- Haskell values to disk, over the network. -- -- For decoding and generating simple external binary formats (e.g. C -- structures), Binary may be used, but in general is not suitable for -- complex protocols. Instead use the Put and Get -- primitives directly. -- -- Instances of Binary should satisfy the following property: -- --
-- decode . encode == id ---- -- That is, the get and put methods should be the inverse -- of each other. A range of instances are provided for basic Haskell -- types. class Binary t -- | The Data class comprehends a fundamental primitive -- gfoldl for folding over constructor applications, say terms. -- This primitive can be instantiated in several ways to map over the -- immediate subterms of a term; see the gmap combinators later -- in this class. Indeed, a generic programmer does not necessarily need -- to use the ingenious gfoldl primitive but rather the intuitive -- gmap combinators. The gfoldl primitive is completed by -- means to query top-level constructors, to turn constructor -- representations into proper terms, and to list all possible datatype -- constructors. This completion allows us to serve generic programming -- scenarios like read, show, equality, term generation. -- -- The combinators gmapT, gmapQ, gmapM, etc are all -- provided with default definitions in terms of gfoldl, leaving -- open the opportunity to provide datatype-specific definitions. (The -- inclusion of the gmap combinators as members of class -- Data allows the programmer or the compiler to derive -- specialised, and maybe more efficient code per datatype. Note: -- gfoldl is more higher-order than the gmap combinators. -- This is subject to ongoing benchmarking experiments. It might turn out -- that the gmap combinators will be moved out of the class -- Data.) -- -- Conceptually, the definition of the gmap combinators in terms -- of the primitive gfoldl requires the identification of the -- gfoldl function arguments. Technically, we also need to -- identify the type constructor c for the construction of the -- result type from the folded term type. -- -- In the definition of gmapQx combinators, we use -- phantom type constructors for the c in the type of -- gfoldl because the result type of a query does not involve the -- (polymorphic) type of the term argument. In the definition of -- gmapQl we simply use the plain constant type constructor -- because gfoldl is left-associative anyway and so it is readily -- suited to fold a left-associative binary operation over the immediate -- subterms. In the definition of gmapQr, extra effort is needed. We use -- a higher-order accumulation trick to mediate between left-associative -- constructor application vs. right-associative binary operation (e.g., -- (:)). When the query is meant to compute a value of type -- r, then the result type withing generic folding is r -- -> r. So the result of folding is a function to which we -- finally pass the right unit. -- -- With the -XDeriveDataTypeable option, GHC can generate -- instances of the Data class automatically. For example, given -- the declaration -- --
-- data T a b = C1 a b | C2 deriving (Typeable, Data) ---- -- GHC will generate an instance that is equivalent to -- --
-- instance (Data a, Data b) => Data (T a b) where -- gfoldl k z (C1 a b) = z C1 `k` a `k` b -- gfoldl k z C2 = z C2 -- -- gunfold k z c = case constrIndex c of -- 1 -> k (k (z C1)) -- 2 -> z C2 -- -- toConstr (C1 _ _) = con_C1 -- toConstr C2 = con_C2 -- -- dataTypeOf _ = ty_T -- -- con_C1 = mkConstr ty_T "C1" [] Prefix -- con_C2 = mkConstr ty_T "C2" [] Prefix -- ty_T = mkDataType "Module.T" [con_C1, con_C2] ---- -- This is suitable for datatypes that are exported transparently. class Typeable a => Data a -- | The class Typeable allows a concrete representation of a type -- to be calculated. class Typeable (a :: k) -- | Representable types of kind *. This class is derivable in GHC -- with the DeriveGeneric flag on. -- -- A Generic instance must satisfy the following laws: -- --
-- from . to ≡ id -- to . from ≡ id --class Generic a -- | The class of types that can be converted to a hash value. -- -- Minimal implementation: hashWithSalt. class Hashable a -- | Return a hash value for the argument, using the given salt. -- -- The general contract of hashWithSalt is: -- --
-- {-# LANGUAGE DeriveGeneric #-}
--
-- import GHC.Generics (Generic, Generic1)
-- import Control.DeepSeq
--
-- data Foo a = Foo a String
-- deriving (Eq, Generic, Generic1)
--
-- instance NFData a => NFData (Foo a)
-- instance NFData1 Foo
--
-- data Colour = Red | Green | Blue
-- deriving Generic
--
-- instance NFData Colour
--
--
-- Starting with GHC 7.10, the example above can be written more
-- concisely by enabling the new DeriveAnyClass extension:
--
--
-- {-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
--
-- import GHC.Generics (Generic)
-- import Control.DeepSeq
--
-- data Foo a = Foo a String
-- deriving (Eq, Generic, Generic1, NFData, NFData1)
--
-- data Colour = Red | Green | Blue
-- deriving (Generic, NFData)
--
--
-- -- rnf a = seq a () ---- -- However, starting with deepseq-1.4.0.0, the default -- implementation is based on DefaultSignatures allowing for -- more accurate auto-derived NFData instances. If you need the -- previously used exact default rnf method implementation -- semantics, use -- --
-- instance NFData Colour where rnf x = seq x () ---- -- or alternatively -- --
-- instance NFData Colour where rnf = rwhnf ---- -- or -- --
-- {-# LANGUAGE BangPatterns #-}
-- instance NFData Colour where rnf !_ = ()
--
rnf :: NFData a => a -> ()
-- | GHC.Generics-based rnf implementation
--
-- This provides a generic rnf implementation for one type at a
-- time. If the type of the value genericRnf is asked to reduce to
-- NF contains values of other types, those types have to provide
-- NFData instances. This also means that recursive types can only
-- be used with genericRnf if a NFData instance has been
-- defined as well (see examples below).
--
-- The typical usage for genericRnf is for reducing boilerplate
-- code when defining NFData instances for ordinary algebraic
-- datatypes. See the code below for some simple usage examples:
--
--
-- {-# LANGUAGE DeriveGeneric #-}
--
-- import Control.DeepSeq
-- import Control.DeepSeq.Generics (genericRnf)
-- import GHC.Generics
--
-- -- simple record
-- data Foo = Foo AccountId Name Address
-- deriving Generic
--
-- type Address = [String]
-- type Name = String
-- newtype AccountId = AccountId Int
--
-- instance NFData AccountId
-- instance NFData Foo where rnf = genericRnf
--
-- -- recursive list-like type
-- data N = Z | S N deriving Generic
--
-- instance NFData N where rnf = genericRnf
--
-- -- parametric & recursive type
-- data Bar a = Bar0 | Bar1 a | Bar2 (Bar a)
-- deriving Generic
--
-- instance NFData a => NFData (Bar a) where rnf = genericRnf
--
--
-- NOTE: The GNFData type-class showing up in the
-- type-signature is used internally and not exported.
genericRnf :: (Generic a, GNFData Rep a) => a -> ()
-- | The class of semigroups (types with an associative binary operation).
--
-- Instances should satisfy the associativity law:
--
--
class Semigroup a
-- | An associative operation.
(<>) :: Semigroup a => a -> a -> a
-- | Reduce a non-empty list with <>
--
-- The default definition should be sufficient, but this can be
-- overridden for efficiency.
sconcat :: Semigroup a => NonEmpty a -> a
-- | Repeat a value n times.
--
-- Given that this works on a Semigroup it is allowed to fail if
-- you request 0 or fewer repetitions, and the default definition will do
-- so.
--
-- By making this a member of the class, idempotent semigroups and
-- monoids can upgrade this to execute in O(1) by picking
-- stimes = stimesIdempotent or stimes =
-- stimesIdempotentMonoid respectively.
stimes :: (Semigroup a, Integral b) => b -> a -> a
-- | A type that can be converted from JSON, with the possibility of
-- failure.
--
-- In many cases, you can get the compiler to generate parsing code for
-- you (see below). To begin, let's cover writing an instance by hand.
--
-- There are various reasons a conversion could fail. For example, an
-- Object could be missing a required key, an Array could
-- be of the wrong size, or a value could be of an incompatible type.
--
-- The basic ways to signal a failed conversion are as follows:
--
--
-- -- Allow ourselves to write Text literals.
-- {-# LANGUAGE OverloadedStrings #-}
--
-- data Coord = Coord { x :: Double, y :: Double }
--
-- instance FromJSON Coord where
-- parseJSON (Object v) = Coord
-- <$> v .: "x"
-- <*> v .: "y"
--
-- -- We do not expect a non-Object value here.
-- -- We could use mzero to fail, but typeMismatch
-- -- gives a much more informative error message.
-- parseJSON invalid = typeMismatch "Coord" invalid
--
--
-- For this common case of only being concerned with a single type of
-- JSON value, the functions withObject, withNumber, etc.
-- are provided. Their use is to be preferred when possible, since they
-- are more terse. Using withObject, we can rewrite the above
-- instance (assuming the same language extension and data type) as:
--
-- -- instance FromJSON Coord where -- parseJSON = withObject "Coord" $ \v -> Coord -- <$> v .: "x" -- <*> v .: "y" ---- -- Instead of manually writing your FromJSON instance, there are -- two options to do it automatically: -- --
-- {-# LANGUAGE DeriveGeneric #-}
--
-- import GHC.Generics
--
-- data Coord = Coord { x :: Double, y :: Double } deriving Generic
--
-- instance FromJSON Coord
--
--
-- The default implementation will be equivalent to parseJSON =
-- genericParseJSON defaultOptions; If you need
-- different options, you can customize the generic decoding by defining:
--
--
-- customOptions = defaultOptions
-- { fieldLabelModifier = map toUpper
-- }
--
-- instance FromJSON Coord where
-- parseJSON = genericParseJSON customOptions
--
class FromJSON a
parseJSON :: FromJSON a => Value -> Parser a
parseJSONList :: FromJSON a => Value -> Parser [a]
-- | A type that can be converted to JSON.
--
-- Instances in general must specify toJSON and
-- should (but don't need to) specify toEncoding.
--
-- An example type and instance:
--
--
-- -- Allow ourselves to write Text literals.
-- {-# LANGUAGE OverloadedStrings #-}
--
-- data Coord = Coord { x :: Double, y :: Double }
--
-- instance ToJSON Coord where
-- toJSON (Coord x y) = object ["x" .= x, "y" .= y]
--
-- toEncoding (Coord x y) = pairs ("x" .= x <> "y" .= y)
--
--
-- Instead of manually writing your ToJSON instance, there are two
-- options to do it automatically:
--
--
-- {-# LANGUAGE DeriveGeneric #-}
--
-- import GHC.Generics
--
-- data Coord = Coord { x :: Double, y :: Double } deriving Generic
--
-- instance ToJSON Coord where
-- toEncoding = genericToEncoding defaultOptions
--
--
-- If on the other hand you wish to customize the generic decoding, you
-- have to implement both methods:
--
--
-- customOptions = defaultOptions
-- { fieldLabelModifier = map toUpper
-- }
--
-- instance ToJSON Coord where
-- toJSON = genericToJSON customOptions
-- toEncoding = genericToEncoding customOptions
--
--
-- Previous versions of this library only had the toJSON method.
-- Adding toEncoding had two reasons:
--
-- -- instance ToJSON Coord where -- toEncoding = genericToEncoding defaultOptions --toEncoding :: ToJSON a => a -> Encoding toJSONList :: ToJSON a => [a] -> Value toEncodingList :: ToJSON a => [a] -> Encoding -- | A JSON value represented as a Haskell value. data Value Object :: !Object -> Value Array :: !Array -> Value String :: !Text -> Value Number :: !Scientific -> Value Bool :: !Bool -> Value Null :: Value -- | A JSON "object" (key/value map). type Object = HashMap Text Value -- | Efficiently serialize a JSON value as a lazy ByteString. -- -- This is implemented in terms of the ToJSON class's -- toEncoding method. encode :: ToJSON a => a -> ByteString -- | withText expected f value applies f to the -- Text when value is a String and fails using -- typeMismatch expected otherwise. withText :: () => String -> Text -> Parser a -> Value -> Parser a -- | withObject expected f value applies f to the -- Object when value is an Object and fails using -- typeMismatch expected otherwise. withObject :: () => String -> Object -> Parser a -> Value -> Parser a -- | Retrieve the value associated with the given key of an Object. -- The result is empty if the key is not present or the value -- cannot be converted to the desired type. -- -- This accessor is appropriate if the key and value must be -- present in an object for it to be valid. If the key and value are -- optional, use .:? instead. (.:) :: FromJSON a => Object -> Text -> Parser a -- | Retrieve the value associated with the given key of an Object. -- The result is Nothing if the key is not present or if its value -- is Null, or empty if the value cannot be converted to -- the desired type. -- -- This accessor is most useful if the key and value can be absent from -- an object without affecting its validity. If the key and value are -- mandatory, use .: instead. (.:?) :: FromJSON a => Object -> Text -> Parser Maybe a -- | Helper for use in combination with .:? to provide default -- values for optional JSON object fields. -- -- This combinator is most useful if the key and value can be absent from -- an object without affecting its validity and we know a default value -- to assign in that case. If the key and value are mandatory, use -- .: instead. -- -- Example usage: -- --
-- v1 <- o .:? "opt_field_with_dfl" .!= "default_val" -- v2 <- o .: "mandatory_field" -- v3 <- o .:? "opt_field2" --(.!=) :: () => Parser Maybe a -> a -> Parser a (.=) :: (KeyValue kv, ToJSON v) => Text -> v -> kv infixr 8 .= -- | Create a Value from a list of name/value Pairs. If -- duplicate keys arise, earlier keys and their associated values win. object :: [Pair] -> Value -- | Fail parsing due to a type mismatch, with a descriptive message. -- -- Example usage: -- --
-- instance FromJSON Coord where
-- parseJSON (Object v) = {- type matches, life is good -}
-- parseJSON wat = typeMismatch "Coord" wat
--
typeMismatch :: () => String -> Value -> Parser a
-- | An associative binary operation
(<|>) :: Alternative f => f a -> f a -> f a
infixl 3 <|>
-- | The catMaybes function takes a list of Maybes and
-- returns a list of all the Just values.
--
-- -- >>> catMaybes [Just 1, Nothing, Just 3] -- [1,3] ---- -- When constructing a list of Maybe values, catMaybes can -- be used to return all of the "success" results (if the list is the -- result of a map, then mapMaybe would be more -- appropriate): -- --
-- >>> import Text.Read ( readMaybe ) -- -- >>> [readMaybe x :: Maybe Int | x <- ["1", "Foo", "3"] ] -- [Just 1,Nothing,Just 3] -- -- >>> catMaybes $ [readMaybe x :: Maybe Int | x <- ["1", "Foo", "3"] ] -- [1,3] --catMaybes :: () => [Maybe a] -> [a] -- | intercalate xs xss is equivalent to (concat -- (intersperse xs xss)). It inserts the list xs in -- between the lists in xss and concatenates the result. -- --
-- >>> intercalate ", " ["Lorem", "ipsum", "dolor"] -- "Lorem, ipsum, dolor" --intercalate :: () => [a] -> [[a]] -> [a] -- | List of elements of a structure, from left to right. toList :: Foldable t => t a -> [a] -- | Formats a time in ISO 8601, with up to 12 second decimals. -- -- This is the formatTime format %FT%T%Q == -- %%Y-%m-%dT%%H:%M:%S%Q. formatISO8601 :: UTCTime -> String -- | Verification of incomming webhook payloads, as described at -- https://developer.github.com/webhooks/securing/ module GitHub.Data.Webhooks.Validate -- | Validates a given payload against a given HMAC hexdigest using a given -- secret. Returns True iff the given hash is non-empty and it's a -- valid signature of the payload. isValidPayload :: Text -> Maybe Text -> ByteString -> Bool module GitHub.Data.URL -- | Data representing URLs in responses. -- -- N.B. syntactical validity is not verified. newtype URL URL :: Text -> URL getUrl :: URL -> Text instance Data.Data.Data GitHub.Data.URL.URL instance GHC.Generics.Generic GitHub.Data.URL.URL instance GHC.Show.Show GitHub.Data.URL.URL instance GHC.Classes.Ord GitHub.Data.URL.URL instance GHC.Classes.Eq GitHub.Data.URL.URL instance Control.DeepSeq.NFData GitHub.Data.URL.URL instance Data.Binary.Class.Binary GitHub.Data.URL.URL instance Data.Aeson.Types.ToJSON.ToJSON GitHub.Data.URL.URL instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.URL.URL module GitHub.Data.RateLimit data Limits Limits :: !Int -> !Int -> !Int -> Limits [limitsMax] :: Limits -> !Int [limitsRemaining] :: Limits -> !Int [limitsReset] :: Limits -> !Int data RateLimit RateLimit :: Limits -> Limits -> Limits -> RateLimit [rateLimitCore] :: RateLimit -> Limits [rateLimitSearch] :: RateLimit -> Limits [rateLimitGraphQL] :: RateLimit -> Limits instance GHC.Generics.Generic GitHub.Data.RateLimit.RateLimit instance GHC.Classes.Ord GitHub.Data.RateLimit.RateLimit instance GHC.Classes.Eq GitHub.Data.RateLimit.RateLimit instance Data.Data.Data GitHub.Data.RateLimit.RateLimit instance GHC.Show.Show GitHub.Data.RateLimit.RateLimit instance GHC.Generics.Generic GitHub.Data.RateLimit.Limits instance GHC.Classes.Ord GitHub.Data.RateLimit.Limits instance GHC.Classes.Eq GitHub.Data.RateLimit.Limits instance Data.Data.Data GitHub.Data.RateLimit.Limits instance GHC.Show.Show GitHub.Data.RateLimit.Limits instance Control.DeepSeq.NFData GitHub.Data.RateLimit.RateLimit instance Data.Binary.Class.Binary GitHub.Data.RateLimit.RateLimit instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.RateLimit.RateLimit instance Control.DeepSeq.NFData GitHub.Data.RateLimit.Limits instance Data.Binary.Class.Binary GitHub.Data.RateLimit.Limits instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.RateLimit.Limits module GitHub.Data.Name newtype Name entity N :: Text -> Name entity -- | Smart constructor for Name mkName :: proxy entity -> Text -> Name entity untagName :: Name entity -> Text instance Data.Data.Data entity => Data.Data.Data (GitHub.Data.Name.Name entity) instance GHC.Generics.Generic (GitHub.Data.Name.Name entity) instance GHC.Show.Show (GitHub.Data.Name.Name entity) instance GHC.Classes.Ord (GitHub.Data.Name.Name entity) instance GHC.Classes.Eq (GitHub.Data.Name.Name entity) instance Data.Hashable.Class.Hashable (GitHub.Data.Name.Name entity) instance Data.Binary.Class.Binary (GitHub.Data.Name.Name entity) instance Control.DeepSeq.NFData (GitHub.Data.Name.Name entity) instance Data.Aeson.Types.FromJSON.FromJSON (GitHub.Data.Name.Name entity) instance Data.Aeson.Types.ToJSON.ToJSON (GitHub.Data.Name.Name entity) instance Data.String.IsString (GitHub.Data.Name.Name entity) instance Data.Aeson.Types.ToJSON.ToJSONKey (GitHub.Data.Name.Name entity) instance Data.Aeson.Types.FromJSON.FromJSONKey (GitHub.Data.Name.Name entity) module GitHub.Data.Id -- | Numeric identifier. newtype Id entity Id :: Int -> Id entity -- | Smart constructor for Id. mkId :: proxy entity -> Int -> Id entity untagId :: Id entity -> Int instance Data.Data.Data entity => Data.Data.Data (GitHub.Data.Id.Id entity) instance GHC.Generics.Generic (GitHub.Data.Id.Id entity) instance GHC.Show.Show (GitHub.Data.Id.Id entity) instance GHC.Classes.Ord (GitHub.Data.Id.Id entity) instance GHC.Classes.Eq (GitHub.Data.Id.Id entity) instance Data.Hashable.Class.Hashable (GitHub.Data.Id.Id entity) instance Data.Binary.Class.Binary (GitHub.Data.Id.Id entity) instance Control.DeepSeq.NFData (GitHub.Data.Id.Id entity) instance Data.Aeson.Types.FromJSON.FromJSON (GitHub.Data.Id.Id entity) instance Data.Aeson.Types.ToJSON.ToJSON (GitHub.Data.Id.Id entity) module GitHub.Data.Webhooks data RepoWebhook RepoWebhook :: !URL -> !URL -> !(Id RepoWebhook) -> !Text -> !Bool -> !(Vector RepoWebhookEvent) -> !(Map Text Text) -> !RepoWebhookResponse -> !UTCTime -> !UTCTime -> RepoWebhook [repoWebhookUrl] :: RepoWebhook -> !URL [repoWebhookTestUrl] :: RepoWebhook -> !URL [repoWebhookId] :: RepoWebhook -> !(Id RepoWebhook) [repoWebhookName] :: RepoWebhook -> !Text [repoWebhookActive] :: RepoWebhook -> !Bool [repoWebhookEvents] :: RepoWebhook -> !(Vector RepoWebhookEvent) [repoWebhookConfig] :: RepoWebhook -> !(Map Text Text) [repoWebhookLastResponse] :: RepoWebhook -> !RepoWebhookResponse [repoWebhookUpdatedAt] :: RepoWebhook -> !UTCTime [repoWebhookCreatedAt] :: RepoWebhook -> !UTCTime data RepoWebhookEvent WebhookWildcardEvent :: RepoWebhookEvent WebhookCommitCommentEvent :: RepoWebhookEvent WebhookCreateEvent :: RepoWebhookEvent WebhookDeleteEvent :: RepoWebhookEvent WebhookDeploymentEvent :: RepoWebhookEvent WebhookDeploymentStatusEvent :: RepoWebhookEvent WebhookForkEvent :: RepoWebhookEvent WebhookGollumEvent :: RepoWebhookEvent WebhookInstallationEvent :: RepoWebhookEvent WebhookInstallationRepositoriesEvent :: RepoWebhookEvent WebhookIssueCommentEvent :: RepoWebhookEvent WebhookIssuesEvent :: RepoWebhookEvent WebhookMemberEvent :: RepoWebhookEvent WebhookPageBuildEvent :: RepoWebhookEvent WebhookPingEvent :: RepoWebhookEvent WebhookPublicEvent :: RepoWebhookEvent WebhookPullRequestReviewCommentEvent :: RepoWebhookEvent WebhookPullRequestEvent :: RepoWebhookEvent WebhookPushEvent :: RepoWebhookEvent WebhookReleaseEvent :: RepoWebhookEvent WebhookStatusEvent :: RepoWebhookEvent WebhookTeamAddEvent :: RepoWebhookEvent WebhookWatchEvent :: RepoWebhookEvent data RepoWebhookResponse RepoWebhookResponse :: !(Maybe Int) -> !Text -> !(Maybe Text) -> RepoWebhookResponse [repoWebhookResponseCode] :: RepoWebhookResponse -> !(Maybe Int) [repoWebhookResponseStatus] :: RepoWebhookResponse -> !Text [repoWebhookResponseMessage] :: RepoWebhookResponse -> !(Maybe Text) data PingEvent PingEvent :: !Text -> !RepoWebhook -> !(Id RepoWebhook) -> PingEvent [pingEventZen] :: PingEvent -> !Text [pingEventHook] :: PingEvent -> !RepoWebhook [pingEventHookId] :: PingEvent -> !(Id RepoWebhook) data NewRepoWebhook NewRepoWebhook :: !Text -> !(Map Text Text) -> !(Maybe (Vector RepoWebhookEvent)) -> !(Maybe Bool) -> NewRepoWebhook [newRepoWebhookName] :: NewRepoWebhook -> !Text [newRepoWebhookConfig] :: NewRepoWebhook -> !(Map Text Text) [newRepoWebhookEvents] :: NewRepoWebhook -> !(Maybe (Vector RepoWebhookEvent)) [newRepoWebhookActive] :: NewRepoWebhook -> !(Maybe Bool) data EditRepoWebhook EditRepoWebhook :: !(Maybe (Map Text Text)) -> !(Maybe (Vector RepoWebhookEvent)) -> !(Maybe (Vector RepoWebhookEvent)) -> !(Maybe (Vector RepoWebhookEvent)) -> !(Maybe Bool) -> EditRepoWebhook [editRepoWebhookConfig] :: EditRepoWebhook -> !(Maybe (Map Text Text)) [editRepoWebhookEvents] :: EditRepoWebhook -> !(Maybe (Vector RepoWebhookEvent)) [editRepoWebhookAddEvents] :: EditRepoWebhook -> !(Maybe (Vector RepoWebhookEvent)) [editRepoWebhookRemoveEvents] :: EditRepoWebhook -> !(Maybe (Vector RepoWebhookEvent)) [editRepoWebhookActive] :: EditRepoWebhook -> !(Maybe Bool) instance GHC.Generics.Generic GitHub.Data.Webhooks.EditRepoWebhook instance Data.Data.Data GitHub.Data.Webhooks.EditRepoWebhook instance GHC.Show.Show GitHub.Data.Webhooks.EditRepoWebhook instance GHC.Classes.Ord GitHub.Data.Webhooks.EditRepoWebhook instance GHC.Classes.Eq GitHub.Data.Webhooks.EditRepoWebhook instance GHC.Generics.Generic GitHub.Data.Webhooks.NewRepoWebhook instance Data.Data.Data GitHub.Data.Webhooks.NewRepoWebhook instance GHC.Show.Show GitHub.Data.Webhooks.NewRepoWebhook instance GHC.Classes.Ord GitHub.Data.Webhooks.NewRepoWebhook instance GHC.Classes.Eq GitHub.Data.Webhooks.NewRepoWebhook instance GHC.Generics.Generic GitHub.Data.Webhooks.PingEvent instance GHC.Classes.Ord GitHub.Data.Webhooks.PingEvent instance GHC.Classes.Eq GitHub.Data.Webhooks.PingEvent instance Data.Data.Data GitHub.Data.Webhooks.PingEvent instance GHC.Show.Show GitHub.Data.Webhooks.PingEvent instance GHC.Generics.Generic GitHub.Data.Webhooks.RepoWebhook instance GHC.Classes.Ord GitHub.Data.Webhooks.RepoWebhook instance GHC.Classes.Eq GitHub.Data.Webhooks.RepoWebhook instance Data.Data.Data GitHub.Data.Webhooks.RepoWebhook instance GHC.Show.Show GitHub.Data.Webhooks.RepoWebhook instance GHC.Generics.Generic GitHub.Data.Webhooks.RepoWebhookResponse instance GHC.Classes.Ord GitHub.Data.Webhooks.RepoWebhookResponse instance GHC.Classes.Eq GitHub.Data.Webhooks.RepoWebhookResponse instance Data.Data.Data GitHub.Data.Webhooks.RepoWebhookResponse instance GHC.Show.Show GitHub.Data.Webhooks.RepoWebhookResponse instance GHC.Generics.Generic GitHub.Data.Webhooks.RepoWebhookEvent instance GHC.Classes.Ord GitHub.Data.Webhooks.RepoWebhookEvent instance GHC.Classes.Eq GitHub.Data.Webhooks.RepoWebhookEvent instance Data.Data.Data GitHub.Data.Webhooks.RepoWebhookEvent instance GHC.Show.Show GitHub.Data.Webhooks.RepoWebhookEvent instance Control.DeepSeq.NFData GitHub.Data.Webhooks.EditRepoWebhook instance Data.Binary.Class.Binary GitHub.Data.Webhooks.EditRepoWebhook instance Data.Aeson.Types.ToJSON.ToJSON GitHub.Data.Webhooks.EditRepoWebhook instance Control.DeepSeq.NFData GitHub.Data.Webhooks.NewRepoWebhook instance Data.Binary.Class.Binary GitHub.Data.Webhooks.NewRepoWebhook instance Data.Aeson.Types.ToJSON.ToJSON GitHub.Data.Webhooks.NewRepoWebhook instance Control.DeepSeq.NFData GitHub.Data.Webhooks.PingEvent instance Data.Binary.Class.Binary GitHub.Data.Webhooks.PingEvent instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Webhooks.PingEvent instance Control.DeepSeq.NFData GitHub.Data.Webhooks.RepoWebhook instance Data.Binary.Class.Binary GitHub.Data.Webhooks.RepoWebhook instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Webhooks.RepoWebhook instance Control.DeepSeq.NFData GitHub.Data.Webhooks.RepoWebhookResponse instance Data.Binary.Class.Binary GitHub.Data.Webhooks.RepoWebhookResponse instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Webhooks.RepoWebhookResponse instance Control.DeepSeq.NFData GitHub.Data.Webhooks.RepoWebhookEvent instance Data.Binary.Class.Binary GitHub.Data.Webhooks.RepoWebhookEvent instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Webhooks.RepoWebhookEvent instance Data.Aeson.Types.ToJSON.ToJSON GitHub.Data.Webhooks.RepoWebhookEvent module GitHub.Data.Email data EmailVisibility EmailVisibilityPrivate :: EmailVisibility EmailVisibilityPublic :: EmailVisibility data Email Email :: !Text -> !Bool -> !Bool -> !(Maybe EmailVisibility) -> Email [emailAddress] :: Email -> !Text [emailVerified] :: Email -> !Bool [emailPrimary] :: Email -> !Bool [emailVisibility] :: Email -> !(Maybe EmailVisibility) instance GHC.Generics.Generic GitHub.Data.Email.Email instance GHC.Classes.Ord GitHub.Data.Email.Email instance GHC.Classes.Eq GitHub.Data.Email.Email instance Data.Data.Data GitHub.Data.Email.Email instance GHC.Show.Show GitHub.Data.Email.Email instance GHC.Generics.Generic GitHub.Data.Email.EmailVisibility instance GHC.Classes.Ord GitHub.Data.Email.EmailVisibility instance GHC.Classes.Eq GitHub.Data.Email.EmailVisibility instance GHC.Enum.Bounded GitHub.Data.Email.EmailVisibility instance GHC.Enum.Enum GitHub.Data.Email.EmailVisibility instance Data.Data.Data GitHub.Data.Email.EmailVisibility instance GHC.Show.Show GitHub.Data.Email.EmailVisibility instance Control.DeepSeq.NFData GitHub.Data.Email.Email instance Data.Binary.Class.Binary GitHub.Data.Email.Email instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Email.Email instance Control.DeepSeq.NFData GitHub.Data.Email.EmailVisibility instance Data.Binary.Class.Binary GitHub.Data.Email.EmailVisibility instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Email.EmailVisibility module GitHub.Data.DeployKeys data RepoDeployKey RepoDeployKey :: !(Id RepoDeployKey) -> !Text -> !URL -> !Text -> !Bool -> !UTCTime -> !Bool -> RepoDeployKey [repoDeployKeyId] :: RepoDeployKey -> !(Id RepoDeployKey) [repoDeployKeyKey] :: RepoDeployKey -> !Text [repoDeployKeyUrl] :: RepoDeployKey -> !URL [repoDeployKeyTitle] :: RepoDeployKey -> !Text [repoDeployKeyVerified] :: RepoDeployKey -> !Bool [repoDeployKeyCreatedAt] :: RepoDeployKey -> !UTCTime [repoDeployKeyReadOnly] :: RepoDeployKey -> !Bool data NewRepoDeployKey NewRepoDeployKey :: !Text -> !Text -> !Bool -> NewRepoDeployKey [newRepoDeployKeyKey] :: NewRepoDeployKey -> !Text [newRepoDeployKeyTitle] :: NewRepoDeployKey -> !Text [newRepoDeployKeyReadOnly] :: NewRepoDeployKey -> !Bool instance GHC.Generics.Generic GitHub.Data.DeployKeys.NewRepoDeployKey instance GHC.Classes.Ord GitHub.Data.DeployKeys.NewRepoDeployKey instance GHC.Classes.Eq GitHub.Data.DeployKeys.NewRepoDeployKey instance Data.Data.Data GitHub.Data.DeployKeys.NewRepoDeployKey instance GHC.Show.Show GitHub.Data.DeployKeys.NewRepoDeployKey instance GHC.Generics.Generic GitHub.Data.DeployKeys.RepoDeployKey instance GHC.Classes.Ord GitHub.Data.DeployKeys.RepoDeployKey instance GHC.Classes.Eq GitHub.Data.DeployKeys.RepoDeployKey instance Data.Data.Data GitHub.Data.DeployKeys.RepoDeployKey instance GHC.Show.Show GitHub.Data.DeployKeys.RepoDeployKey instance Data.Aeson.Types.ToJSON.ToJSON GitHub.Data.DeployKeys.NewRepoDeployKey instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.DeployKeys.NewRepoDeployKey instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.DeployKeys.RepoDeployKey module GitHub.Data.Definitions -- | Errors have been tagged according to their source, so you can more -- easily dispatch and handle them. data Error -- | A HTTP error occurred. The actual caught error is included. HTTPError :: !HttpException -> Error -- | An error in the parser itself. ParseError :: !Text -> Error -- | The JSON is malformed or unexpected. JsonError :: !Text -> Error -- | Incorrect input. UserError :: !Text -> Error -- | Type of the repository owners. data OwnerType OwnerUser :: OwnerType OwnerOrganization :: OwnerType data SimpleUser SimpleUser :: !(Id User) -> !(Name User) -> !URL -> !URL -> SimpleUser [simpleUserId] :: SimpleUser -> !(Id User) [simpleUserLogin] :: SimpleUser -> !(Name User) [simpleUserAvatarUrl] :: SimpleUser -> !URL [simpleUserUrl] :: SimpleUser -> !URL data SimpleOrganization SimpleOrganization :: !(Id Organization) -> !(Name Organization) -> !URL -> !URL -> SimpleOrganization [simpleOrganizationId] :: SimpleOrganization -> !(Id Organization) [simpleOrganizationLogin] :: SimpleOrganization -> !(Name Organization) [simpleOrganizationUrl] :: SimpleOrganization -> !URL [simpleOrganizationAvatarUrl] :: SimpleOrganization -> !URL -- | Sometimes we don't know the type of the owner, e.g. in Repo data SimpleOwner SimpleOwner :: !(Id Owner) -> !(Name Owner) -> !URL -> !URL -> !OwnerType -> SimpleOwner [simpleOwnerId] :: SimpleOwner -> !(Id Owner) [simpleOwnerLogin] :: SimpleOwner -> !(Name Owner) [simpleOwnerUrl] :: SimpleOwner -> !URL [simpleOwnerAvatarUrl] :: SimpleOwner -> !URL [simpleOwnerType] :: SimpleOwner -> !OwnerType data User User :: !(Id User) -> !(Name User) -> !(Maybe Text) -> !OwnerType -> !UTCTime -> !Int -> !URL -> !Int -> !Int -> !(Maybe Bool) -> !(Maybe Text) -> !(Maybe Text) -> !Int -> !(Maybe Text) -> !(Maybe Text) -> !(Maybe Text) -> !URL -> !URL -> User [userId] :: User -> !(Id User) [userLogin] :: User -> !(Name User) [userName] :: User -> !(Maybe Text) -- | Should always be OwnerUser [userType] :: User -> !OwnerType [userCreatedAt] :: User -> !UTCTime [userPublicGists] :: User -> !Int [userAvatarUrl] :: User -> !URL [userFollowers] :: User -> !Int [userFollowing] :: User -> !Int [userHireable] :: User -> !(Maybe Bool) [userBlog] :: User -> !(Maybe Text) [userBio] :: User -> !(Maybe Text) [userPublicRepos] :: User -> !Int [userLocation] :: User -> !(Maybe Text) [userCompany] :: User -> !(Maybe Text) [userEmail] :: User -> !(Maybe Text) [userUrl] :: User -> !URL [userHtmlUrl] :: User -> !URL data Organization Organization :: !(Id Organization) -> !(Name Organization) -> !(Maybe Text) -> !OwnerType -> !(Maybe Text) -> !(Maybe Text) -> !Int -> !(Maybe Text) -> !URL -> !Int -> !URL -> !(Maybe Text) -> !Int -> !Int -> !URL -> !UTCTime -> Organization [organizationId] :: Organization -> !(Id Organization) [organizationLogin] :: Organization -> !(Name Organization) [organizationName] :: Organization -> !(Maybe Text) -- | Should always be OwnerOrganization [organizationType] :: Organization -> !OwnerType [organizationBlog] :: Organization -> !(Maybe Text) [organizationLocation] :: Organization -> !(Maybe Text) [organizationFollowers] :: Organization -> !Int [organizationCompany] :: Organization -> !(Maybe Text) [organizationAvatarUrl] :: Organization -> !URL [organizationPublicGists] :: Organization -> !Int [organizationHtmlUrl] :: Organization -> !URL [organizationEmail] :: Organization -> !(Maybe Text) [organizationFollowing] :: Organization -> !Int [organizationPublicRepos] :: Organization -> !Int [organizationUrl] :: Organization -> !URL [organizationCreatedAt] :: Organization -> !UTCTime -- | In practic, you cam't have concrete values of Owner. newtype Owner Owner :: (Either User Organization) -> Owner fromOwner :: Owner -> Either User Organization parseUser :: Object -> Parser User parseOrganization :: Object -> Parser Organization -- | Filter members returned in the list. data OrgMemberFilter -- | Members without two-factor authentication enabled. Available for -- organization owners. OrgMemberFilter2faDisabled :: OrgMemberFilter -- | All members the authenticated user can see. OrgMemberFilterAll :: OrgMemberFilter -- | Filter members returned by their role. data OrgMemberRole -- | All members of the organization, regardless of role. OrgMemberRoleAll :: OrgMemberRole -- | Organization owners. OrgMemberRoleAdmin :: OrgMemberRole -- | Non-owner organization members. OrgMemberRoleMember :: OrgMemberRole -- | Request query string type QueryString = [(ByteString, Maybe ByteString)] -- | Count of elements type Count = Int data IssueLabel IssueLabel :: !Text -> !URL -> !(Name IssueLabel) -> IssueLabel [labelColor] :: IssueLabel -> !Text [labelUrl] :: IssueLabel -> !URL [labelName] :: IssueLabel -> !(Name IssueLabel) instance GHC.Generics.Generic GitHub.Data.Definitions.IssueLabel instance GHC.Classes.Ord GitHub.Data.Definitions.IssueLabel instance GHC.Classes.Eq GitHub.Data.Definitions.IssueLabel instance Data.Data.Data GitHub.Data.Definitions.IssueLabel instance GHC.Show.Show GitHub.Data.Definitions.IssueLabel instance GHC.Generics.Generic GitHub.Data.Definitions.OrgMemberRole instance Data.Data.Data GitHub.Data.Definitions.OrgMemberRole instance GHC.Enum.Bounded GitHub.Data.Definitions.OrgMemberRole instance GHC.Enum.Enum GitHub.Data.Definitions.OrgMemberRole instance GHC.Classes.Ord GitHub.Data.Definitions.OrgMemberRole instance GHC.Classes.Eq GitHub.Data.Definitions.OrgMemberRole instance GHC.Show.Show GitHub.Data.Definitions.OrgMemberRole instance GHC.Generics.Generic GitHub.Data.Definitions.OrgMemberFilter instance Data.Data.Data GitHub.Data.Definitions.OrgMemberFilter instance GHC.Enum.Bounded GitHub.Data.Definitions.OrgMemberFilter instance GHC.Enum.Enum GitHub.Data.Definitions.OrgMemberFilter instance GHC.Classes.Ord GitHub.Data.Definitions.OrgMemberFilter instance GHC.Classes.Eq GitHub.Data.Definitions.OrgMemberFilter instance GHC.Show.Show GitHub.Data.Definitions.OrgMemberFilter instance GHC.Generics.Generic GitHub.Data.Definitions.SimpleOwner instance GHC.Classes.Ord GitHub.Data.Definitions.SimpleOwner instance GHC.Classes.Eq GitHub.Data.Definitions.SimpleOwner instance Data.Data.Data GitHub.Data.Definitions.SimpleOwner instance GHC.Show.Show GitHub.Data.Definitions.SimpleOwner instance GHC.Generics.Generic GitHub.Data.Definitions.Owner instance GHC.Classes.Ord GitHub.Data.Definitions.Owner instance GHC.Classes.Eq GitHub.Data.Definitions.Owner instance Data.Data.Data GitHub.Data.Definitions.Owner instance GHC.Show.Show GitHub.Data.Definitions.Owner instance GHC.Generics.Generic GitHub.Data.Definitions.SimpleOrganization instance GHC.Classes.Ord GitHub.Data.Definitions.SimpleOrganization instance GHC.Classes.Eq GitHub.Data.Definitions.SimpleOrganization instance Data.Data.Data GitHub.Data.Definitions.SimpleOrganization instance GHC.Show.Show GitHub.Data.Definitions.SimpleOrganization instance GHC.Generics.Generic GitHub.Data.Definitions.Organization instance GHC.Classes.Ord GitHub.Data.Definitions.Organization instance GHC.Classes.Eq GitHub.Data.Definitions.Organization instance Data.Data.Data GitHub.Data.Definitions.Organization instance GHC.Show.Show GitHub.Data.Definitions.Organization instance GHC.Generics.Generic GitHub.Data.Definitions.SimpleUser instance GHC.Classes.Ord GitHub.Data.Definitions.SimpleUser instance GHC.Classes.Eq GitHub.Data.Definitions.SimpleUser instance Data.Data.Data GitHub.Data.Definitions.SimpleUser instance GHC.Show.Show GitHub.Data.Definitions.SimpleUser instance GHC.Generics.Generic GitHub.Data.Definitions.User instance GHC.Classes.Ord GitHub.Data.Definitions.User instance GHC.Classes.Eq GitHub.Data.Definitions.User instance Data.Data.Data GitHub.Data.Definitions.User instance GHC.Show.Show GitHub.Data.Definitions.User instance Data.Data.Data GitHub.Data.Definitions.OwnerType instance GHC.Generics.Generic GitHub.Data.Definitions.OwnerType instance GHC.Read.Read GitHub.Data.Definitions.OwnerType instance GHC.Show.Show GitHub.Data.Definitions.OwnerType instance GHC.Enum.Bounded GitHub.Data.Definitions.OwnerType instance GHC.Enum.Enum GitHub.Data.Definitions.OwnerType instance GHC.Classes.Ord GitHub.Data.Definitions.OwnerType instance GHC.Classes.Eq GitHub.Data.Definitions.OwnerType instance GHC.Show.Show GitHub.Data.Definitions.Error instance Control.DeepSeq.NFData GitHub.Data.Definitions.IssueLabel instance Data.Binary.Class.Binary GitHub.Data.Definitions.IssueLabel instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.IssueLabel instance Control.DeepSeq.NFData GitHub.Data.Definitions.SimpleOwner instance Data.Binary.Class.Binary GitHub.Data.Definitions.SimpleOwner instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.SimpleOwner instance Control.DeepSeq.NFData GitHub.Data.Definitions.Owner instance Data.Binary.Class.Binary GitHub.Data.Definitions.Owner instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.Owner instance Control.DeepSeq.NFData GitHub.Data.Definitions.SimpleOrganization instance Data.Binary.Class.Binary GitHub.Data.Definitions.SimpleOrganization instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.SimpleOrganization instance Control.DeepSeq.NFData GitHub.Data.Definitions.Organization instance Data.Binary.Class.Binary GitHub.Data.Definitions.Organization instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.Organization instance Control.DeepSeq.NFData GitHub.Data.Definitions.SimpleUser instance Data.Binary.Class.Binary GitHub.Data.Definitions.SimpleUser instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.SimpleUser instance Control.DeepSeq.NFData GitHub.Data.Definitions.User instance Data.Binary.Class.Binary GitHub.Data.Definitions.User instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.User instance Control.DeepSeq.NFData GitHub.Data.Definitions.OwnerType instance Data.Binary.Class.Binary GitHub.Data.Definitions.OwnerType instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Definitions.OwnerType instance GHC.Exception.Exception GitHub.Data.Definitions.Error module GitHub.Data.Reviews data ReviewState ReviewStatePending :: ReviewState ReviewStateApproved :: ReviewState ReviewStateDismissed :: ReviewState ReviewStateCommented :: ReviewState ReviewStateChangesRequested :: ReviewState data Review Review :: !Text -> !Text -> ReviewState -> !UTCTime -> !URL -> !Text -> !SimpleUser -> !(Id Review) -> Review [reviewBody] :: Review -> !Text [reviewCommitId] :: Review -> !Text [reviewState] :: Review -> ReviewState [reviewSubmittedAt] :: Review -> !UTCTime [reviewPullRequestUrl] :: Review -> !URL [reviewHtmlUrl] :: Review -> !Text [reviewUser] :: Review -> !SimpleUser [reviewId] :: Review -> !(Id Review) data ReviewComment ReviewComment :: !(Id ReviewComment) -> !SimpleUser -> !Text -> !URL -> !(Id Review) -> !Text -> !Text -> !Int -> !Int -> !Text -> !Text -> !UTCTime -> !UTCTime -> !URL -> !URL -> ReviewComment [reviewCommentId] :: ReviewComment -> !(Id ReviewComment) [reviewCommentUser] :: ReviewComment -> !SimpleUser [reviewCommentBody] :: ReviewComment -> !Text [reviewCommentUrl] :: ReviewComment -> !URL [reviewCommentPullRequestReviewId] :: ReviewComment -> !(Id Review) [reviewCommentDiffHunk] :: ReviewComment -> !Text [reviewCommentPath] :: ReviewComment -> !Text [reviewCommentPosition] :: ReviewComment -> !Int [reviewCommentOriginalPosition] :: ReviewComment -> !Int [reviewCommentCommitId] :: ReviewComment -> !Text [reviewCommentOriginalCommitId] :: ReviewComment -> !Text [reviewCommentCreatedAt] :: ReviewComment -> !UTCTime [reviewCommentUpdatedAt] :: ReviewComment -> !UTCTime [reviewCommentHtmlUrl] :: ReviewComment -> !URL [reviewCommentPullRequestUrl] :: ReviewComment -> !URL instance GHC.Generics.Generic GitHub.Data.Reviews.ReviewComment instance GHC.Show.Show GitHub.Data.Reviews.ReviewComment instance GHC.Generics.Generic GitHub.Data.Reviews.Review instance GHC.Show.Show GitHub.Data.Reviews.Review instance GHC.Generics.Generic GitHub.Data.Reviews.ReviewState instance GHC.Classes.Ord GitHub.Data.Reviews.ReviewState instance GHC.Classes.Eq GitHub.Data.Reviews.ReviewState instance GHC.Enum.Bounded GitHub.Data.Reviews.ReviewState instance GHC.Enum.Enum GitHub.Data.Reviews.ReviewState instance GHC.Show.Show GitHub.Data.Reviews.ReviewState instance Control.DeepSeq.NFData GitHub.Data.Reviews.ReviewComment instance Data.Binary.Class.Binary GitHub.Data.Reviews.ReviewComment instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Reviews.ReviewComment instance Control.DeepSeq.NFData GitHub.Data.Reviews.Review instance Data.Binary.Class.Binary GitHub.Data.Reviews.Review instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Reviews.Review instance Control.DeepSeq.NFData GitHub.Data.Reviews.ReviewState instance Data.Binary.Class.Binary GitHub.Data.Reviews.ReviewState instance Data.Aeson.Types.FromJSON.FromJSON GitHub.Data.Reviews.ReviewState module GitHub.Data.Request -- | Github request data type. -- --
-- type GithubMonad a = Program (GH.Request 'False) a -- -- -- | Intepret GithubMonad value into IO -- runMonad :: Manager -> GH.Auth -> GithubMonad a -> ExceptT GH.Error IO a -- runMonad mgr auth m = case view m of -- Return a -> return a -- req :>>= k -> do -- b <- ExceptT $ GH.executeRequestWithMgr mgr auth req -- runMonad mgr auth (k b) -- -- -- | Lift request into Monad -- githubRequest :: GH.Request 'False a -> GithubMonad a -- githubRequest = singleton --module GitHub.Request -- | Github request data type. -- --
-- parseResponse :: Maybe Auth -> Request k a -> Maybe Request --makeHttpRequest :: MonadThrow m => Maybe Auth -> Request k a -> m Request makeHttpSimpleRequest :: MonadThrow m => Maybe Auth -> SimpleRequest k a -> m Request -- | Parse API response. -- --
-- parseResponse :: FromJSON a => Response ByteString -> Either Error a --parseResponse :: (FromJSON a, MonadError Error m) => Response ByteString -> m a -- | Helper for handling of RequestStatus. -- --
-- parseStatus :: StatusMap a -> Status -> Either Error a --parseStatus :: MonadError Error m => StatusMap a -> Status -> m a -- | Query Link header with rel=next from the request -- headers. getNextUrl :: Response a -> Maybe URI -- | Helper for making paginated requests. Responses, a are -- combined monoidally. -- --
-- performPagedRequest :: (FromJSON a, Semigroup a) -- => (Request -> ExceptT Error IO (Response ByteString)) -- -> (a -> Bool) -- -> Request -- -> ExceptT Error IO a --performPagedRequest :: forall a m. (FromJSON a, Semigroup a, MonadCatch m, MonadError Error m) => (Request -> m (Response ByteString)) -> (a -> Bool) -> Request -> m a -- | The user followers API as described on -- http://developer.github.com/v3/users/followers/. module GitHub.Endpoints.Users.Followers -- | All the users following the given user. -- --
-- usersFollowing "mike-burns" --usersFollowing :: Name User -> IO (Either Error (Vector SimpleUser)) -- | All the users that the given user follows. -- --
-- usersFollowedBy "mike-burns" --usersFollowedBy :: Name User -> IO (Either Error (Vector SimpleUser)) -- | List followers of a user. See -- https://developer.github.com/v3/users/followers/#list-followers-of-a-user usersFollowingR :: Name User -> FetchCount -> Request k (Vector SimpleUser) -- | List users followed by another user. See -- https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user usersFollowedByR :: Name User -> FetchCount -> Request k (Vector SimpleUser) -- | The user emails API as described on -- http://developer.github.com/v3/users/emails/. module GitHub.Endpoints.Users.Emails -- | List email addresses for the authenticated user. -- --
-- currentUserEmails' (OAuth "token") --currentUserEmails' :: Auth -> IO (Either Error (Vector Email)) -- | List email addresses. See -- https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user currentUserEmailsR :: FetchCount -> Request 'RA (Vector Email) -- | List public email addresses for the authenticated user. -- --
-- currentUserPublicEmails' (OAuth "token") --currentUserPublicEmails' :: Auth -> IO (Either Error (Vector Email)) -- | List public email addresses. See -- https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user currentUserPublicEmailsR :: FetchCount -> Request 'RA (Vector Email) -- | The Github Users API, as described at -- http://developer.github.com/v3/users/. module GitHub.Endpoints.Users -- | The information for a single user, by login name. -- --
-- userInfoFor "mike-burns" --userInfoFor :: Name User -> IO (Either Error User) -- | The information for a single user, by login name. With -- authentification -- --
-- userInfoFor' (Just ("github-username", "github-password")) "mike-burns"
--
userInfoFor' :: Maybe Auth -> Name User -> IO (Either Error User)
-- | Query a single user. See
-- https://developer.github.com/v3/users/#get-a-single-user
userInfoForR :: Name User -> Request k User
-- | Query a single user or an organization. See
-- https://developer.github.com/v3/users/#get-a-single-user
ownerInfoForR :: Name Owner -> Request k Owner
-- | Retrieve information about the user associated with the supplied
-- authentication.
--
-- -- userInfoCurrent' (OAuth "...") --userInfoCurrent' :: Auth -> IO (Either Error User) -- | Query the authenticated user. See -- https://developer.github.com/v3/users/#get-the-authenticated-user userInfoCurrentR :: Request 'RA User -- | The Github Search API, as described at -- http://developer.github.com/v3/search/. module GitHub.Endpoints.Search -- | Perform a repository search. With authentication. -- --
-- searchRepos' (Just $ BasicAuth "github-username" "github-password') "a in%3Aname language%3Ahaskell created%3A>2013-10-01&per_page=100" --searchRepos' :: Maybe Auth -> Text -> IO (Either Error (SearchResult Repo)) -- | Perform a repository search. Without authentication. -- --
-- searchRepos "q=a in%3Aname language%3Ahaskell created%3A>2013-10-01&per_page=100" --searchRepos :: Text -> IO (Either Error (SearchResult Repo)) -- | Search repositories. See -- https://developer.github.com/v3/search/#search-repositories searchReposR :: Text -> Request k (SearchResult Repo) -- | Perform a code search. With authentication. -- --
-- searchCode' (Just $ BasicAuth "github-username" "github-password') "a in%3Aname language%3Ahaskell created%3A>2013-10-01&per_page=100" --searchCode' :: Maybe Auth -> Text -> IO (Either Error (SearchResult Code)) -- | Perform a code search. Without authentication. -- --
-- searchCode "q=addClass+in:file+language:js+repo:jquery/jquery" --searchCode :: Text -> IO (Either Error (SearchResult Code)) -- | Search code. See -- https://developer.github.com/v3/search/#search-code searchCodeR :: Text -> Request k (SearchResult Code) -- | Perform an issue search. With authentication. -- --
-- searchIssues' (Just $ BasicAuth "github-username" "github-password') "a repo%3Aphadej%2Fgithub&per_page=100" --searchIssues' :: Maybe Auth -> Text -> IO (Either Error (SearchResult Issue)) -- | Perform an issue search. Without authentication. -- --
-- searchIssues "q=a repo%3Aphadej%2Fgithub&per_page=100" --searchIssues :: Text -> IO (Either Error (SearchResult Issue)) -- | Search issues. See -- https://developer.github.com/v3/search/#search-issues searchIssuesR :: Text -> Request k (SearchResult Issue) -- | The webhooks API, as described at -- https://developer.github.com/v3/repos/hooks/ -- https://developer.github.com/webhooks module GitHub.Endpoints.Repos.Webhooks webhooksFor' :: Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector RepoWebhook)) -- | List hooks. See -- https://developer.github.com/v3/repos/hooks/#list-hooks webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook) webhookFor' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error RepoWebhook) -- | Query single hook. See -- https://developer.github.com/v3/repos/hooks/#get-single-hook webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook createRepoWebhook' :: Auth -> Name Owner -> Name Repo -> NewRepoWebhook -> IO (Either Error RepoWebhook) -- | Create a hook. See -- https://developer.github.com/v3/repos/hooks/#create-a-hook createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request 'RW RepoWebhook editRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> IO (Either Error RepoWebhook) -- | Edit a hook. See -- https://developer.github.com/v3/repos/hooks/#edit-a-hook editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request 'RW RepoWebhook testPushRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error Bool) -- | Test a push hook. See -- https://developer.github.com/v3/repos/hooks/#test-a-push-hook testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request 'RW Bool pingRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error Bool) -- | Ping a hook. See -- https://developer.github.com/v3/repos/hooks/#ping-a-hook pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request 'RW Bool deleteRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error ()) -- | Delete a hook. See -- https://developer.github.com/v3/repos/hooks/#delete-a-hook deleteRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request 'RW () -- | The repo statuses API as described on -- https://developer.github.com/v3/repos/statuses/. module GitHub.Endpoints.Repos.Statuses -- | Create a new status -- --
-- createStatus (BasicAuth user password) "thoughtbot" "paperclip" -- "41f685f6e01396936bb8cd98e7cca517e2c7d96b" -- (NewStatus StatusSuccess Nothing "Looks good!" Nothing) --createStatus :: Auth -> Name Owner -> Name Repo -> Name Commit -> NewStatus -> IO (Either Error Status) -- | Create a new status See -- https://developer.github.com/v3/repos/statuses/#create-a-status createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request 'RW Status -- | All statuses for a commit -- --
-- statusesFor (BasicAuth user password) "thoughtbot" "paperclip" -- "41f685f6e01396936bb8cd98e7cca517e2c7d96b" --statusesFor :: Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error (Vector Status)) -- | All statuses for a commit See -- https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref statusesForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request 'RW (Vector Status) -- | The combined status for a specific commit -- --
-- statusFor (BasicAuth user password) "thoughtbot" "paperclip" -- "41f685f6e01396936bb8cd98e7cca517e2c7d96b" --statusFor :: Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error CombinedStatus) -- | The combined status for a specific commit See -- https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref statusForR :: Name Owner -> Name Repo -> Name Commit -> Request 'RW CombinedStatus module GitHub.Endpoints.Repos.Releases -- | All releases for the given repo. -- --
-- releases "calleerlandsson" "pick" --releases :: Name Owner -> Name Repo -> IO (Either Error (Vector Release)) -- | All releases for the given repo with authentication. -- --
-- releases' (Just (User (user, password))) "calleerlandsson" "pick" --releases' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Release)) -- | List releases for a repository. See -- https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository releasesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Release) -- | Query a single release. -- --
-- release "calleerlandsson" "pick" --release :: Name Owner -> Name Repo -> Id Release -> IO (Either Error Release) -- | Query a single release with authentication. -- --
-- release' (Just (User (user, password))) "calleerlandsson" "pick" --release' :: Maybe Auth -> Name Owner -> Name Repo -> Id Release -> IO (Either Error Release) -- | Get a single release. See -- https://developer.github.com/v3/repos/releases/#get-a-single-release releaseR :: Name Owner -> Name Repo -> Id Release -> Request k Release -- | Query latest release. -- --
-- latestRelease "calleerlandsson" "pick" --latestRelease :: Name Owner -> Name Repo -> IO (Either Error Release) -- | Query latest release with authentication. -- --
-- latestRelease' (Just (User (user, password))) "calleerlandsson" "pick" --latestRelease' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error Release) -- | Get the latest release. See -- https://developer.github.com/v3/repos/releases/#get-the-latest-release latestReleaseR :: Name Owner -> Name Repo -> Request k Release -- | Query release by tag name. -- --
-- releaseByTagName "calleerlandsson" "pick" --releaseByTagName :: Name Owner -> Name Repo -> Text -> IO (Either Error Release) -- | Query release by tag name with authentication. -- --
-- releaseByTagName' (Just (User (user, password))) "calleerlandsson" "pick" --releaseByTagName' :: Maybe Auth -> Name Owner -> Name Repo -> Text -> IO (Either Error Release) -- | Get a release by tag name See -- https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name releaseByTagNameR :: Name Owner -> Name Repo -> Text -> Request k Release -- | Hot forking action, as described at -- http://developer.github.com/v3/repos/forks/. module GitHub.Endpoints.Repos.Forks -- | All the repos that are forked off the given repo. -- --
-- forksFor "thoughtbot" "paperclip" --forksFor :: Name Owner -> Name Repo -> IO (Either Error (Vector Repo)) -- | All the repos that are forked off the given repo. | With -- authentication -- --
-- forksFor' (Just (User (user, password))) "thoughtbot" "paperclip" --forksFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Repo)) -- | List forks. See -- https://developer.github.com/v3/repos/forks/#list-forks forksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Repo) -- | The deploy keys API, as described at -- https://developer.github.com/v3/repos/keys module GitHub.Endpoints.Repos.DeployKeys -- | Querying deploy keys. deployKeysFor' :: Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector RepoDeployKey)) -- | Querying deploy keys. See -- https://developer.github.com/v3/repos/keys/#list-deploy-keys deployKeysForR :: Name Owner -> Name Repo -> FetchCount -> Request 'RA (Vector RepoDeployKey) -- | Querying a deploy key deployKeyFor' :: Auth -> Name Owner -> Name Repo -> Id RepoDeployKey -> IO (Either Error RepoDeployKey) -- | Querying a deploy key. See -- https://developer.github.com/v3/repos/keys/#get-a-deploy-key deployKeyForR :: Name Owner -> Name Repo -> Id RepoDeployKey -> Request 'RA RepoDeployKey -- | Create a deploy key createRepoDeployKey' :: Auth -> Name Owner -> Name Repo -> NewRepoDeployKey -> IO (Either Error RepoDeployKey) -- | Create a deploy key. See -- https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key. createRepoDeployKeyR :: Name Owner -> Name Repo -> NewRepoDeployKey -> Request 'RW RepoDeployKey deleteRepoDeployKey' :: Auth -> Name Owner -> Name Repo -> Id RepoDeployKey -> IO (Either Error ()) -- | Delete a deploy key. See -- https://developer.github.com/v3/repos/keys/#remove-a-deploy-key deleteRepoDeployKeyR :: Name Owner -> Name Repo -> Id RepoDeployKey -> Request 'RW () -- | The Github Repo Contents API, as documented at -- https://developer.github.com/v3/repos/contents/ module GitHub.Endpoints.Repos.Contents -- | The contents of a file or directory in a repo, given the repo owner, -- name, and path to the file -- --
-- contentsFor "thoughtbot" "paperclip" "README.md" --contentsFor :: Name Owner -> Name Repo -> Text -> Maybe Text -> IO (Either Error Content) -- | The contents of a file or directory in a repo, given the repo owner, -- name, and path to the file With Authentication -- --
-- contentsFor' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" "README.md" Nothing --contentsFor' :: Maybe Auth -> Name Owner -> Name Repo -> Text -> Maybe Text -> IO (Either Error Content) contentsForR :: Name Owner -> Name Repo -> Text -> Maybe Text -> Request k Content -- | The contents of a README file in a repo, given the repo owner and name -- --
-- readmeFor "thoughtbot" "paperclip" --readmeFor :: Name Owner -> Name Repo -> IO (Either Error Content) -- | The contents of a README file in a repo, given the repo owner and name -- With Authentication -- --
-- readmeFor' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" --readmeFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error Content) readmeForR :: Name Owner -> Name Repo -> Request k Content -- | The archive of a repo, given the repo owner, name, and archive type -- --
-- archiveFor "thoughtbot" "paperclip" ArchiveFormatTarball Nothing --archiveFor :: Name Owner -> Name Repo -> ArchiveFormat -> Maybe Text -> IO (Either Error URI) -- | The archive of a repo, given the repo owner, name, and archive type -- With Authentication -- --
-- archiveFor' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" ArchiveFormatTarball Nothing --archiveFor' :: Maybe Auth -> Name Owner -> Name Repo -> ArchiveFormat -> Maybe Text -> IO (Either Error URI) archiveForR :: Name Owner -> Name Repo -> ArchiveFormat -> Maybe Text -> Request k URI -- | Create a file. createFile :: Auth -> Name Owner -> Name Repo -> CreateFile -> IO (Either Error ContentResult) -- | Create a file. See -- https://developer.github.com/v3/repos/contents/#create-a-file createFileR :: Name Owner -> Name Repo -> CreateFile -> Request 'RW ContentResult -- | Update a file. updateFile :: Auth -> Name Owner -> Name Repo -> UpdateFile -> IO (Either Error ContentResult) -- | Update a file. See -- https://developer.github.com/v3/repos/contents/#update-a-file updateFileR :: Name Owner -> Name Repo -> UpdateFile -> Request 'RW ContentResult -- | Delete a file. deleteFile :: Auth -> Name Owner -> Name Repo -> DeleteFile -> IO (Either Error ()) -- | Delete a file. See -- https://developer.github.com/v3/repos/contents/#delete-a-file deleteFileR :: Name Owner -> Name Repo -> DeleteFile -> Request 'RW () -- | The repo commits API as described on -- http://developer.github.com/v3/repos/commits/. module GitHub.Endpoints.Repos.Commits -- | The options for querying commits. data CommitQueryOption CommitQuerySha :: !Text -> CommitQueryOption CommitQueryPath :: !Text -> CommitQueryOption CommitQueryAuthor :: !Text -> CommitQueryOption CommitQuerySince :: !UTCTime -> CommitQueryOption CommitQueryUntil :: !UTCTime -> CommitQueryOption -- | The commit history for a repo. -- --
-- commitsFor "mike-burns" "github" --commitsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector Commit)) -- | The commit history for a repo. With authentication. -- --
-- commitsFor' (Just (BasicAuth (user, password))) "mike-burns" "github" --commitsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Commit)) -- | List commits on a repository. See -- https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository commitsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Commit) commitsWithOptionsFor :: Name Owner -> Name Repo -> [CommitQueryOption] -> IO (Either Error (Vector Commit)) -- | The commit history for a repo, with commits filtered to satisfy a list -- of query options. With authentication. -- --
-- commitsWithOptionsFor' (Just (BasicAuth (user, password))) "mike-burns" "github" [CommitQueryAuthor "djeik"] --commitsWithOptionsFor' :: Maybe Auth -> Name Owner -> Name Repo -> [CommitQueryOption] -> IO (Either Error (Vector Commit)) -- | List commits on a repository. See -- https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository commitsWithOptionsForR :: Name Owner -> Name Repo -> FetchCount -> [CommitQueryOption] -> Request k (Vector Commit) -- | Details on a specific SHA1 for a repo. -- --
-- commit "mike-burns" "github" "9d1a9a361266c3c890b1108ad2fdf52f824b1b81" --commit :: Name Owner -> Name Repo -> Name Commit -> IO (Either Error Commit) -- | Details on a specific SHA1 for a repo. With authentication. -- --
-- commit (Just $ BasicAuth (username, password)) "mike-burns" "github" "9d1a9a361266c3c890b1108ad2fdf52f824b1b81" --commit' :: Maybe Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error Commit) -- | Query a single commit. See -- https://developer.github.com/v3/repos/commits/#get-a-single-commit commitR :: Name Owner -> Name Repo -> Name Commit -> Request k Commit -- | The diff between two treeishes on a repo. -- --
-- diff "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" "HEAD" --diff :: Name Owner -> Name Repo -> Name Commit -> Name Commit -> IO (Either Error Diff) -- | The diff between two treeishes on a repo. -- --
-- diff "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" "HEAD" --diff' :: Maybe Auth -> Name Owner -> Name Repo -> Name Commit -> Name Commit -> IO (Either Error Diff) -- | Compare two commits. See -- https://developer.github.com/v3/repos/commits/#compare-two-commits diffR :: Name Owner -> Name Repo -> Name Commit -> Name Commit -> Request k Diff -- | The repo commits API as described on -- http://developer.github.com/v3/repos/comments/. module GitHub.Endpoints.Repos.Comments -- | All the comments on a Github repo. -- --
-- commentsFor "thoughtbot" "paperclip" --commentsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector Comment)) -- | All the comments on a Github repo. With authentication. -- --
-- commentsFor "thoughtbot" "paperclip" --commentsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Comment)) -- | List commit comments for a repository. See -- https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository commentsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Comment) -- | Just the comments on a specific SHA for a given Github repo. -- --
-- commitCommentsFor "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" --commitCommentsFor :: Name Owner -> Name Repo -> Name Commit -> IO (Either Error (Vector Comment)) -- | Just the comments on a specific SHA for a given Github repo. With -- authentication. -- --
-- commitCommentsFor "thoughtbot" "paperclip" "41f685f6e01396936bb8cd98e7cca517e2c7d96b" --commitCommentsFor' :: Maybe Auth -> Name Owner -> Name Repo -> Name Commit -> IO (Either Error (Vector Comment)) -- | List comments for a single commit. See -- https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit commitCommentsForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request k (Vector Comment) -- | A comment, by its ID, relative to the Github repo. -- --
-- commitCommentFor "thoughtbot" "paperclip" "669575" --commitCommentFor :: Name Owner -> Name Repo -> Id Comment -> IO (Either Error Comment) -- | A comment, by its ID, relative to the Github repo. -- --
-- commitCommentFor "thoughtbot" "paperclip" "669575" --commitCommentFor' :: Maybe Auth -> Name Owner -> Name Repo -> Id Comment -> IO (Either Error Comment) -- | Query a single commit comment. See -- https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment commitCommentForR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment -- | The repo collaborators API as described on -- http://developer.github.com/v3/repos/collaborators/. module GitHub.Endpoints.Repos.Collaborators -- | All the users who have collaborated on a repo. -- --
-- collaboratorsOn "thoughtbot" "paperclip" --collaboratorsOn :: Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) -- | All the users who have collaborated on a repo. With authentication. collaboratorsOn' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) -- | List collaborators. See -- https://developer.github.com/v3/repos/collaborators/#list-collaborators collaboratorsOnR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) -- | Whether the user is collaborating on a repo. Takes the user in -- question, the user who owns the repo, and the repo name. -- --
-- isCollaboratorOn Nothing "mike-burns" "thoughtbot" "paperclip" -- isCollaboratorOn Nothing "johnson" "thoughtbot" "paperclip" --isCollaboratorOn :: Maybe Auth -> Name Owner -> Name Repo -> Name User -> IO (Either Error Bool) -- | Check if a user is a collaborator. See -- https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator isCollaboratorOnR :: Name Owner -> Name Repo -> Name User -> Request k Bool -- | The Github Repos API, as documented at -- http://developer.github.com/v3/repos/ module GitHub.Endpoints.Repos -- | List your repositories. currentUserRepos :: Auth -> RepoPublicity -> IO (Either Error (Vector Repo)) -- | List your repositories. See -- https://developer.github.com/v3/repos/#list-your-repositories currentUserReposR :: RepoPublicity -> FetchCount -> Request k (Vector Repo) -- | The repos for a user, by their login. Can be restricted to just repos -- they own, are a member of, or publicize. Private repos will return -- empty list. -- --
-- userRepos "mike-burns" All --userRepos :: Name Owner -> RepoPublicity -> IO (Either Error (Vector Repo)) -- | The repos for a user, by their login. With authentication. -- --
-- userRepos' (Just (BasicAuth (user, password))) "mike-burns" All --userRepos' :: Maybe Auth -> Name Owner -> RepoPublicity -> IO (Either Error (Vector Repo)) -- | List user repositories. See -- https://developer.github.com/v3/repos/#list-user-repositories userReposR :: Name Owner -> RepoPublicity -> FetchCount -> Request k (Vector Repo) -- | The repos for an organization, by the organization name. -- --
-- organizationRepos "thoughtbot" --organizationRepos :: Name Organization -> IO (Either Error (Vector Repo)) -- | The repos for an organization, by the organization name. With -- authentication. -- --
-- organizationRepos (Just (BasicAuth (user, password))) "thoughtbot" All --organizationRepos' :: Maybe Auth -> Name Organization -> RepoPublicity -> IO (Either Error (Vector Repo)) -- | List organization repositories. See -- https://developer.github.com/v3/repos/#list-organization-repositories organizationReposR :: Name Organization -> RepoPublicity -> FetchCount -> Request k (Vector Repo) -- | Details on a specific repo, given the owner and repo name. -- --
-- repository "mike-burns" "github" --repository :: Name Owner -> Name Repo -> IO (Either Error Repo) -- | Details on a specific repo, given the owner and repo name. With -- authentication. -- --
-- repository' (Just (BasicAuth (user, password))) "mike-burns" "github" --repository' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error Repo) -- | Query single repository. See -- https://developer.github.com/v3/repos/#get repositoryR :: Name Owner -> Name Repo -> Request k Repo -- | The contributors to a repo, given the owner and repo name. -- --
-- contributors "thoughtbot" "paperclip" --contributors :: Name Owner -> Name Repo -> IO (Either Error (Vector Contributor)) -- | The contributors to a repo, given the owner and repo name. With -- authentication. -- --
-- contributors' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" --contributors' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Contributor)) -- | List contributors. See -- https://developer.github.com/v3/repos/#list-contributors contributorsR :: Name Owner -> Name Repo -> Bool -> FetchCount -> Request k (Vector Contributor) -- | The contributors to a repo, including anonymous contributors (such as -- deleted users or git commits with unknown email addresses), given the -- owner and repo name. -- --
-- contributorsWithAnonymous "thoughtbot" "paperclip" --contributorsWithAnonymous :: Name Owner -> Name Repo -> IO (Either Error (Vector Contributor)) -- | The contributors to a repo, including anonymous contributors (such as -- deleted users or git commits with unknown email addresses), given the -- owner and repo name. With authentication. -- --
-- contributorsWithAnonymous' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" --contributorsWithAnonymous' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Contributor)) -- | The programming languages used in a repo along with the number of -- characters written in that language. Takes the repo owner and name. -- --
-- languagesFor "mike-burns" "ohlaunch" --languagesFor :: Name Owner -> Name Repo -> IO (Either Error Languages) -- | The programming languages used in a repo along with the number of -- characters written in that language. Takes the repo owner and name. -- With authentication. -- --
-- languagesFor' (Just (BasicAuth (user, password))) "mike-burns" "ohlaunch" --languagesFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error Languages) -- | List languages. See -- https://developer.github.com/v3/repos/#list-languages languagesForR :: Name Owner -> Name Repo -> Request k Languages -- | The git tags on a repo, given the repo owner and name. -- --
-- tagsFor "thoughtbot" "paperclip" --tagsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector Tag)) -- | The git tags on a repo, given the repo owner and name. With -- authentication. -- --
-- tagsFor' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" --tagsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Tag)) -- | List tags. See https://developer.github.com/v3/repos/#list-tags tagsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Tag) -- | The git branches on a repo, given the repo owner and name. -- --
-- branchesFor "thoughtbot" "paperclip" --branchesFor :: Name Owner -> Name Repo -> IO (Either Error (Vector Branch)) -- | The git branches on a repo, given the repo owner and name. With -- authentication. -- --
-- branchesFor' (Just (BasicAuth (user, password))) "thoughtbot" "paperclip" --branchesFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Branch)) -- | List branches. See -- https://developer.github.com/v3/repos/#list-branches branchesForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Branch) -- | Create a new repository. -- --
-- createRepo' (BasicAuth (user, password)) (newRepo "some_repo") {newRepoHasIssues = Just False}
--
createRepo' :: Auth -> NewRepo -> IO (Either Error Repo)
-- | Create a new repository. See
-- https://developer.github.com/v3/repos/#create
createRepoR :: NewRepo -> Request 'RW Repo
-- | Create a new repository for an organization.
--
--
-- createOrganizationRepo (BasicAuth (user, password)) "thoughtbot" (newRepo "some_repo") {newRepoHasIssues = Just False}
--
createOrganizationRepo' :: Auth -> Name Organization -> NewRepo -> IO (Either Error Repo)
-- | Create a new repository for an organization. See
-- https://developer.github.com/v3/repos/#create
createOrganizationRepoR :: Name Organization -> NewRepo -> Request 'RW Repo
-- | Fork an existing repository. See
-- https://developer.github.com/v3/repos/forks/#create-a-fork
-- TODO: The third paramater (an optional Organisation) is not used yet.
forkExistingRepoR :: Name Owner -> Name Repo -> Maybe (Name Owner) -> Request 'RW Repo
-- | Edit an existing repository.
--
--
-- editRepo (BasicAuth (user, password)) "some_user" "some_repo" def {editDescription = Just "some description"}
--
editRepo :: Auth -> Name Owner -> Name Repo -> EditRepo -> IO (Either Error Repo)
-- | Edit an existing repository. See
-- https://developer.github.com/v3/repos/#edit
editRepoR :: Name Owner -> Name Repo -> EditRepo -> Request 'RW Repo
-- | Delete an existing repository.
--
-- -- deleteRepo (BasicAuth (user, password)) "thoughtbot" "some_repo" --deleteRepo :: Auth -> Name Owner -> Name Repo -> IO (Either Error ()) deleteRepoR :: Name Owner -> Name Repo -> Request 'RW () -- | The Github RateLimit API, as described at -- http://developer.github.com/v3/rate_limit/. module GitHub.Endpoints.RateLimit -- | Get your current rate limit status. -- https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status rateLimitR :: Request k RateLimit -- | Get your current rate limit status (Note: Accessing this endpoint does -- not count against your rate limit.) Without authentication. rateLimit :: IO (Either Error RateLimit) -- | Get your current rate limit status (Note: Accessing this endpoint does -- not count against your rate limit.) With authentication. rateLimit' :: Maybe Auth -> IO (Either Error RateLimit) -- | The reviews API as described on -- http://developer.github.com/v3/pulls/reviews/. module GitHub.Endpoints.PullRequests.Reviews -- | List reviews for a pull request. See -- https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request pullRequestReviewsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Review) -- | All reviews for a pull request given the repo owner, repo name and the -- pull request id. -- --
-- pullRequestReviews "thoughtbot" "paperclip" (Id 101) --pullRequestReviews :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review)) -- | All reviews for a pull request given the repo owner, repo name and the -- pull request id. With authentication. -- --
-- pullRequestReviews' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" (Id 101)
--
pullRequestReviews' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review))
-- | Query a single pull request review. see
-- https://developer.github.com/v3/pulls/reviews/#get-a-single-review
pullRequestReviewR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k Review
-- | A detailed review on a pull request given the repo owner, repo name,
-- pull request id and review id.
--
-- -- pullRequestReview "thoughtbot" "factory_girl" (Id 301819) (Id 332) --pullRequestReview :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review) -- | A detailed review on a pull request given the repo owner, repo name, -- pull request id and review id. With authentication. -- --
-- pullRequestReview' (Just ("github-username", "github-password"))
--
--
-- "thoughtbot" "factory_girl" (Id 301819) (Id 332)
pullRequestReview' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review)
-- | Query the comments for a single pull request review. see
-- https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review
pullRequestReviewCommentsR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k [ReviewComment]
-- | All comments for a review on a pull request given the repo owner, repo
-- name, pull request id and review id.
--
-- -- pullRequestReviewComments "thoughtbot" "factory_girl" (Id 301819) (Id 332) --pullRequestReviewCommentsIO :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment]) -- | All comments for a review on a pull request given the repo owner, repo -- name, pull request id and review id. With authentication. -- --
-- pullRequestReviewComments' (Just ("github-username", "github-password")) "thoughtbot" "factory_girl" (Id 301819) (Id 332)
--
pullRequestReviewCommentsIO' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment])
-- | The pull request review comments API as described at
-- http://developer.github.com/v3/pulls/comments/.
module GitHub.Endpoints.PullRequests.Comments
-- | All the comments on a pull request with the given ID.
--
-- -- pullRequestComments "thoughtbot" "factory_girl" (Id 256) --pullRequestCommentsIO :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Comment)) -- | List comments on a pull request. See -- https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request pullRequestCommentsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Comment) -- | One comment on a pull request, by the comment's ID. -- --
-- pullRequestComment "thoughtbot" "factory_girl" (Id 301819) --pullRequestComment :: Name Owner -> Name Repo -> Id Comment -> IO (Either Error Comment) -- | Query a single comment. See -- https://developer.github.com/v3/pulls/comments/#get-a-single-comment pullRequestCommentR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment -- | The pull requests API as documented at -- http://developer.github.com/v3/pulls/. module GitHub.Endpoints.PullRequests -- | All open pull requests for the repo, by owner and repo name. -- --
-- pullRequestsFor "rails" "rails" --pullRequestsFor :: Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) -- | All open pull requests for the repo, by owner and repo name. -- --
-- pullRequestsFor "rails" "rails" --pullRequestsFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimplePullRequest)) -- | List pull requests. See -- https://developer.github.com/v3/pulls/#list-pull-requests pullRequestsForR :: Name Owner -> Name Repo -> PullRequestMod -> FetchCount -> Request k (Vector SimplePullRequest) -- | A detailed pull request, which has much more information. This takes -- the repo owner and name along with the number assigned to the pull -- request. With authentification. -- --
-- pullRequest' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 562
--
pullRequest' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest)
-- | A detailed pull request, which has much more information. This takes
-- the repo owner and name along with the number assigned to the pull
-- request.
--
-- -- pullRequest "thoughtbot" "paperclip" 562 --pullRequest :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error PullRequest) -- | Query a single pull request. See -- https://developer.github.com/v3/pulls/#get-a-single-pull-request pullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Request k PullRequest createPullRequest :: Auth -> Name Owner -> Name Repo -> CreatePullRequest -> IO (Either Error PullRequest) -- | Create a pull request. See -- https://developer.github.com/v3/pulls/#create-a-pull-request createPullRequestR :: Name Owner -> Name Repo -> CreatePullRequest -> Request 'RW PullRequest -- | Update a pull request updatePullRequest :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> IO (Either Error PullRequest) -- | Update a pull request. See -- https://developer.github.com/v3/pulls/#update-a-pull-request updatePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> Request 'RW PullRequest -- | All the commits on a pull request, given the repo owner, repo name, -- and the number of the pull request. With authentification. -- --
-- pullRequestCommits' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 688
--
pullRequestCommits' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit))
-- | All the commits on a pull request, given the repo owner, repo name,
-- and the number of the pull request.
--
-- -- pullRequestCommits "thoughtbot" "paperclip" 688 --pullRequestCommitsIO :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Commit)) -- | List commits on a pull request. See -- https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request pullRequestCommitsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Commit) -- | The individual files that a pull request patches. Takes the repo owner -- and name, plus the number assigned to the pull request. With -- authentification. -- --
-- pullRequestFiles' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" 688
--
pullRequestFiles' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File))
-- | The individual files that a pull request patches. Takes the repo owner
-- and name, plus the number assigned to the pull request.
--
-- -- pullRequestFiles "thoughtbot" "paperclip" 688 --pullRequestFiles :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector File)) -- | List pull requests files. See -- https://developer.github.com/v3/pulls/#list-pull-requests-files pullRequestFilesR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector File) -- | Check if pull request has been merged. isPullRequestMerged :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error Bool) -- | Query if a pull request has been merged. See -- https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged isPullRequestMergedR :: Name Owner -> Name Repo -> Id PullRequest -> Request k Bool -- | Merge a pull request. mergePullRequest :: Auth -> Name Owner -> Name Repo -> Id PullRequest -> Maybe Text -> IO (Either Error MergeResult) -- | Merge a pull request (Merge Button). -- https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button mergePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe Text -> Request 'RW MergeResult -- | The Owner teams API as described on -- http://developer.github.com/v3/orgs/teams/. module GitHub.Endpoints.Organizations.Teams -- | List the public teams of an Owner. -- --
-- teamsOf "thoughtbot" --teamsOf :: Name Organization -> IO (Either Error (Vector SimpleTeam)) -- | List teams. List the teams of an Owner. When authenticated, lists -- private teams visible to the authenticated user. When unauthenticated, -- lists only public teams for an Owner. -- --
-- teamsOf' (Just $ OAuth "token") "thoughtbot" --teamsOf' :: Maybe Auth -> Name Organization -> IO (Either Error (Vector SimpleTeam)) -- | List teams. See -- https://developer.github.com/v3/orgs/teams/#list-teams teamsOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleTeam) -- | The information for a single team, by team id. -- --
-- teamInfoFor' (Just $ OAuth "token") 1010101 --teamInfoFor :: Id Team -> IO (Either Error Team) -- | The information for a single team, by team id. With authentication -- --
-- teamInfoFor' (Just $ OAuth "token") 1010101 --teamInfoFor' :: Maybe Auth -> Id Team -> IO (Either Error Team) -- | Query team. See -- https://developer.github.com/v3/orgs/teams/#get-team teamInfoForR :: Id Team -> Request k Team -- | Create a team under an Owner -- --
-- createTeamFor' (OAuth "token") "Owner" (CreateTeam "newteamname" "some description" [] PermssionPull) --createTeamFor' :: Auth -> Name Organization -> CreateTeam -> IO (Either Error Team) -- | Create team. See -- https://developer.github.com/v3/orgs/teams/#create-team createTeamForR :: Name Organization -> CreateTeam -> Request 'RW Team -- | Edit a team, by id. -- --
-- editTeamFor' --editTeam' :: Auth -> Id Team -> EditTeam -> IO (Either Error Team) -- | Edit team. See -- https://developer.github.com/v3/orgs/teams/#edit-team editTeamR :: Id Team -> EditTeam -> Request 'RW Team -- | Delete a team, by id. -- --
-- deleteTeam' (OAuth "token") 1010101 --deleteTeam' :: Auth -> Id Team -> IO (Either Error ()) -- | Delete team. -- -- See https://developer.github.com/v3/orgs/teams/#delete-team deleteTeamR :: Id Team -> Request 'RW () -- | List team members. -- -- See -- https://developer.github.com/v3/orgs/teams/#list-team-members listTeamMembersR :: Id Team -> TeamMemberRole -> FetchCount -> Request 'RA (Vector SimpleUser) -- | Retrieve repositories for a team. -- --
-- listTeamRepos (GitHub.mkTeamId team_id) --listTeamRepos :: Id Team -> IO (Either Error (Vector Repo)) -- | The repositories of a single team, by team id. With authentication -- --
-- listTeamRepos' (Just $ GitHub.OAuth token) (GitHub.mkTeamId team_id) --listTeamRepos' :: Maybe Auth -> Id Team -> IO (Either Error (Vector Repo)) -- | Query team repositories. See -- https://developer.github.com/v3/orgs/teams/#list-team-repos listTeamReposR :: Id Team -> FetchCount -> Request k (Vector Repo) -- | Add a repository to a team or update the permission on the repository. -- --
-- addOrUpdateTeamRepo' (OAuth "token") 1010101 "mburns" (Just PermissionPull) --addOrUpdateTeamRepo' :: Auth -> Id Team -> Name Organization -> Name Repo -> Permission -> IO (Either Error ()) -- | Add or update a team repository. See -- https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository addOrUpdateTeamRepoR :: Id Team -> Name Organization -> Name Repo -> Permission -> Request 'RW () -- | Retrieve team mebership information for a user. -- --
-- teamMembershipInfoFor 1010101 "mburns" --teamMembershipInfoFor :: Id Team -> Name Owner -> IO (Either Error TeamMembership) -- | Retrieve team mebership information for a user. With authentication -- --
-- teamMembershipInfoFor' (Just $ OAuth "token") 1010101 "mburns" --teamMembershipInfoFor' :: Maybe Auth -> Id Team -> Name Owner -> IO (Either Error TeamMembership) -- | Query team membership. See -- <https://developer.github.com/v3/orgs/teams/#get-team-membership teamMembershipInfoForR :: Id Team -> Name Owner -> Request k TeamMembership -- | Add (or invite) a member to a team. -- --
-- addTeamMembershipFor' (OAuth "token") 1010101 "mburns" RoleMember --addTeamMembershipFor' :: Auth -> Id Team -> Name Owner -> Role -> IO (Either Error TeamMembership) -- | Add team membership. See -- https://developer.github.com/v3/orgs/teams/#add-team-membership addTeamMembershipForR :: Id Team -> Name Owner -> Role -> Request 'RW TeamMembership -- | Delete a member of a team. -- --
-- deleteTeamMembershipFor' (OAuth "token") 1010101 "mburns" --deleteTeamMembershipFor' :: Auth -> Id Team -> Name Owner -> IO (Either Error ()) -- | Remove team membership. See -- https://developer.github.com/v3/orgs/teams/#remove-team-membership deleteTeamMembershipForR :: Id Team -> Name Owner -> Request 'RW () -- | List teams for current authenticated user -- --
-- listTeamsCurrent' (OAuth "token") --listTeamsCurrent' :: Auth -> IO (Either Error (Vector Team)) -- | List user teams. See -- https://developer.github.com/v3/orgs/teams/#list-user-teams listTeamsCurrentR :: FetchCount -> Request 'RA (Vector Team) -- | The organization members API as described on -- http://developer.github.com/v3/orgs/members/. module GitHub.Endpoints.Organizations.Members -- | All the users who are members of the specified organization, | without -- authentication. -- --
-- membersOf "thoughtbot" --membersOf :: Name Organization -> IO (Either Error (Vector SimpleUser)) -- | All the users who are members of the specified organization, | with or -- without authentication. -- --
-- membersOf' (Just $ OAuth "token") "thoughtbot" --membersOf' :: Maybe Auth -> Name Organization -> IO (Either Error (Vector SimpleUser)) -- | All the users who are members of the specified organization. -- -- See https://developer.github.com/v3/orgs/members/#members-list membersOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleUser) -- | membersOfR with filters. -- -- See https://developer.github.com/v3/orgs/members/#members-list membersOfWithR :: Name Organization -> OrgMemberFilter -> OrgMemberRole -> FetchCount -> Request k (Vector SimpleUser) -- | Check if a user is a member of an organization, | without -- authentication. -- --
-- isMemberOf "phadej" "haskell-infra" --isMemberOf :: Name User -> Name Organization -> IO (Either Error Bool) -- | Check if a user is a member of an organization, | with or without -- authentication. -- --
-- isMemberOf' (Just $ OAuth "token") "phadej" "haskell-infra" --isMemberOf' :: Maybe Auth -> Name User -> Name Organization -> IO (Either Error Bool) -- | Check if a user is a member of an organization. -- -- See -- https://developer.github.com/v3/orgs/members/#check-membership isMemberOfR :: Name User -> Name Organization -> Request k Bool -- | List pending organization invitations -- -- See -- https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations orgInvitationsR :: Name Organization -> FetchCount -> Request 'RA (Vector Invitation) -- | The orgs API as described on -- http://developer.github.com/v3/orgs/. module GitHub.Endpoints.Organizations -- | List user organizations. The public organizations for a user, given -- the user's login. -- --
-- publicOrganizationsFor "mike-burns" --publicOrganizationsFor :: Name User -> IO (Either Error (Vector SimpleOrganization)) -- | The public organizations for a user, given the user's login, with -- authorization -- --
-- publicOrganizationsFor' (Just ("github-username", "github-password")) "mike-burns"
--
publicOrganizationsFor' :: Maybe Auth -> Name User -> IO (Either Error (Vector SimpleOrganization))
-- | List user organizations. See
-- https://developer.github.com/v3/orgs/#list-user-organizations
publicOrganizationsForR :: Name User -> FetchCount -> Request k (Vector SimpleOrganization)
-- | Query an organization. Details on a public organization. Takes the
-- organization's login.
--
-- -- publicOrganization "thoughtbot" --publicOrganization :: Name Organization -> IO (Either Error Organization) -- | Details on a public organization. Takes the organization's login. -- --
-- publicOrganization' (Just ("github-username", "github-password")) "thoughtbot"
--
publicOrganization' :: Maybe Auth -> Name Organization -> IO (Either Error Organization)
-- | Query an organization. See
-- https://developer.github.com/v3/orgs/#get-an-organization
publicOrganizationR :: Name Organization -> Request k Organization
-- | The milestones API as described on
-- http://developer.github.com/v3/issues/milestones/.
module GitHub.Endpoints.Issues.Milestones
-- | All milestones in the repo.
--
-- -- milestones "thoughtbot" "paperclip" --milestones :: Name Owner -> Name Repo -> IO (Either Error (Vector Milestone)) -- | All milestones in the repo, using authentication. -- --
-- milestones' (User (user, passwordG) "thoughtbot" "paperclip" --milestones' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector Milestone)) -- | List milestones for a repository. See -- https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository milestonesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Milestone) -- | Details on a specific milestone, given it's milestone number. -- --
-- milestone "thoughtbot" "paperclip" (Id 2) --milestone :: Name Owner -> Name Repo -> Id Milestone -> IO (Either Error Milestone) -- | Query a single milestone. See -- https://developer.github.com/v3/issues/milestones/#get-a-single-milestone milestoneR :: Name Owner -> Name Repo -> Id Milestone -> Request k Milestone -- | The API for dealing with labels on Github issues as described on -- http://developer.github.com/v3/issues/labels/. module GitHub.Endpoints.Issues.Labels -- | All the labels available to use on any issue in the repo. -- --
-- labelsOnRepo "thoughtbot" "paperclip" --labelsOnRepo :: Name Owner -> Name Repo -> IO (Either Error (Vector IssueLabel)) -- | All the labels available to use on any issue in the repo using -- authentication. -- --
-- labelsOnRepo' (Just (User (user password))) "thoughtbot" "paperclip" --labelsOnRepo' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector IssueLabel)) -- | List all labels for this repository. See -- https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository labelsOnRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueLabel) -- | A label by name. -- --
-- label "thoughtbot" "paperclip" "bug" --label :: Name Owner -> Name Repo -> Name IssueLabel -> IO (Either Error IssueLabel) -- | A label by name using authentication. -- --
-- label' (Just (User (user password))) "thoughtbot" "paperclip" "bug" --label' :: Maybe Auth -> Name Owner -> Name Repo -> Name IssueLabel -> IO (Either Error IssueLabel) -- | Query a single label. See -- https://developer.github.com/v3/issues/labels/#get-a-single-label labelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request k IssueLabel -- | Create a label -- --
-- createLabel (User (user password)) "thoughtbot" "paperclip" "bug" "f29513" --createLabel :: Auth -> Name Owner -> Name Repo -> Name IssueLabel -> String -> IO (Either Error IssueLabel) -- | Create a label. See -- https://developer.github.com/v3/issues/labels/#create-a-label createLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> String -> Request 'RW IssueLabel -- | Update a label -- --
-- updateLabel (User (user password)) "thoughtbot" "paperclip" "bug" "new-bug" "ff1111" --updateLabel :: Auth -> Name Owner -> Name Repo -> Name IssueLabel -> Name IssueLabel -> String -> IO (Either Error IssueLabel) -- | Update a label. See -- https://developer.github.com/v3/issues/labels/#update-a-label updateLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> Name IssueLabel -> String -> Request 'RW IssueLabel -- | Delete a label -- --
-- deleteLabel (User (user password)) "thoughtbot" "paperclip" "bug" --deleteLabel :: Auth -> Name Owner -> Name Repo -> Name IssueLabel -> IO (Either Error ()) -- | Delete a label. See -- https://developer.github.com/v3/issues/labels/#delete-a-label deleteLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request 'RW () -- | The labels on an issue in a repo. -- --
-- labelsOnIssue "thoughtbot" "paperclip" 585 --labelsOnIssue :: Name Owner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueLabel)) -- | The labels on an issue in a repo using authentication. -- --
-- labelsOnIssue' (Just (User (user password))) "thoughtbot" "paperclip" (Id 585) --labelsOnIssue' :: Maybe Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueLabel)) -- | List labels on an issue. See -- https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue labelsOnIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueLabel) -- | Add labels to an issue. -- --
-- addLabelsToIssue (User (user password)) "thoughtbot" "paperclip" (Id 585) ["Label1" "Label2"] --addLabelsToIssue :: Foldable f => Auth -> Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> IO (Either Error (Vector IssueLabel)) -- | Add lables to an issue. See -- https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue addLabelsToIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel) -- | Remove a label from an issue. -- --
-- removeLabelFromIssue (User (user password)) "thoughtbot" "paperclip" (Id 585) "bug" --removeLabelFromIssue :: Auth -> Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> IO (Either Error ()) -- | Remove a label from an issue. See -- https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue removeLabelFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> Request 'RW () -- | Replace all labels on an issue. Sending an empty list will remove all -- labels from the issue. -- --
-- replaceAllLabelsForIssue (User (user password)) "thoughtbot" "paperclip" (Id 585) ["Label1" "Label2"] --replaceAllLabelsForIssue :: Foldable f => Auth -> Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> IO (Either Error (Vector IssueLabel)) -- | Replace all labels on an issue. See -- https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue -- -- Sending an empty list will remove all labels from the issue. replaceAllLabelsForIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel) -- | Remove all labels from an issue. -- --
-- removeAllLabelsFromIssue (User (user password)) "thoughtbot" "paperclip" (Id 585) --removeAllLabelsFromIssue :: Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error ()) -- | Remove all labels from an issue. See -- https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue removeAllLabelsFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Request 'RW () -- | All the labels on a repo's milestone given the milestone ID. -- --
-- labelsOnMilestone "thoughtbot" "paperclip" (Id 2) --labelsOnMilestone :: Name Owner -> Name Repo -> Id Milestone -> IO (Either Error (Vector IssueLabel)) -- | All the labels on a repo's milestone given the milestone ID using -- authentication. -- --
-- labelsOnMilestone' (Just (User (user password))) "thoughtbot" "paperclip" (Id 2) --labelsOnMilestone' :: Maybe Auth -> Name Owner -> Name Repo -> Id Milestone -> IO (Either Error (Vector IssueLabel)) -- | Query labels for every issue in a milestone. See -- https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone labelsOnMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> FetchCount -> Request k (Vector IssueLabel) -- | The Github issue events API, which is described on -- http://developer.github.com/v3/issues/events/ module GitHub.Endpoints.Issues.Events -- | All events that have happened on an issue. -- --
-- eventsForIssue "thoughtbot" "paperclip" 49 --eventsForIssue :: Name Owner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueEvent)) -- | All events that have happened on an issue, using authentication. -- --
-- eventsForIssue' (User (user, password)) "thoughtbot" "paperclip" 49 --eventsForIssue' :: Maybe Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueEvent)) -- | List events for an issue. See -- https://developer.github.com/v3/issues/events/#list-events-for-an-issue eventsForIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueEvent) -- | All the events for all issues in a repo. -- --
-- eventsForRepo "thoughtbot" "paperclip" --eventsForRepo :: Name Owner -> Name Repo -> IO (Either Error (Vector IssueEvent)) -- | All the events for all issues in a repo, using authentication. -- --
-- eventsForRepo' (User (user, password)) "thoughtbot" "paperclip" --eventsForRepo' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector IssueEvent)) -- | List events for a repository. See -- https://developer.github.com/v3/issues/events/#list-events-for-a-repository eventsForRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueEvent) -- | Details on a specific event, by the event's ID. -- --
-- event "thoughtbot" "paperclip" 5335772 --event :: Name Owner -> Name Repo -> Id IssueEvent -> IO (Either Error IssueEvent) -- | Details on a specific event, by the event's ID, using authentication. -- --
-- event' (User (user, password)) "thoughtbot" "paperclip" 5335772 --event' :: Maybe Auth -> Name Owner -> Name Repo -> Id IssueEvent -> IO (Either Error IssueEvent) -- | Query a single event. See -- https://developer.github.com/v3/issues/events/#get-a-single-event eventR :: Name Owner -> Name Repo -> Id IssueEvent -> Request k IssueEvent -- | The Github issue comments API from -- http://developer.github.com/v3/issues/comments/. module GitHub.Endpoints.Issues.Comments -- | A specific comment, by ID. -- --
-- comment "thoughtbot" "paperclip" 1468184 --comment :: Name Owner -> Name Repo -> Id Comment -> IO (Either Error IssueComment) -- | Query a single comment. See -- https://developer.github.com/v3/issues/comments/#get-a-single-comment commentR :: Name Owner -> Name Repo -> Id Comment -> Request k IssueComment -- | All comments on an issue, by the issue's number. -- --
-- comments "thoughtbot" "paperclip" 635 --comments :: Name Owner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueComment)) -- | List comments on an issue. See -- https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue commentsR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueComment) -- | All comments on an issue, by the issue's number, using authentication. -- --
-- comments' (User (user, password)) "thoughtbot" "paperclip" 635 --comments' :: Maybe Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error (Vector IssueComment)) -- | Create a new comment. -- --
-- createComment (User (user, password)) user repo issue -- "some words" --createComment :: Auth -> Name Owner -> Name Repo -> Id Issue -> Text -> IO (Either Error Comment) -- | Create a comment. See -- https://developer.github.com/v3/issues/comments/#create-a-comment createCommentR :: Name Owner -> Name Repo -> Id Issue -> Text -> Request 'RW Comment -- | Delete a comment. -- --
-- deleteComment (User (user, password)) user repo commentid --deleteComment :: Auth -> Name Owner -> Name Repo -> Id Comment -> IO (Either Error ()) -- | Delete a comment. See -- https://developer.github.com/v3/issues/comments/#delete-a-comment deleteCommentR :: Name Owner -> Name Repo -> Id Comment -> Request 'RW () -- | Edit a comment. -- --
-- editComment (User (user, password)) user repo commentid -- "new words" --editComment :: Auth -> Name Owner -> Name Repo -> Id Comment -> Text -> IO (Either Error Comment) -- | Edit a comment. See -- https://developer.github.com/v3/issues/comments/#edit-a-comment editCommentR :: Name Owner -> Name Repo -> Id Comment -> Text -> Request 'RW Comment -- | The issues API as described on -- http://developer.github.com/v3/issues/. module GitHub.Endpoints.Issues -- | See https://developer.github.com/v3/issues/#list-issues. currentUserIssuesR :: IssueMod -> FetchCount -> Request 'RA (Vector Issue) -- | See https://developer.github.com/v3/issues/#list-issues. organizationIssuesR :: Name Organization -> IssueMod -> FetchCount -> Request k (Vector Issue) -- | Details on a specific issue, given the repo owner and name, and the -- issue number. -- --
-- issue "thoughtbot" "paperclip" (Id "462") --issue :: Name Owner -> Name Repo -> Id Issue -> IO (Either Error Issue) -- | Details on a specific issue, given the repo owner and name, and the -- issue number.' -- --
-- issue' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" "462"
--
issue' :: Maybe Auth -> Name Owner -> Name Repo -> Id Issue -> IO (Either Error Issue)
-- | Query a single issue. See
-- https://developer.github.com/v3/issues/#get-a-single-issue
issueR :: Name Owner -> Name Repo -> Id Issue -> Request k Issue
-- | All issues for a repo (given the repo owner and name), with optional
-- restrictions as described in the IssueRepoMod data type.
--
-- -- issuesForRepo "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending] --issuesForRepo :: Name Owner -> Name Repo -> IssueRepoMod -> IO (Either Error (Vector Issue)) -- | All issues for a repo (given the repo owner and name), with optional -- restrictions as described in the IssueRepoMod data type. -- --
-- issuesForRepo' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending]
--
issuesForRepo' :: Maybe Auth -> Name Owner -> Name Repo -> IssueRepoMod -> IO (Either Error (Vector Issue))
-- | List issues for a repository. See
-- https://developer.github.com/v3/issues/#list-issues-for-a-repository
issuesForRepoR :: Name Owner -> Name Repo -> IssueRepoMod -> FetchCount -> Request k (Vector Issue)
-- | Create a new issue.
--
--
-- createIssue (User (user, password)) user repo
-- (newIssue "some_repo") {...}
--
createIssue :: Auth -> Name Owner -> Name Repo -> NewIssue -> IO (Either Error Issue)
-- | Create an issue. See
-- https://developer.github.com/v3/issues/#create-an-issue
createIssueR :: Name Owner -> Name Repo -> NewIssue -> Request 'RW Issue
newIssue :: Text -> NewIssue
-- | Edit an issue.
--
--
-- editIssue (User (user, password)) user repo issue
-- editOfIssue {...}
--
editIssue :: Auth -> Name Owner -> Name Repo -> Id Issue -> EditIssue -> IO (Either Error Issue)
-- | Edit an issue. See
-- https://developer.github.com/v3/issues/#edit-an-issue
editIssueR :: Name Owner -> Name Repo -> Id Issue -> EditIssue -> Request 'RW Issue
editOfIssue :: EditIssue
-- | The underlying tree of SHA1s and files that make up a git repo. The
-- API is described on http://developer.github.com/v3/git/trees/.
module GitHub.Endpoints.GitData.Trees
-- | A tree for a SHA1.
--
-- -- tree "thoughtbot" "paperclip" "fe114451f7d066d367a1646ca7ac10e689b46844" --tree :: Name Owner -> Name Repo -> Name Tree -> IO (Either Error Tree) -- | A tree for a SHA1. -- --
-- tree (Just ("github-username", "github-password")) "thoughtbot" "paperclip" "fe114451f7d066d367a1646ca7ac10e689b46844"
--
tree' :: Maybe Auth -> Name Owner -> Name Repo -> Name Tree -> IO (Either Error Tree)
-- | Query a Tree. See
-- https://developer.github.com/v3/git/trees/#get-a-tree
treeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree
-- | A recursively-nested tree for a SHA1.
--
-- -- nestedTree "thoughtbot" "paperclip" "fe114451f7d066d367a1646ca7ac10e689b46844" --nestedTree :: Name Owner -> Name Repo -> Name Tree -> IO (Either Error Tree) -- | A recursively-nested tree for a SHA1. -- --
-- nestedTree' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" "fe114451f7d066d367a1646ca7ac10e689b46844"
--
nestedTree' :: Maybe Auth -> Name Owner -> Name Repo -> Name Tree -> IO (Either Error Tree)
-- | Query a Tree Recursively. See
-- https://developer.github.com/v3/git/trees/#get-a-tree-recursively
nestedTreeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree
-- | The underlying git references on a Github repo, exposed for the world
-- to see. The git internals documentation will also prove handy for
-- understanding these. API documentation at
-- http://developer.github.com/v3/git/refs/.
module GitHub.Endpoints.GitData.References
-- | A single reference by the ref name.
--
-- -- reference "mike-burns" "github" "heads/master" --reference :: Name Owner -> Name Repo -> Name GitReference -> IO (Either Error GitReference) -- | A single reference by the ref name. -- --
-- reference' (Just ("github-username", "github-password")) "mike-burns" "github" "heads/master"
--
reference' :: Maybe Auth -> Name Owner -> Name Repo -> Name GitReference -> IO (Either Error GitReference)
-- | Query a reference. See
-- https://developer.github.com/v3/git/refs/#get-a-reference
referenceR :: Name Owner -> Name Repo -> Name GitReference -> Request k GitReference
-- | The history of references for a repo.
--
-- -- references "mike-burns" "github" --references :: Name Owner -> Name Repo -> IO (Either Error (Vector GitReference)) -- | The history of references for a repo. -- --
-- references "mike-burns" "github" --references' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector GitReference)) -- | Query all References. See -- https://developer.github.com/v3/git/refs/#get-all-references referencesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector GitReference) -- | Create a reference. createReference :: Auth -> Name Owner -> Name Repo -> NewGitReference -> IO (Either Error GitReference) -- | Create a reference. See -- https://developer.github.com/v3/git/refs/#create-a-reference createReferenceR :: Name Owner -> Name Repo -> NewGitReference -> Request 'RW GitReference -- | Limited references by a namespace. -- --
-- namespacedReferences "thoughtbot" "paperclip" "tags" --namespacedReferences :: Name Owner -> Name Repo -> Text -> IO (Either Error [GitReference]) -- | The API for underlying git commits of a Github repo, as described on -- http://developer.github.com/v3/git/commits/. module GitHub.Endpoints.GitData.Commits -- | A single commit, by SHA1. -- --
-- commit "thoughtbot" "paperclip" "bc5c51d1ece1ee45f94b056a0f5a1674d7e8cba9" --commit :: Name Owner -> Name Repo -> Name GitCommit -> IO (Either Error GitCommit) -- | Query a commit. See -- https://developer.github.com/v3/git/commits/#get-a-commit gitCommitR :: Name Owner -> Name Repo -> Name GitCommit -> Request k GitCommit -- | The API for dealing with git blobs from Github repos, as described in -- http://developer.github.com/v3/git/blobs/. module GitHub.Endpoints.GitData.Blobs -- | Query a blob by SHA1. -- --
-- blob "thoughtbot" "paperclip" "bc5c51d1ece1ee45f94b056a0f5a1674d7e8cba9" --blob :: Name Owner -> Name Repo -> Name Blob -> IO (Either Error Blob) -- | Query a blob by SHA1. -- --
-- blob' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" "bc5c51d1ece1ee45f94b056a0f5a1674d7e8cba9"
--
blob' :: Maybe Auth -> Name Owner -> Name Repo -> Name Blob -> IO (Either Error Blob)
-- | Query a blob. See
-- https://developer.github.com/v3/git/blobs/#get-a-blob
blobR :: Name Owner -> Name Repo -> Name Blob -> Request k Blob
-- | The loving comments people have left on Gists, described on
-- http://developer.github.com/v3/gists/comments/.
module GitHub.Endpoints.Gists.Comments
-- | All the comments on a Gist, given the Gist ID.
--
-- -- commentsOn "1174060" --commentsOn :: Name Gist -> IO (Either Error (Vector GistComment)) -- | List comments on a gist. See -- https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist commentsOnR :: Name Gist -> FetchCount -> Request k (Vector GistComment) -- | A specific comment, by the comment ID. -- --
-- comment (Id 62449) --comment :: Id GistComment -> IO (Either Error GistComment) -- | Query a single comment. See -- https://developer.github.com/v3/gists/comments/#get-a-single-comment gistCommentR :: Id GistComment -> Request k GistComment -- | The gists API as described at -- http://developer.github.com/v3/gists/. module GitHub.Endpoints.Gists -- | The list of all public gists created by the user. -- --
-- gists "mike-burns" --gists :: Name Owner -> IO (Either Error (Vector Gist)) -- | The list of all gists created by the user -- --
-- gists' (Just ("github-username", "github-password")) "mike-burns"
--
gists' :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Gist))
-- | List gists. See
-- https://developer.github.com/v3/gists/#list-gists
gistsR :: Name Owner -> FetchCount -> Request k (Vector Gist)
-- | A specific gist, given its id.
--
-- -- gist "225074" --gist :: Name Gist -> IO (Either Error Gist) -- | A specific gist, given its id, with authentication credentials -- --
-- gist' (Just ("github-username", "github-password")) "225074"
--
gist' :: Maybe Auth -> Name Gist -> IO (Either Error Gist)
-- | Query a single gist. See
-- https://developer.github.com/v3/gists/#get-a-single-gist
gistR :: Name Gist -> Request k Gist
-- | Star a gist by the authenticated user.
--
--
-- starGist ("github-username", "github-password") "225074"
--
starGist :: Auth -> Name Gist -> IO (Either Error ())
-- | Star a gist by the authenticated user. See
-- https://developer.github.com/v3/gists/#star-a-gist
starGistR :: Name Gist -> Request 'RW ()
-- | Unstar a gist by the authenticated user.
--
--
-- unstarGist ("github-username", "github-password") "225074"
--
unstarGist :: Auth -> Name Gist -> IO (Either Error ())
-- | Unstar a gist by the authenticated user. See
-- https://developer.github.com/v3/gists/#unstar-a-gist
unstarGistR :: Name Gist -> Request 'RW ()
-- | Delete a gist by the authenticated user.
--
--
-- deleteGist ("github-username", "github-password") "225074"
--
deleteGist :: Auth -> Name Gist -> IO (Either Error ())
-- | Delete a gist by the authenticated user. See
-- https://developer.github.com/v3/gists/#delete-a-gist
deleteGistR :: Name Gist -> Request 'RW ()
-- | The repo watching API as described on
-- https://developer.github.com/v3/activity/watching/.
module GitHub.Endpoints.Activity.Watching
-- | The list of users that are watching the specified Github repo.
--
-- -- watchersFor "thoughtbot" "paperclip" --watchersFor :: Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) -- | The list of users that are watching the specified Github repo. With -- authentication -- --
-- watchersFor' (Just (User (user, password))) "thoughtbot" "paperclip" --watchersFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) -- | List watchers. See -- https://developer.github.com/v3/activity/watching/#list-watchers watchersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) -- | All the public repos watched by the specified user. -- --
-- reposWatchedBy "croaky" --reposWatchedBy :: Name Owner -> IO (Either Error (Vector Repo)) -- | All the public repos watched by the specified user. With -- authentication -- --
-- reposWatchedBy' (Just (User (user, password))) "croaky" --reposWatchedBy' :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Repo)) -- | List repositories being watched. See -- https://developer.github.com/v3/activity/watching/#list-repositories-being-watched reposWatchedByR :: Name Owner -> FetchCount -> Request k (Vector Repo) -- | The repo starring API as described on -- https://developer.github.com/v3/activity/starring/. module GitHub.Endpoints.Activity.Starring -- | The list of users that have starred the specified Github repo. -- --
-- userInfoFor' Nothing "mike-burns" --stargazersFor :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) -- | List Stargazers. See -- https://developer.github.com/v3/activity/starring/#list-stargazers stargazersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) -- | All the public repos starred by the specified user. -- --
-- reposStarredBy Nothing "croaky" --reposStarredBy :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Repo)) -- | List repositories being starred. See -- https://developer.github.com/v3/activity/starring/#list-repositories-being-starred reposStarredByR :: Name Owner -> FetchCount -> Request k (Vector Repo) -- | All the repos starred by the authenticated user. myStarred :: Auth -> IO (Either Error (Vector Repo)) -- | All the repos starred by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#list-repositories-being-starred myStarredR :: FetchCount -> Request 'RA (Vector Repo) -- | All the repos starred by the authenticated user. myStarredAcceptStar :: Auth -> IO (Either Error (Vector RepoStarred)) -- | All the repos starred by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#alternative-response-with-star-creation-timestamps-1 myStarredAcceptStarR :: FetchCount -> Request 'RA (Vector RepoStarred) -- | Star a repo by the authenticated user. starRepo :: Auth -> Name Owner -> Name Repo -> IO (Either Error ()) -- | Star a repo by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#star-a-repository starRepoR :: Name Owner -> Name Repo -> Request 'RW () -- | Unstar a repo by the authenticated user. unstarRepo :: Auth -> Name Owner -> Name Repo -> IO (Either Error ()) -- | Unstar a repo by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#unstar-a-repository unstarRepoR :: Name Owner -> Name Repo -> Request 'RW () -- | This module re-exports all request constructrors and data definitions -- from this package. -- -- See GitHub.Request module for executing Request, or -- other modules of this package (e.g. GitHub.Users) for already -- composed versions. -- -- The missing endpoints lists show which endpoints we know are missing, -- there might be more. module GitHub -- | List repository events. See -- https://developer.github.com/v3/activity/events/#list-repository-events repositoryEventsR :: Name Owner -> Name Repo -> FetchCount -> Request 'RO (Vector Event) -- | List user public events. See -- https://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user userEventsR :: Name User -> FetchCount -> Request 'RO (Vector Event) -- | List Stargazers. See -- https://developer.github.com/v3/activity/starring/#list-stargazers stargazersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) -- | List repositories being starred. See -- https://developer.github.com/v3/activity/starring/#list-repositories-being-starred reposStarredByR :: Name Owner -> FetchCount -> Request k (Vector Repo) -- | All the repos starred by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#list-repositories-being-starred myStarredR :: FetchCount -> Request 'RA (Vector Repo) -- | All the repos starred by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#alternative-response-with-star-creation-timestamps-1 myStarredAcceptStarR :: FetchCount -> Request 'RA (Vector RepoStarred) -- | Star a repo by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#star-a-repository starRepoR :: Name Owner -> Name Repo -> Request 'RW () -- | Unstar a repo by the authenticated user. See -- https://developer.github.com/v3/activity/starring/#unstar-a-repository unstarRepoR :: Name Owner -> Name Repo -> Request 'RW () -- | List watchers. See -- https://developer.github.com/v3/activity/watching/#list-watchers watchersForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) -- | List repositories being watched. See -- https://developer.github.com/v3/activity/watching/#list-repositories-being-watched reposWatchedByR :: Name Owner -> FetchCount -> Request k (Vector Repo) -- | List gists. See -- https://developer.github.com/v3/gists/#list-gists gistsR :: Name Owner -> FetchCount -> Request k (Vector Gist) -- | Query a single gist. See -- https://developer.github.com/v3/gists/#get-a-single-gist gistR :: Name Gist -> Request k Gist -- | Star a gist by the authenticated user. See -- https://developer.github.com/v3/gists/#star-a-gist starGistR :: Name Gist -> Request 'RW () -- | Unstar a gist by the authenticated user. See -- https://developer.github.com/v3/gists/#unstar-a-gist unstarGistR :: Name Gist -> Request 'RW () -- | Delete a gist by the authenticated user. See -- https://developer.github.com/v3/gists/#delete-a-gist deleteGistR :: Name Gist -> Request 'RW () -- | List comments on a gist. See -- https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist commentsOnR :: Name Gist -> FetchCount -> Request k (Vector GistComment) -- | Query a single comment. See -- https://developer.github.com/v3/gists/comments/#get-a-single-comment gistCommentR :: Id GistComment -> Request k GistComment -- | Query a blob. See -- https://developer.github.com/v3/git/blobs/#get-a-blob blobR :: Name Owner -> Name Repo -> Name Blob -> Request k Blob -- | Query a commit. See -- https://developer.github.com/v3/git/commits/#get-a-commit gitCommitR :: Name Owner -> Name Repo -> Name GitCommit -> Request k GitCommit -- | Query a reference. See -- https://developer.github.com/v3/git/refs/#get-a-reference referenceR :: Name Owner -> Name Repo -> Name GitReference -> Request k GitReference -- | Query all References. See -- https://developer.github.com/v3/git/refs/#get-all-references referencesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector GitReference) -- | Create a reference. See -- https://developer.github.com/v3/git/refs/#create-a-reference createReferenceR :: Name Owner -> Name Repo -> NewGitReference -> Request 'RW GitReference -- | Query a Tree. See -- https://developer.github.com/v3/git/trees/#get-a-tree treeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree -- | Query a Tree Recursively. See -- https://developer.github.com/v3/git/trees/#get-a-tree-recursively nestedTreeR :: Name Owner -> Name Repo -> Name Tree -> Request k Tree -- | See https://developer.github.com/v3/issues/#list-issues. currentUserIssuesR :: IssueMod -> FetchCount -> Request 'RA (Vector Issue) -- | See https://developer.github.com/v3/issues/#list-issues. organizationIssuesR :: Name Organization -> IssueMod -> FetchCount -> Request k (Vector Issue) -- | Query a single issue. See -- https://developer.github.com/v3/issues/#get-a-single-issue issueR :: Name Owner -> Name Repo -> Id Issue -> Request k Issue -- | List issues for a repository. See -- https://developer.github.com/v3/issues/#list-issues-for-a-repository issuesForRepoR :: Name Owner -> Name Repo -> IssueRepoMod -> FetchCount -> Request k (Vector Issue) -- | Create an issue. See -- https://developer.github.com/v3/issues/#create-an-issue createIssueR :: Name Owner -> Name Repo -> NewIssue -> Request 'RW Issue -- | Edit an issue. See -- https://developer.github.com/v3/issues/#edit-an-issue editIssueR :: Name Owner -> Name Repo -> Id Issue -> EditIssue -> Request 'RW Issue -- | Query a single comment. See -- https://developer.github.com/v3/issues/comments/#get-a-single-comment commentR :: Name Owner -> Name Repo -> Id Comment -> Request k IssueComment -- | List comments on an issue. See -- https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue commentsR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueComment) -- | Create a comment. See -- https://developer.github.com/v3/issues/comments/#create-a-comment createCommentR :: Name Owner -> Name Repo -> Id Issue -> Text -> Request 'RW Comment -- | Delete a comment. See -- https://developer.github.com/v3/issues/comments/#delete-a-comment deleteCommentR :: Name Owner -> Name Repo -> Id Comment -> Request 'RW () -- | Edit a comment. See -- https://developer.github.com/v3/issues/comments/#edit-a-comment editCommentR :: Name Owner -> Name Repo -> Id Comment -> Text -> Request 'RW Comment -- | List events for an issue. See -- https://developer.github.com/v3/issues/events/#list-events-for-an-issue eventsForIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueEvent) -- | List events for a repository. See -- https://developer.github.com/v3/issues/events/#list-events-for-a-repository eventsForRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueEvent) -- | Query a single event. See -- https://developer.github.com/v3/issues/events/#get-a-single-event eventR :: Name Owner -> Name Repo -> Id IssueEvent -> Request k IssueEvent -- | List all labels for this repository. See -- https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository labelsOnRepoR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector IssueLabel) -- | Query a single label. See -- https://developer.github.com/v3/issues/labels/#get-a-single-label labelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request k IssueLabel -- | Create a label. See -- https://developer.github.com/v3/issues/labels/#create-a-label createLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> String -> Request 'RW IssueLabel -- | Update a label. See -- https://developer.github.com/v3/issues/labels/#update-a-label updateLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> Name IssueLabel -> String -> Request 'RW IssueLabel -- | Delete a label. See -- https://developer.github.com/v3/issues/labels/#delete-a-label deleteLabelR :: Name Owner -> Name Repo -> Name IssueLabel -> Request 'RW () -- | List labels on an issue. See -- https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue labelsOnIssueR :: Name Owner -> Name Repo -> Id Issue -> FetchCount -> Request k (Vector IssueLabel) -- | Add lables to an issue. See -- https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue addLabelsToIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel) -- | Remove a label from an issue. See -- https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue removeLabelFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Name IssueLabel -> Request 'RW () -- | Replace all labels on an issue. See -- https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue -- -- Sending an empty list will remove all labels from the issue. replaceAllLabelsForIssueR :: Foldable f => Name Owner -> Name Repo -> Id Issue -> f (Name IssueLabel) -> Request 'RW (Vector IssueLabel) -- | Remove all labels from an issue. See -- https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue removeAllLabelsFromIssueR :: Name Owner -> Name Repo -> Id Issue -> Request 'RW () -- | Query labels for every issue in a milestone. See -- https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone labelsOnMilestoneR :: Name Owner -> Name Repo -> Id Milestone -> FetchCount -> Request k (Vector IssueLabel) -- | List milestones for a repository. See -- https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository milestonesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Milestone) -- | Query a single milestone. See -- https://developer.github.com/v3/issues/milestones/#get-a-single-milestone milestoneR :: Name Owner -> Name Repo -> Id Milestone -> Request k Milestone -- | List user organizations. See -- https://developer.github.com/v3/orgs/#list-user-organizations publicOrganizationsForR :: Name User -> FetchCount -> Request k (Vector SimpleOrganization) -- | Query an organization. See -- https://developer.github.com/v3/orgs/#get-an-organization publicOrganizationR :: Name Organization -> Request k Organization -- | All the users who are members of the specified organization. -- -- See https://developer.github.com/v3/orgs/members/#members-list membersOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleUser) -- | membersOfR with filters. -- -- See https://developer.github.com/v3/orgs/members/#members-list membersOfWithR :: Name Organization -> OrgMemberFilter -> OrgMemberRole -> FetchCount -> Request k (Vector SimpleUser) -- | Check if a user is a member of an organization. -- -- See -- https://developer.github.com/v3/orgs/members/#check-membership isMemberOfR :: Name User -> Name Organization -> Request k Bool -- | List pending organization invitations -- -- See -- https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations orgInvitationsR :: Name Organization -> FetchCount -> Request 'RA (Vector Invitation) -- | List teams. See -- https://developer.github.com/v3/orgs/teams/#list-teams teamsOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleTeam) -- | Query team. See -- https://developer.github.com/v3/orgs/teams/#get-team teamInfoForR :: Id Team -> Request k Team -- | Create team. See -- https://developer.github.com/v3/orgs/teams/#create-team createTeamForR :: Name Organization -> CreateTeam -> Request 'RW Team -- | Edit team. See -- https://developer.github.com/v3/orgs/teams/#edit-team editTeamR :: Id Team -> EditTeam -> Request 'RW Team -- | Delete team. -- -- See https://developer.github.com/v3/orgs/teams/#delete-team deleteTeamR :: Id Team -> Request 'RW () -- | List team members. -- -- See -- https://developer.github.com/v3/orgs/teams/#list-team-members listTeamMembersR :: Id Team -> TeamMemberRole -> FetchCount -> Request 'RA (Vector SimpleUser) -- | Query team repositories. See -- https://developer.github.com/v3/orgs/teams/#list-team-repos listTeamReposR :: Id Team -> FetchCount -> Request k (Vector Repo) -- | Query team membership. See -- <https://developer.github.com/v3/orgs/teams/#get-team-membership teamMembershipInfoForR :: Id Team -> Name Owner -> Request k TeamMembership -- | Add team membership. See -- https://developer.github.com/v3/orgs/teams/#add-team-membership addTeamMembershipForR :: Id Team -> Name Owner -> Role -> Request 'RW TeamMembership -- | Remove team membership. See -- https://developer.github.com/v3/orgs/teams/#remove-team-membership deleteTeamMembershipForR :: Id Team -> Name Owner -> Request 'RW () -- | List user teams. See -- https://developer.github.com/v3/orgs/teams/#list-user-teams listTeamsCurrentR :: FetchCount -> Request 'RA (Vector Team) -- | List pull requests. See -- https://developer.github.com/v3/pulls/#list-pull-requests pullRequestsForR :: Name Owner -> Name Repo -> PullRequestMod -> FetchCount -> Request k (Vector SimplePullRequest) -- | Query a single pull request. See -- https://developer.github.com/v3/pulls/#get-a-single-pull-request pullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Request k PullRequest -- | Create a pull request. See -- https://developer.github.com/v3/pulls/#create-a-pull-request createPullRequestR :: Name Owner -> Name Repo -> CreatePullRequest -> Request 'RW PullRequest -- | Update a pull request. See -- https://developer.github.com/v3/pulls/#update-a-pull-request updatePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> EditPullRequest -> Request 'RW PullRequest -- | List commits on a pull request. See -- https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request pullRequestCommitsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Commit) -- | List pull requests files. See -- https://developer.github.com/v3/pulls/#list-pull-requests-files pullRequestFilesR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector File) -- | Query if a pull request has been merged. See -- https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged isPullRequestMergedR :: Name Owner -> Name Repo -> Id PullRequest -> Request k Bool -- | Merge a pull request (Merge Button). -- https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button mergePullRequestR :: Name Owner -> Name Repo -> Id PullRequest -> Maybe Text -> Request 'RW MergeResult -- | List comments on a pull request. See -- https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request pullRequestCommentsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Comment) -- | Query a single comment. See -- https://developer.github.com/v3/pulls/comments/#get-a-single-comment pullRequestCommentR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment -- | List reviews for a pull request. See -- https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request pullRequestReviewsR :: Name Owner -> Name Repo -> Id PullRequest -> FetchCount -> Request k (Vector Review) -- | All reviews for a pull request given the repo owner, repo name and the -- pull request id. -- --
-- pullRequestReviews "thoughtbot" "paperclip" (Id 101) --pullRequestReviews :: Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review)) -- | All reviews for a pull request given the repo owner, repo name and the -- pull request id. With authentication. -- --
-- pullRequestReviews' (Just ("github-username", "github-password")) "thoughtbot" "paperclip" (Id 101)
--
pullRequestReviews' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> IO (Either Error (Vector Review))
-- | Query a single pull request review. see
-- https://developer.github.com/v3/pulls/reviews/#get-a-single-review
pullRequestReviewR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k Review
-- | A detailed review on a pull request given the repo owner, repo name,
-- pull request id and review id.
--
-- -- pullRequestReview "thoughtbot" "factory_girl" (Id 301819) (Id 332) --pullRequestReview :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review) -- | A detailed review on a pull request given the repo owner, repo name, -- pull request id and review id. With authentication. -- --
-- pullRequestReview' (Just ("github-username", "github-password"))
--
--
-- "thoughtbot" "factory_girl" (Id 301819) (Id 332)
pullRequestReview' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error Review)
-- | Query the comments for a single pull request review. see
-- https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review
pullRequestReviewCommentsR :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> Request k [ReviewComment]
-- | All comments for a review on a pull request given the repo owner, repo
-- name, pull request id and review id.
--
-- -- pullRequestReviewComments "thoughtbot" "factory_girl" (Id 301819) (Id 332) --pullRequestReviewCommentsIO :: Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment]) -- | All comments for a review on a pull request given the repo owner, repo -- name, pull request id and review id. With authentication. -- --
-- pullRequestReviewComments' (Just ("github-username", "github-password")) "thoughtbot" "factory_girl" (Id 301819) (Id 332)
--
pullRequestReviewCommentsIO' :: Maybe Auth -> Name Owner -> Name Repo -> Id PullRequest -> Id Review -> IO (Either Error [ReviewComment])
-- | List your repositories. See
-- https://developer.github.com/v3/repos/#list-your-repositories
currentUserReposR :: RepoPublicity -> FetchCount -> Request k (Vector Repo)
-- | List user repositories. See
-- https://developer.github.com/v3/repos/#list-user-repositories
userReposR :: Name Owner -> RepoPublicity -> FetchCount -> Request k (Vector Repo)
-- | List organization repositories. See
-- https://developer.github.com/v3/repos/#list-organization-repositories
organizationReposR :: Name Organization -> RepoPublicity -> FetchCount -> Request k (Vector Repo)
-- | Query single repository. See
-- https://developer.github.com/v3/repos/#get
repositoryR :: Name Owner -> Name Repo -> Request k Repo
-- | List contributors. See
-- https://developer.github.com/v3/repos/#list-contributors
contributorsR :: Name Owner -> Name Repo -> Bool -> FetchCount -> Request k (Vector Contributor)
-- | List languages. See
-- https://developer.github.com/v3/repos/#list-languages
languagesForR :: Name Owner -> Name Repo -> Request k Languages
-- | List tags. See https://developer.github.com/v3/repos/#list-tags
tagsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Tag)
-- | List branches. See
-- https://developer.github.com/v3/repos/#list-branches
branchesForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Branch)
-- | List collaborators. See
-- https://developer.github.com/v3/repos/collaborators/#list-collaborators
collaboratorsOnR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser)
-- | Check if a user is a collaborator. See
-- https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
isCollaboratorOnR :: Name Owner -> Name Repo -> Name User -> Request k Bool
-- | List commit comments for a repository. See
-- https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository
commentsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Comment)
-- | List comments for a single commit. See
-- https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit
commitCommentsForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request k (Vector Comment)
-- | Query a single commit comment. See
-- https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment
commitCommentForR :: Name Owner -> Name Repo -> Id Comment -> Request k Comment
-- | List commits on a repository. See
-- https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
commitsForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Commit)
-- | List commits on a repository. See
-- https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
commitsWithOptionsForR :: Name Owner -> Name Repo -> FetchCount -> [CommitQueryOption] -> Request k (Vector Commit)
-- | Query a single commit. See
-- https://developer.github.com/v3/repos/commits/#get-a-single-commit
commitR :: Name Owner -> Name Repo -> Name Commit -> Request k Commit
-- | Compare two commits. See
-- https://developer.github.com/v3/repos/commits/#compare-two-commits
diffR :: Name Owner -> Name Repo -> Name Commit -> Name Commit -> Request k Diff
-- | List deployments. See
-- https://developer.github.com/v3/repos/deployments/#list-deployments
deploymentsWithOptionsForR :: FromJSON a => Name Owner -> Name Repo -> FetchCount -> [DeploymentQueryOption] -> Request 'RA (Vector (Deployment a))
-- | Create a deployment. See
-- https://developer.github.com/v3/repos/deployments/#create-a-deployment
createDeploymentR :: (ToJSON a, FromJSON a) => Name Owner -> Name Repo -> CreateDeployment a -> Request 'RW (Deployment a)
-- | List deployment statuses. See
-- https://developer.github.com/v3/repos/deployments/#list-deployment-statuses
deploymentStatusesForR :: Name Owner -> Name Repo -> Id (Deployment a) -> FetchCount -> Request 'RA (Vector DeploymentStatus)
-- | Create a deployment status. See
-- https://developer.github.com/v3/repos/deployments/#list-deployment-statuses
createDeploymentStatusR :: Name Owner -> Name Repo -> Id (Deployment a) -> CreateDeploymentStatus -> Request 'RW DeploymentStatus
-- | List forks. See
-- https://developer.github.com/v3/repos/forks/#list-forks
forksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Repo)
-- | List hooks. See
-- https://developer.github.com/v3/repos/hooks/#list-hooks
webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook)
-- | Query single hook. See
-- https://developer.github.com/v3/repos/hooks/#get-single-hook
webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook
-- | Create a hook. See
-- https://developer.github.com/v3/repos/hooks/#create-a-hook
createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request 'RW RepoWebhook
-- | Edit a hook. See
-- https://developer.github.com/v3/repos/hooks/#edit-a-hook
editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request 'RW RepoWebhook
-- | Test a push hook. See
-- https://developer.github.com/v3/repos/hooks/#test-a-push-hook
testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request 'RW Bool
-- | Ping a hook. See
-- https://developer.github.com/v3/repos/hooks/#ping-a-hook
pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request 'RW Bool
-- | Delete a hook. See
-- https://developer.github.com/v3/repos/hooks/#delete-a-hook
deleteRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request 'RW ()
-- | List releases for a repository. See
-- https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository
releasesR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector Release)
-- | Get a single release. See
-- https://developer.github.com/v3/repos/releases/#get-a-single-release
releaseR :: Name Owner -> Name Repo -> Id Release -> Request k Release
-- | Get the latest release. See
-- https://developer.github.com/v3/repos/releases/#get-the-latest-release
latestReleaseR :: Name Owner -> Name Repo -> Request k Release
-- | Get a release by tag name See
-- https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name
releaseByTagNameR :: Name Owner -> Name Repo -> Text -> Request k Release
-- | Search repositories. See
-- https://developer.github.com/v3/search/#search-repositories
searchReposR :: Text -> Request k (SearchResult Repo)
-- | Search code. See
-- https://developer.github.com/v3/search/#search-code
searchCodeR :: Text -> Request k (SearchResult Code)
-- | Search issues. See
-- https://developer.github.com/v3/search/#search-issues
searchIssuesR :: Text -> Request k (SearchResult Issue)
-- | Query a single user. See
-- https://developer.github.com/v3/users/#get-a-single-user
userInfoForR :: Name User -> Request k User
-- | Query a single user or an organization. See
-- https://developer.github.com/v3/users/#get-a-single-user
ownerInfoForR :: Name Owner -> Request k Owner
-- | Query the authenticated user. See
-- https://developer.github.com/v3/users/#get-the-authenticated-user
userInfoCurrentR :: Request 'RA User
-- | List email addresses. See
-- https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user
currentUserEmailsR :: FetchCount -> Request 'RA (Vector Email)
-- | List public email addresses. See
-- https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user
currentUserPublicEmailsR :: FetchCount -> Request 'RA (Vector Email)
-- | List followers of a user. See
-- https://developer.github.com/v3/users/followers/#list-followers-of-a-user
usersFollowingR :: Name User -> FetchCount -> Request k (Vector SimpleUser)
-- | List users followed by another user. See
-- https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user
usersFollowedByR :: Name User -> FetchCount -> Request k (Vector SimpleUser)
-- | Create a new status See
-- https://developer.github.com/v3/repos/statuses/#create-a-status
createStatusR :: Name Owner -> Name Repo -> Name Commit -> NewStatus -> Request 'RW Status
-- | All statuses for a commit See
-- https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref
statusesForR :: Name Owner -> Name Repo -> Name Commit -> FetchCount -> Request 'RW (Vector Status)
-- | The combined status for a specific commit See
-- https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
statusForR :: Name Owner -> Name Repo -> Name Commit -> Request 'RW CombinedStatus
-- | Get your current rate limit status.
-- https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status
rateLimitR :: Request k RateLimit