github-0.14.0: Access to the Github API, v3.

Safe HaskellNone
LanguageHaskell2010

Github.Activity.Watching

Description

The repo watching API as described on https://developer.github.com/v3/activity/watching/.

Synopsis

Documentation

watchersFor :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector GithubOwner)) Source

The list of users that are watching the specified Github repo.

watchersFor "thoughtbot" "paperclip"

watchersFor' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector GithubOwner)) Source

The list of users that are watching the specified Github repo. With authentication

watchersFor' (Just (GithubUser (user, password))) "thoughtbot" "paperclip"

reposWatchedBy :: Name GithubOwner -> IO (Either Error (Vector Repo)) Source

All the public repos watched by the specified user.

reposWatchedBy "croaky"

reposWatchedBy' :: Maybe GithubAuth -> Name GithubOwner -> IO (Either Error (Vector Repo)) Source

All the public repos watched by the specified user. With authentication

reposWatchedBy' (Just (GithubUser (user, password))) "croaky"