Skip to content

Commit

Permalink
Merge pull request #138 from mattpolzin/fix-empty-contribute-list
Browse files Browse the repository at this point in the history
Fix contribute output for empty results
  • Loading branch information
mattpolzin authored Jul 5, 2024
2 parents 3963290 + 6c2d5a7 commit 77f2aac
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 77f2aac

Please sign in to comment.