Skip to content

Instantly share code, notes, and snippets.

@inesusvet
Created February 9, 2019 18:19
Show Gist options
  • Save inesusvet/b4b2f64835b646f7f5d7724243945b05 to your computer and use it in GitHub Desktop.
Save inesusvet/b4b2f64835b646f7f5d7724243945b05 to your computer and use it in GitHub Desktop.
Simple script for a PR Tsar duties - I want to distribute incoming PRs evenly in the team. Cats are the power here
#!/usr/bin/env python
import random
NAME_TO_GITHUB = {
'Adam': 'ajbeairsto',
'Ihor': 'ikalnytskyi',
'Ivan': 'inesusvet',
'Maddie': 'madmott',
'Roman P': 'malor',
'Roman K': 'romankolpak',
'Yehor': 'nimnull',
'Valentin': 'devalentino',
'Taras': 'tnekdatarobot',
'Stas': 'nott',
}
# Cat of the day
PICTURE_URL = 'https://i.imgur.com/qKrYCzb.jpg' # Friday
PICTURE_URL = 'https://i.imgur.com/gluQG7l.jpg' # Monday
PICTURE_URL = 'https://i.imgur.com/gwnBvzz.jpg' # Tuesday
PICTURE_URL = 'https://i.imgur.com/6ek2hXy.jpg' # ~Wednesday~ Thursday
PICTURE_URL = 'https://i.imgur.com/waAS8KE.jpg' # Friday, Monday, Tuesday
PICTURE_URL = 'https://i.imgur.com/7sfmBoN.jpg' # Tuesday
def main():
choice = random.choice(NAME_TO_GITHUB.values())
msg = u'''
As a PR Tsar for this sprint, I want this PR to be reviewed by @{username}
Please let us know sooner if you think it's a wrong choice
![Respect it]({url})
'''.strip()
return msg.format(
username=choice,
url=PICTURE_URL,
)
if __name__ == '__main__':
print main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment