packages feed

github 0.13 → 0.13.1

raw patch · 2 files changed

+41/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Github.Repos.Subscribing: reposSubscribedToBy :: String -> IO (Either Error [Repo])
+ Github.Repos.Subscribing: reposSubscribedToBy' :: Maybe GithubAuth -> String -> IO (Either Error [Repo])
+ Github.Repos.Subscribing: subscribersFor :: String -> String -> IO (Either Error [GithubOwner])
+ Github.Repos.Subscribing: subscribersFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [GithubOwner])

Files

+ Github/Repos/Subscribing.hs view
@@ -0,0 +1,39 @@+-- | The repo subscribing API as described on+-- <http://developer.github.com/v3/repos/watching/>.+module Github.Repos.Subscribing (+ subscribersFor+,subscribersFor'+,reposSubscribedToBy+,reposSubscribedToBy'+,module Github.Data+) where++import Github.Data+import Github.Private++-- | The list of users that are subscribed to the specified Github repo.+--+-- > subscribersFor "thoughtbot" "paperclip"+subscribersFor :: String -> String -> IO (Either Error [GithubOwner])+subscribersFor = subscribersFor' Nothing++-- | The list of users that are subscribed to the specified Github repo.+-- | With authentication+--+-- > subscribersFor' (Just (GithubUser (user, password))) "thoughtbot" "paperclip"+subscribersFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [GithubOwner])+subscribersFor' auth userName reqRepoName =+  githubGet' auth ["repos", userName, reqRepoName, "subscribers"]++-- | All the public repos subscribed to by the specified user.+--+-- > reposSubscribedToBy "croaky"+reposSubscribedToBy :: String -> IO (Either Error [Repo])+reposSubscribedToBy = reposSubscribedToBy' Nothing++-- | All the public repos subscribed to by the specified user.+-- | With authentication+--+-- > reposSubscribedToBy' (Just (GithubUser (user, password))) "croaky"+reposSubscribedToBy' :: Maybe GithubAuth -> String -> IO (Either Error [Repo])+reposSubscribedToBy' auth userName = githubGet' auth ["users", userName, "subscriptions"]
github.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.13+Version:             0.13.1  -- A short (one-line) description of the package. Synopsis:            Access to the Github API, v3.@@ -145,6 +145,7 @@                    Github.Repos.Forks,                    Github.Repos.Watching,                    Github.Repos.Starring,+                   Github.Repos.Subscribing,                    Github.Repos.Webhooks                    Github.Repos.Webhooks.Validate,                    Github.Users,