mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Better github-hook
This commit is contained in:
parent
751319d0ef
commit
cecf397057
@ -21,7 +21,7 @@ def process_issue_event(response):
|
||||
state=issue['state'],
|
||||
assignees=[assignee['login'] for assignee in issue['assignees']],
|
||||
created_at=issue['created_at'],
|
||||
body=issue['body'],
|
||||
body=issue['body'] if issue['body'] else '',
|
||||
title=issue['title'],
|
||||
comments=issue['comments'],
|
||||
raw_json=json.dumps(response),)
|
||||
@ -42,7 +42,7 @@ def process_issue_comment_event(response):
|
||||
state=issue['state'],
|
||||
assignees=[assignee['login'] for assignee in issue['assignees']],
|
||||
created_at=issue['created_at'],
|
||||
body=issue['body'],
|
||||
body=issue['body'] if issue['body'] else '',
|
||||
title=issue['title'],
|
||||
comments=issue['comments'],
|
||||
comment_body=comment['body'],
|
||||
@ -64,7 +64,7 @@ def process_pull_request_event(response):
|
||||
author=pull_request['user']['login'],
|
||||
labels=[label['name'] for label in pull_request['labels']],
|
||||
state=pull_request['state'],
|
||||
body=pull_request['body'],
|
||||
body=pull_request['body'] if pull_request['body'] else '',
|
||||
title=pull_request['title'],
|
||||
created_at=pull_request['created_at'],
|
||||
assignees=[assignee['login'] for assignee in pull_request['assignees']],
|
||||
|
Loading…
Reference in New Issue
Block a user