summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2015-02-27 15:59:04 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2015-02-27 16:18:23 -0500
commita1ed1a7fc69053667ddf1e82e38a8e993a0ca31d (patch)
treed36a1df0f335dba7ac15647240b7e929257d3bda
parentda982ceccd4c5598c29ce64cde3b4885a597c7bc (diff)
downloadgit-bz-a1ed1a7fc69053667ddf1e82e38a8e993a0ca31d.tar.gz
Add basic attachment flags for bugzilla.mozilla.org
Add the attachment flags that git-bz-moz supports for bugzilla.mozilla.org; there are more attachment flags available, but listing only the most important ones reduces noise. https://bugzilla.gnome.org/show_bug.cgi?id=602406
-rwxr-xr-xgit-bz18
1 files changed, 17 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index 6bac664..bfeee7a 100755
--- a/git-bz
+++ b/git-bz
@@ -62,10 +62,26 @@ default-priority = Normal
default-platform =
"""
+# Only the attachment flags supported by the git-bz-moz fork
+# of git-bz are listed here - listing all flags would be quite
+# a bit of noise. Other flags can be configured with
+# 'git config', but should be added here if they are useful.
CONFIG['bugzilla.mozilla.org'] = \
"""
https = true
default-priority = ---
+attachment-flag.feedback.id = 607
+attachment-flag.feedback.requesteeable = true
+attachment-flag.feedback.multiplicable = true
+attachment-flag.review.id = 4
+attachment-flag.review.requesteeable = true
+attachment-flag.review.multiplicable = true
+attachment-flag.superreview.id = 5
+attachment-flag.superreview.requesteeable = true
+attachment-flag.superreview.multiplicable = false
+attachment-flag.ui-review.id = 203
+attachment-flag.ui-review.requesteeable = true
+attachment-flag.ui-review.multiplicable = true
"""
CONFIG['bugzilla.redhat.com'] = \
@@ -1836,7 +1852,7 @@ def edit_attachment_comment(bug, initial_description, initial_body):
config = get_config(get_tracker())
attachment_flags = config.get('attachment-flag', {})
- flag_names = attachment_flags.keys()
+ flag_names = sorted(attachment_flags.keys())
if flag_names:
template.write("""# Uncomment to set flags for the attachment; flags can be set to +,- , or ?.\n""")
template.write("""# When setting a flag to ? you can optionally specify individuals as, for example: