From f63a777c07094af31c8841a3f50af8beca0aa369 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Wed, 13 Mar 2024 05:35:58 +0100 Subject: chore: add review commit template --- app/Main.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Main.hs') diff --git a/app/Main.hs b/app/Main.hs index a2fef0b..5a21787 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -343,7 +343,7 @@ import Options.Applicative ((<**>)) import Options.Applicative qualified as O import Patch qualified as A import Process (proc, sh_, textInput) -import Render (renderAsText, (<<<)) +import Render ((<<<)) import Render qualified as P import Review qualified as R import Settings (Settings (..), readSettings) @@ -592,8 +592,8 @@ main = do `catch` \(_ :: E.ProcessException) -> error "working directory not clean, aborting.." plan <- R.formulatePlan perCommit baseBranch featureBranch - patch <- A.Patch . concat <$> mapM R.reviewStep (NE.toList plan.steps) - T.writeFile "review.patch" (renderAsText patch) + R.commitReview plan . A.Patch . concat + =<< mapM R.reviewStep (NE.toList plan.steps) -- REVIEW Why is withReviewing in the Status module and not the Review -- module? -- -- cgit v1.2.3