Skip to content

Commit

Permalink
Use correct param and re-use old attribute to avoid breaking changes (#…
Browse files Browse the repository at this point in the history
…142)

* Change url to html_url. Fixes #140

* Use correct param, and assign old attribute, so this does not break
  • Loading branch information
Alexander Vassbotn Røyne-Helgesen authored and alexcanessa committed Mar 6, 2018
1 parent 3f08a6e commit 1372f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/Gren.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ class Gren {
*
* @return {string}
*/
_templateCommits({ sha, commit: { author: { name }, message, html_url } }) {
_templateCommits({ sha, html_url, commit: { author: { name }, message } }) {
return generate({
sha,
message: message.split('\n')[0],
html_url,
url: html_url,
author: name
}, this.options.template.commit);
}
Expand Down

0 comments on commit 1372f48

Please sign in to comment.