diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-13 04:36:20 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-14 07:07:45 +0100 |
commit | e7450765081e31341496a3f8ac91bda119b55f5a (patch) | |
tree | f6f96650506cb6035a3b330b1f232306fe4275fc /app/Status.hs | |
parent | a2f401ca9839b6041b7d94f77de4530f168b12ad (diff) |
chore: drop `--granularity` for `--per-commit`
Diffstat (limited to 'app/Status.hs')
-rw-r--r-- | app/Status.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Status.hs b/app/Status.hs index 1a0fd4c..13effa4 100644 --- a/app/Status.hs +++ b/app/Status.hs @@ -76,19 +76,19 @@ type BranchName = T.Text withReviewing :: (forall a. Render a => a -> IO ()) -> - R.Granularity -> + Bool -> BranchName -> BranchName -> FilePath -> ReviewingT IO a -> IO a -withReviewing putDoc granularity baseBranch featureBranch fp action = do +withReviewing putDoc perCommit baseBranch featureBranch fp action = do (plan, changes) <- (Just <$> readStatus fp) `catch` (\(_ :: SomeException) -> pure Nothing) >>= \case Nothing -> do - plan <- R.formulatePlan granularity baseBranch featureBranch + plan <- R.formulatePlan perCommit baseBranch featureBranch let changes = [] writeStatus fp $ Reviewing plan changes pure (plan, changes) |