Skip to content

Commit

Permalink
Add a browser- prefix to the label name.
Browse files Browse the repository at this point in the history
Also, if there's a space in the label name, join it on a dash.
  • Loading branch information
Mike Taylor committed Jul 29, 2015
1 parent 2134a63 commit 233b12a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Expand Up @@ -36,7 +36,9 @@ def parse_label(body, issue_number):
# what groups(n)[0] is in the future.
# right now, match_list.groups(0) should look like:
# ('browser', 'firefox')
set_label(match_list.groups(0)[1].lower(), issue_number)
browser = match_list.groups(0)[1].lower()
dash_browser = '-'.join(browser.split())
set_label('browser-' + dash_browser, issue_number)


def set_label(label, issue_number):
Expand Down

0 comments on commit 233b12a

Please sign in to comment.