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