Skip to content

Commit

Permalink
activity: Fix bug in PR reference tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
synicalsyntax committed Aug 7, 2018
1 parent 54fee12 commit 26f38f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/events/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.run = async function() {
};

async function scrapePulls(pulls) {
const references = new Map();
const referenceList = new Map();
const ims = this.cfg.activity.check.reminder * 86400000;
const iterator = pulls[Symbol.iterator]();

Expand Down Expand Up @@ -58,7 +58,7 @@ async function scrapePulls(pulls) {
refs.forEach(ref => {
const ignore = this.cfg.activity.pulls.needsReview.ignore;
if (needsReview && ignore) time = Date.now();
references.set(`${repoName}/${ref}`, time);
referenceList.set(`${repoName}/${ref}`, time);
});
}
}
Expand All @@ -67,7 +67,7 @@ async function scrapePulls(pulls) {
filter: "all", labels: this.cfg.activity.issues.inProgress
});

await scrapeInactiveIssues.apply(this, [references, issues]);
await scrapeInactiveIssues.apply(this, [referenceList, issues]);
}

async function checkInactivePull(pull) {
Expand Down

0 comments on commit 26f38f6

Please sign in to comment.