mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
bitbucket: Include the branch name in the topic
(imported from commit b9074dc509818b4db0c4fa10f6200935c4738b64)
This commit is contained in:
@@ -538,8 +538,9 @@ def api_bitbucket_webhook(request, user_profile, payload=REQ(converter=json_to_d
|
|||||||
% (payload['user'],
|
% (payload['user'],
|
||||||
payload['canon_url'] + repository['absolute_url']))
|
payload['canon_url'] + repository['absolute_url']))
|
||||||
else:
|
else:
|
||||||
content = build_commit_list_content(commits, payload['commits'][-1]['branch'],
|
branch = payload['commits'][-1]['branch']
|
||||||
None, payload['user'])
|
content = build_commit_list_content(commits, branch, None, payload['user'])
|
||||||
|
subject += '/%s' % (branch,)
|
||||||
|
|
||||||
subject = elide_subject(subject)
|
subject = elide_subject(subject)
|
||||||
check_send_message(user_profile, get_client("API"), "stream", [stream], subject, content)
|
check_send_message(user_profile, get_client("API"), "stream", [stream], subject, content)
|
||||||
|
|||||||
Reference in New Issue
Block a user