Skip to content

Commit 2910eb1

Browse files
Support empty body text in a few more places
1 parent 2c82dc1 commit 2910eb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

homu/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ def synchronize(repo_label, repo_cfg, logger, gh, states, repos, db, mergeable_q
16051605

16061606
state = PullReqState(pull.number, pull.head.sha, status, db, repo_label, mergeable_que, gh, repo_cfg['owner'], repo_cfg['name'], repo_cfg.get('labels', {}), repos, repo_cfg.get('test-on-fork')) # noqa
16071607
state.title = pull.title
1608-
state.body = suppress_pings(pull.body)
1608+
state.body = suppress_pings(pull.body or "")
16091609
state.body = suppress_ignore_block(state.body)
16101610
state.head_ref = pull.head.repo[0] + ':' + pull.head.ref
16111611
state.base_ref = pull.base.ref

homu/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def rollup(user_gh, state, repo_label, repo_cfg, repo):
318318
failures.append(state.num)
319319
continue
320320

321-
state.body = suppress_pings(state.body)
321+
state.body = suppress_pings(state.body or "")
322322
state.body = suppress_ignore_block(state.body)
323323

324324
merge_msg = 'Rollup merge of #{} - {}, r={}\n\n{}\n\n{}'.format(

0 commit comments

Comments
 (0)