# HG changeset patch # User Peter Sanchez # Date 1576619855 28800 # Tue Dec 17 13:57:35 2019 -0800 # Branch py3-dj2 # Node ID 23ffcf1308bd56c9db903f3f6213c73bea4d2693 # Parent 1ea4a365fe9c964496a4a21fade43af912d973a5 Adding support for optional commit_url in payload. diff --git a/trello_broker/utils.py b/trello_broker/utils.py --- a/trello_broker/utils.py +++ b/trello_broker/utils.py @@ -44,7 +44,10 @@ 'author_full': commit['raw_author'], 'changeset': commit['node'], 'changeset_full': commit['raw_node'], - 'commit_url': urljoin(base_commit_url, commit['raw_node']), + 'commit_url': commit.get( + 'commit_url', + urljoin(base_commit_url, commit['raw_node']), + ), 'commit_message': msg, }