Skip to content

Commit

Permalink
Strider-CD#17 Added sanity check to parseCommitData call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Varkel committed May 6, 2016
1 parent a157201 commit 7286f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function parsePullRequestData(data) {

function parseCommitData(data) {

var commit = data.commits[data.commits.length - 1];
var commit = data.commits[data.commits.length - 1] || {};
var author = parseAuthor(commit.raw_author);

if (commit.message.indexOf('[skip ci]') > -1) {
Expand Down

0 comments on commit 7286f9d

Please sign in to comment.