github-0.23: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Endpoints.Activity.Watching

Description

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

Synopsis

Documentation

watchersFor :: Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) Source #

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

watchersFor "thoughtbot" "paperclip"

watchersFor' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) Source #

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

watchersFor' (Just $ BasicAuth "github-username" "github-password") "thoughtbot" "paperclip"

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

All the public repos watched by the specified user.

reposWatchedBy "croaky"

reposWatchedBy' :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Repo)) Source #

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

reposWatchedBy' (Just $ BasicAuth "github-username" "github-password") "croaky"