[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: restricting close PR

From: McFarland, Ken
Subject: RE: restricting close PR
Date: Wed, 16 Feb 2005 13:18:28 -0500

Without making perl change in I don't think thing there is support for this today.   However, you could do something like this in your
dbconfig file.  It's not pretty, but would probably work....but you'll need to keep an updated list of people not allowed to close a PR in here  (not
a great solution)  I don't to this exactly, but do change other fields based on certain state changes.  I didn't try this, but tweaked mine a bit for
this example.... I think this would work for you to block say user kmcfarla from closing a PR.
field "State" {
    builtin-name "state"
    description "The current state of the PR"
    enumerated-in-file {
        path "states"
        fields { "state" "type" "description" }
        key "state"
        default "open"
    on-change {
        # Add Audit-Trail entries when this field changes.
        # Require that a reason be supplied when this field is edited.

    # Change State back to its original setting for the following users aren't allowed to Close a PR
    on-change "(oldpr:State[type]==\"open\") & (Originator==\"kmcfarla\")" {
                set-field "State" {

-----Original Message-----
From: address@hidden [mailto:address@hiddenOn Behalf Of Jim Prowak
Sent: Wednesday, February 16, 2005 9:17 AM
To: address@hidden
Subject: restricting close PR

With gnats-web, is there a way to restrict the ability to close PRs to a certain user?


Jim Prowak                                                           Voice(585) 899-4306  
National Semiconductor                                      Fax (585) 899-4320    
1000 Pittsford-Victor Rd.
Pittsford, N.Y. 14534    

reply via email to

[Prev in Thread] Current Thread [Next in Thread]