mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
github hooks: Display different actions for pull requests sanely
(imported from commit c6d43ccff2d72f61a1cc4d8d320db56edd074832)
This commit is contained in:
parent
4832a6a1fe
commit
81fe519b24
@ -926,9 +926,10 @@ def api_github_landing(request, user_profile, event=POST,
|
||||
|
||||
subject = "%s: pull request %d" % (repository['name'],
|
||||
pull_req['number'])
|
||||
content = ("New [pull request](%s) from %s:\n\n %s\n\n> %s"
|
||||
% (pull_req['html_url'],
|
||||
pull_req['user']['login'],
|
||||
content = ("Pull request from %s [%s](%s):\n\n %s\n\n> %s"
|
||||
% (pull_req['user']['login'],
|
||||
payload['action'],
|
||||
pull_req['html_url'],
|
||||
pull_req['title'],
|
||||
pull_req['body']))
|
||||
elif event == 'push':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user