From 93e721aac5ae4adbe57c03f9400374e7bcfe9427 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Wed, 2 Aug 2017 19:23:07 -0400 Subject: [PATCH] Added check to make sure Github issues / PRs are not low numbers. --- triggers/github.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/triggers/github.js b/triggers/github.js index a090768..36dc6f7 100644 --- a/triggers/github.js +++ b/triggers/github.js @@ -21,6 +21,12 @@ exports.execute = function(message) { continue; } + // We do not want to automatically match old issues / PRs. + // This usually happens when someone messes up pining another person or + // in general conversation. + // ex: You're #1! + if (match[1] <= 2000) { return; } + let url = `https://github.com/citra-emu/citra/pull/${match[1]}`; request(url, function (error, response, body) { if (!error && response.statusCode == 200) {