mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] mergebot: log repr of comments (might show oddities)
This commit is contained in:
parent
ba1a8ee089
commit
560c6e6b16
@ -266,7 +266,7 @@ def handle_comment(env, event):
|
|||||||
issue = event['issue']['number']
|
issue = event['issue']['number']
|
||||||
author = event['comment']['user']['login']
|
author = event['comment']['user']['login']
|
||||||
comment = event['comment']['body']
|
comment = event['comment']['body']
|
||||||
_logger.info('comment[%s]: %s %s#%s "%s"', event['action'], author, repo, issue, comment)
|
_logger.info('comment[%s]: %s %s#%s %r', event['action'], author, repo, issue, comment)
|
||||||
if event['action'] != 'created':
|
if event['action'] != 'created':
|
||||||
return "Ignored: action (%r) is not 'created'" % event['action']
|
return "Ignored: action (%r) is not 'created'" % event['action']
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ def handle_review(env, event):
|
|||||||
author = event['review']['user']['login']
|
author = event['review']['user']['login']
|
||||||
comment = event['review']['body'] or ''
|
comment = event['review']['body'] or ''
|
||||||
|
|
||||||
_logger.info('review[%s]: %s %s#%s "%s"', event['action'], author, repo, pr, comment)
|
_logger.info('review[%s]: %s %s#%s %r', event['action'], author, repo, pr, comment)
|
||||||
if event['action'] != 'submitted':
|
if event['action'] != 'submitted':
|
||||||
return "Ignored: action (%r) is not 'submitted'" % event['action']
|
return "Ignored: action (%r) is not 'submitted'" % event['action']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user