Skip to content

Commit

Permalink
fix output when harmony has no PRs to list for contribute command
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Jul 5, 2024
1 parent cf28f1d commit 6c2d5a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Commands.idr
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,10 @@ contribute @{config} args = do
listSome : Nat -> List PullRequest -> List PullRequest -> Promise' ()
listSome skip requestedOfMe others = do
goListSome True (drop skip requestedOfMe)
putStrLn ""
renderIO $ annotate bold "Your review not requested:"
goListSome False (take 5 others)
when (not $ null others) $ do
putStrLn ""
renderIO $ annotate bold "Your review not requested:"
goListSome False (take 5 others)

||| Print the GitHub URI for the current branch when the user
||| executes `harmony branch`.
Expand Down

0 comments on commit 6c2d5a7

Please sign in to comment.