Skip to content

Commit 1372f48

Browse files
Alexander Vassbotn Røyne-Helgesenalexcanessa
authored andcommitted
Use correct param and re-use old attribute to avoid breaking changes (#142)
* Change url to html_url. Fixes #140 * Use correct param, and assign old attribute, so this does not break
1 parent 3f08a6e commit 1372f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/Gren.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,11 @@ class Gren {
426426
*
427427
* @return {string}
428428
*/
429-
_templateCommits({ sha, commit: { author: { name }, message, html_url } }) {
429+
_templateCommits({ sha, html_url, commit: { author: { name }, message } }) {
430430
return generate({
431431
sha,
432432
message: message.split('\n')[0],
433-
html_url,
433+
url: html_url,
434434
author: name
435435
}, this.options.template.commit);
436436
}

0 commit comments

Comments
 (0)