Skip to content

Commit 0c96c02

Browse files
author
Phil Opaola
committed
Revert commit_id to commitid in changes_logs.html and github.py to maintain functionality with alternative VCSes
1 parent 6aacee9 commit 0c96c02

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

codespeed/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def retrieve_revision(commit_id, username, project, revision=None):
7676
'body': "", # TODO: pretty-print diffs
7777
'author': commit_json['author']['name'],
7878
'author_email': commit_json['author']['email'],
79-
'commit_id': commit_json['sha'],
79+
'commitid': commit_json['sha'],
8080
'short_commit_id': commit_json['sha'][0:7],
8181
'parents': commit_json['parents']}
8282

codespeed/templates/codespeed/changes_logs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
{% endif %}
1313
commited
1414
{% if log.commit_browse_url %}
15-
<a class="commit-id" title="{{ log.commit_id }}" href="{{ log.commit_browse_url }}">{{ log.short_commit_id|default:log.commit_id }}</a>:
15+
<a class="commit-id" title="{{ log.commitid }}" href="{{ log.commit_browse_url }}">{{ log.short_commit_id|default:log.commitid }}</a>:
1616
{% else %}
17-
<abbr class="commit-id" title="{{ log.commit_id }}">{{ log.short_commit_id|default:log.commit_id }}</abbr>:
17+
<abbr class="commit-id" title="{{ log.commitid }}">{{ log.short_commit_id|default:log.commitid }}</abbr>:
1818
{% endif %}
1919

2020
<pre class="message">{{ log.message|linebreaksbr|urlize }}</pre>

0 commit comments

Comments
 (0)