Ejemplo n.º 1
0
    def __call__(self, issue, tester=None, message=None):

        if not tester:
            tester = issue_tracker_tool.get_tester(issue)
        latest_build = issue_tracker_tool.get_latest_build(issue)

        link = issue_tracker_tool.get_link(issue)
        summary = issue_tracker_tool.get_summary(issue)
        msg = message+'.' if message else ''
        user = '******'.format(user_db.get_user_for_service(tester, 'hipchat')) if tester else ''
        notification = '@here Yo! {link} ({summary}) is ready for testing! Please grab {latest_build}. {msg} {user}'\
            .format(link=link, summary=summary, latest_build=latest_build, msg=msg, user=user)
        im_tool.send_message('QA', notification)
Ejemplo n.º 2
0
    def __call__(self):
        print 'Getting issues, be patient...'
        issues = issue_tracker_tool.get_blocker_bugs_todo()

        for issue in issues:
            assignee = issue_tracker_tool.get_assignee(issue)
            hipchat_assignee = user_db.get_user_for_service(assignee, 'hipchat')
            link = issue_tracker_tool.get_link(issue)
            summary = issue_tracker_tool.get_summary(issue)
            print 'Notifying {assignee}: {summary} ({link})'.format(assignee=assignee, summary=summary, link=link)

            msg = 'A critical bug is assigned to you:\n{summary} ({link}) \nJust do it :)'.format(
                summary=summary, link=link)
            im_tool.send_message(hipchat_assignee, msg)