Skip to content

Commit 05fa927

Browse files
authored
add an easter egg (GH-20)
1 parent b72583c commit 05fa927

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

backport/backport_pr.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import gidgethub.routing
22

3+
import random
4+
35
from . import tasks
46
from . import util
57

8+
EASTER_EGG = "I'm not a witch! I'm not a witch!"
69

710
router = gidgethub.routing.Router()
811

@@ -27,6 +30,9 @@ async def backport_pr(event, gh, *args, **kwargs):
2730
if label['name'].startswith("needs backport to")]
2831

2932
if branches:
33+
easter_egg = ""
34+
if random.random() < 0.1:
35+
easter_egg = random.choice(EASTER_EGG)
3036
thanks_to = ""
3137
if created_by == merged_by:
3238
thanks_to = f"Thanks @{created_by} for the PR 🌮🎉."
@@ -35,6 +41,7 @@ async def backport_pr(event, gh, *args, **kwargs):
3541
message = f"""\
3642
{thanks_to}. I'm working now to backport this PR to: {', '.join(branches)}.
3743
🐍🍒⛏🤖
44+
{easter_egg}
3845
"""
3946
util.comment_on_pr(issue_number, message)
4047

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy