Skip to content
Browse files

Added an option to omit priority labels.

  • Loading branch information...
1 parent d38aea8 commit 06ed3b22f6787f2131d13690cb68b9ab5587528b @dnschnur dnschnur committed Sep 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 migrateissues.py
View
3 migrateissues.py
@@ -117,6 +117,8 @@ def add_issue_to_github(issue):
if issue.label:
output(", adding labels")
for label in issue.label:
+ if label.text.startswith("Priority-") and options.omit_priority:
+ continue
label_text = LABEL_MAPPING.get(label.text, label.text)
if not options.dry_run:
github_issue.add_to_labels(github_label(label_text))
@@ -239,6 +241,7 @@ def get_existing_github_issues():
parser.add_option("-d", "--dry-run", action = "store_true", dest = "dry_run", help = "Don't modify anything on Github", default = False)
parser.add_option("-a", "--assign-owner", action = "store_true", dest = "assign_owner", help = "Assign owned tickets to the Github user", default = False)
+ parser.add_option("-p", "--omit-priority", action = "store_true", dest = "omit_priority", help = "Don't migrate priority labels", default = False)
options, args = parser.parse_args()

0 comments on commit 06ed3b2

Please sign in to comment.
Something went wrong with that request. Please try again.