mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot_merge: like PRs, review bodies are null if left empty
This commit is contained in:
parent
fa94b269de
commit
8a55407f87
@ -251,11 +251,12 @@ def handle_review(env, event):
|
||||
firstline = ''
|
||||
state = event['review']['state'].lower()
|
||||
if state == 'approved':
|
||||
firstline = pr.repository.project_id.github_prefix + ' r+\n'
|
||||
firstline = pr.repository.project_id.github_prefix + ' r+'
|
||||
elif state == 'request_changes':
|
||||
firstline = pr.repository.project_id.github_prefix + ' r-\n'
|
||||
firstline = pr.repository.project_id.github_prefix + ' r-'
|
||||
|
||||
return pr._parse_commands(partner, firstline + event['review']['body'])
|
||||
body = event['review']['body']
|
||||
return pr._parse_commands(partner, firstline + ('\n' + body) if body else '')
|
||||
|
||||
def handle_ping(env, event):
|
||||
print("Got ping! {}".format(event['zen']))
|
||||
|
Loading…
Reference in New Issue
Block a user