Skip to content

Commit

Permalink
Merge pull request #190 from klensy/no-failures
Browse files Browse the repository at this point in the history
rollups: don't print 'Failed merges:' if there no failed merges
  • Loading branch information
jyn514 committed May 18, 2023
2 parents 982fa68 + 35590d4 commit 0d97917
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions homu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,11 @@ def rollup(user_gh, state, repo_label, repo_cfg, repo):
body = 'Successful merges:\n\n'
for x in successes:
body += ' - #{} ({})\n'.format(x.num, x.title)
body += '\nFailed merges:\n\n'
for x in failures:
body += ' - #{} ({})\n'.format(x.num, x.title)

if len(failures) != 0:
body += '\nFailed merges:\n\n'
for x in failures:
body += ' - #{} ({})\n'.format(x.num, x.title)
body += '\nr? @ghost\n@rustbot modify labels: rollup'

# Set web.base_url in cfg to enable
Expand Down

0 comments on commit 0d97917

Please sign in to comment.