Permalink
Browse files

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] https://blog.jessfraz.com/post/the-art-of-closing/
  • Loading branch information...
1 parent b36c285 commit ed47067f5e56ab70d65fa31f72bf2dbc513f8f56 @mcornella mcornella committed Oct 5, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 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;
}

0 comments on commit ed47067

Please sign in to comment.