예제 #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))
예제 #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))
예제 #3
0
def maintainers(issue):
    return jsonify(maintainers=get_all_maintainers(int(issue)))
예제 #4
0
def maintainers(issue):
    return jsonify(maintainers=get_all_maintainers(int(issue)))