Ejemplo n.º 1
0
    def event_fired(self, content):
        if content.get('action') != "opened":
            # we really don't care about events that are related to pull requests being opened.
            return

        num = content.get('pull_request').get('number')
        maintainers = get_all_maintainers(num)
        assign_issue(num, 'gordn')
        create_comment(num, 'Hey {0}, can you please take a look at this issue?', ','.join(maintainers))
Ejemplo n.º 2
0
    def event_fired(self, content):
        if content.get('action') != "opened":
            # we really don't care about events that are related to pull requests being opened.
            return

        num = content.get('pull_request').get('number')
        maintainers = get_all_maintainers(num)
        assign_issue(num, 'gordn')
        create_comment(num,
                       'Hey {0}, can you please take a look at this issue?',
                       ','.join(maintainers))
Ejemplo n.º 3
0
def maintainers(issue):
    return jsonify(maintainers=get_all_maintainers(int(issue)))
Ejemplo n.º 4
0
def maintainers(issue):
    return jsonify(maintainers=get_all_maintainers(int(issue)))