def notify_of_publication(self): self.notify_reviewers_of_publication()self.notify_submitter( f'Your branch {self.short_desc()} was published to *`{self.target_ref}`* :green_apple:')
r = randrange(100) yay = [ ":soccer: ¡¡GOOOOOOOOOOOOAL!! :goal_net:", "Flawless victory!", "Excellent! Party on, folks!", "w00t!", ] if r < len(yay): self.notify_submitter(yay[r]) elif randrange(5) == 0: self.notify_submitter("Thank you for using Greenlight.")
I thought people would hate this.
They don't.