From ed47067f5e56ab70d65fa31f72bf2dbc513f8f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 5 Oct 2016 03:45:17 +0200 Subject: [PATCH] Add easter egg to only play closed PRs To use this, just set `ULTIMATE_DREAM_KILLER` in your DevTools console. The explanation for this easter egg is can be found in this article[1]. Just look for `Ultimate Dream Killers`. Some people just like to see other people's dreams crushed :-1: [1] https://blog.jessfraz.com/post/the-art-of-closing/ --- app/public/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/public/js/main.js b/app/public/js/main.js index 90a8dc5..f16d0aa 100644 --- a/app/public/js/main.js +++ b/app/public/js/main.js @@ -93,6 +93,10 @@ function isEventInQueue(event){ * To extend this function, simply add return true for events that should be filtered. */ function shouldEventBeIgnored(event){ + // This adds an easter egg to only play closed PRs + if (!!ULTIMATE_DREAM_KILLER) + return (event.type !== "PullRequestEvent" || event.action !== "closed"); + return false; }