4 changed files with 40 additions and 14 deletions
@ -1,27 +1,20 @@ |
|||
{-# LANGUAGE ImplicitParams #-} |
|||
{-# LANGUAGE OverloadedStrings #-} |
|||
|
|||
module Main where |
|||
|
|||
import PullWatch.PullWatch |
|||
( monitorPRs |
|||
, getLatestPRs |
|||
, getLatest |
|||
, prID |
|||
) |
|||
|
|||
import PullWatch.Environment (getPAT) |
|||
import qualified Data.Default as Default (def) |
|||
|
|||
import Data.Default (def) |
|||
import Control.Applicative |
|||
|
|||
main :: IO () |
|||
main = do |
|||
doMonitor :: RepoArgs -> IO () |
|||
doMonitor (RepoArgs owner repo) = do |
|||
-- Set up authentication token from environment |
|||
pat <- getPAT |
|||
let ?pat = pat |
|||
|
|||
--prIDs <- getLatestPRs [("racket", "racket")] |
|||
--print prIDs |
|||
monitorPRs def [("weskerfoot", "PullWatch")] |
|||
monitorPRs Default.def [(owner, repo)] |
|||
|
|||
return () |
|||
|
|||
main = parseRepoArgs doMonitor |
|||
|
Loading…
Reference in new issue