Skip to content

Commit

Permalink
Add easter egg to only play closed PRs
Browse files Browse the repository at this point in the history
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
mcornella committed Oct 5, 2016
1 parent b36c285 commit ed47067
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ed47067

Please sign in to comment.