From a1ed1a7fc69053667ddf1e82e38a8e993a0ca31d Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 27 Feb 2015 15:59:04 -0500 Subject: 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 --- git-bz | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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: -- cgit