From 803953865c225a5493bbb8830cae5bdd650aeeba Mon Sep 17 00:00:00 2001 From: loddit Date: Fri, 18 Aug 2017 14:40:08 +0800 Subject: [PATCH] fix: recover index increase logic --- legilimens.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/legilimens.js b/legilimens.js index a4e08ca..5320d77 100644 --- a/legilimens.js +++ b/legilimens.js @@ -68,6 +68,7 @@ function renderPullRequestsReport(pullRequests) { let index = 1; pullRequests.forEach(function(pullRequest) { output += `\n- [ ] ${index}. #${pullRequest.number} ${pullRequest.title} by @${pullRequest.user.login}`; + index++; }); } else { output += 'No new pull requests be merged.'; diff --git a/package.json b/package.json index 0c7c4cd..a85fc9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "legilimens", - "version": "0.1.1", + "version": "0.1.2", "repository": { "type": "git", "url": "https://github.com/bearyinnovative/legilimens.git"