module Github.Repos.Watching (
watchersFor
,watchersFor'
,reposWatchedBy
,reposWatchedBy'
,module Github.Data
) where
import Github.Data
import Github.Private
watchersFor :: String -> String -> IO (Either Error [GithubOwner])
watchersFor = watchersFor' Nothing
watchersFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [GithubOwner])
watchersFor' auth userName reqRepoName =
githubGet' auth ["repos", userName, reqRepoName, "watchers"]
reposWatchedBy :: String -> IO (Either Error [Repo])
reposWatchedBy = reposWatchedBy' Nothing
reposWatchedBy' :: Maybe GithubAuth -> String -> IO (Either Error [Repo])
reposWatchedBy' auth userName = githubGet' auth ["users", userName, "watched"]