From c33e3226c5310a1aab5d898cc8d84a8a6302ab80 Mon Sep 17 00:00:00 2001 From: Smittyvb Date: Sat, 4 Nov 2017 08:04:39 -0400 Subject: [PATCH 1/3] Add "approve", and "disapprove" --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6850979..6d4fb7f 100644 --- a/index.js +++ b/index.js @@ -9,8 +9,8 @@ if (PROD) { } const THRESHOLD = 4; const { exec } = require('child_process'); -const UPVOTES = ["+1", "upvote", "i like it", "i really like it"]; -const DOWNVOTES = ["-1", "downvote", "i dislike it", "i really dislike it", "i hate it", "i really hate it"]; +const UPVOTES = ["+1", "upvote", "i like it", "i really like it", "approve"]; +const DOWNVOTES = ["-1", "downvote", "i dislike it", "i really dislike it", "i hate it", "i really hate it", "disapprove"]; var GitHub = require('github-api'); // basic auth From 4577f4df76eff1b09de8411c7736ed8803036c65 Mon Sep 17 00:00:00 2001 From: Smittyvb Date: Thu, 30 Nov 2017 16:25:13 -0500 Subject: [PATCH 2/3] Put "disapprove" back --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ac3e586..4e32729 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ if (PROD) { } const THRESHOLD = 4; const { exec } = require('child_process'); -const UPVOTES = ["+1", "upvote", "i like it", "i really like it", "👍"]; +const UPVOTES = ["+1", "upvote", "i like it", "i really like it", "👍", "disapprove"]; const DOWNVOTES = ["-1", "downvote", "i dislike it", "i really dislike it", "i hate it", "i really hate it", "👎", "approve"];var GitHub = require('github-api'); var GitHub = require('github-api'); From 6d782ae0f8b9f6611156ee371168cf7222ab049b Mon Sep 17 00:00:00 2001 From: Smittyvb Date: Sun, 3 Dec 2017 16:31:45 -0500 Subject: [PATCH 3/3] fix --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4e32729..be2747f 100644 --- a/index.js +++ b/index.js @@ -9,8 +9,8 @@ if (PROD) { } const THRESHOLD = 4; const { exec } = require('child_process'); -const UPVOTES = ["+1", "upvote", "i like it", "i really like it", "👍", "disapprove"]; -const DOWNVOTES = ["-1", "downvote", "i dislike it", "i really dislike it", "i hate it", "i really hate it", "👎", "approve"];var GitHub = require('github-api'); +const UPVOTES = ["+1", "upvote", "i like it", "i really like it", "👍", "approve"]; +const DOWNVOTES = ["-1", "downvote", "i dislike it", "i really dislike it", "i hate it", "i really hate it", "👎", "disapprove"]; var GitHub = require('github-api');