Don't allow people to create new PRs with a 'wish' class.

Requested by:	Sheldon Hearn <sheldonh@uunet.co.za>
This commit is contained in:
Steve Price 2000-05-24 14:40:25 +00:00
parent 9f85bc03de
commit 8e47c536c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60882
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ at runtime.")
(defconst send-pr::fields
(` (("Category" send-pr::set-categories
(, (or (gnats::get-config "DEFAULT_CATEGORY") nil)) enum)
("Class" (("sw-bug") ("doc-bug") ("change-request") ("wish"))
("Class" (("sw-bug") ("doc-bug") ("change-request"))
(, (or (gnats::get-config "DEFAULT_CONFIDENTIAL") 0)) enum)
("Confidential" (("yes") ("no"))
(, (or (gnats::get-config "DEFAULT_CONFIDENTIAL") 1)) enum)

View File

@ -240,7 +240,7 @@ CONFIDENTIAL_C='<[ yes | no ] (one line)>'
SYNOPSIS_C='<Synopsis of the problem (one line)>'
SEVERITY_C='<[ non-critical | serious | critical ] (one line)>'
PRIORITY_C='<[ low | medium | high ] (one line)>'
CLASS_C='<[ sw-bug | doc-bug | change-request | wish ] (one line)>'
CLASS_C='<[ sw-bug | doc-bug | change-request ] (one line)>'
RELEASE_C='<Release number or tag (one line)>'
ENVIRONMENT_C='<Relevant environment information (multiple lines)>'
DESCRIPTION_C='<Precise description of the problem (multiple lines)>'
@ -450,7 +450,7 @@ while [ -z "$REQUEST_ID" ]; do
PATTERN=">Class:"
CLASS=`eval sed -n -e "\"/$PATTERN/$SED_CMD\"" $TEMP`
case "$CLASS" in
""|sw-bug|doc-bug|change-request|wish) CNT=`expr $CNT + 1` ;;
""|sw-bug|doc-bug|change-request) CNT=`expr $CNT + 1` ;;
*) echo "$COMMAND: \`$CLASS' is not a valid value for \`Class'."
esac