fbrnch-0.9.1: src/Cmd/Reviews.hs
module Cmd.Reviews (
reviewsCmd,
findReview)
where
import Bugzilla
import Common
import ListReviews
-- FIXME add --state or --new, --modified, etc
-- FIXME display time of last update
reviewsCmd :: Bool -> Bool -> Bool -> Maybe String -> ReviewStatus -> IO ()
reviewsCmd short allstates assignee muser status = do
listReviewsFull assignee muser allstates status >>=
mapM_ (putReviewBug short) . sortBugsByStatus . sortBugsByID
when short $ putStrLn ""
findReview :: String -> IO ()
findReview pkg = do
(bugs, _) <- bugIdsSession $ pkgReviews pkg
mapM_ putBugId bugs