Skip to content

Commit ed47067

Browse files
committed
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/
1 parent b36c285 commit ed47067

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/public/js/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ function isEventInQueue(event){
9393
* To extend this function, simply add return true for events that should be filtered.
9494
*/
9595
function shouldEventBeIgnored(event){
96+
// This adds an easter egg to only play closed PRs
97+
if (!!ULTIMATE_DREAM_KILLER)
98+
return (event.type !== "PullRequestEvent" || event.action !== "closed");
99+
96100
return false;
97101
}
98102

0 commit comments

Comments
 (0)