public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* restricting close PR
@ 2005-02-16 14:46 Jim Prowak
  0 siblings, 0 replies; 4+ messages in thread
From: Jim Prowak @ 2005-02-16 14:46 UTC (permalink / raw)
  To: help-gnats


[-- Attachment #1.1: Type: text/plain, Size: 470 bytes --]

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

thanks,

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

[-- Attachment #1.2: Type: text/html, Size: 928 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: restricting close PR
@ 2005-02-16 18:40 McFarland, Ken
  2005-02-19  5:16 ` Mel Hatzis
  0 siblings, 1 reply; 4+ messages in thread
From: McFarland, Ken @ 2005-02-16 18:40 UTC (permalink / raw)
  To: Jim Prowak, help-gnats


[-- Attachment #1.1: Type: text/plain, Size: 2188 bytes --]

Jim,
 
Without making perl change in gnatsweb.pl 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.
 
fwiw
 
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"
    }
    textsearch
 
    on-change {
        # Add Audit-Trail entries when this field changes.
        add-audit-trail
        # Require that a reason be supplied when this field is edited.
        require-change-reason
    }
 

    #
    # 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" {
                        oldpr:State
                }
    }
}


-----Original Message-----
From: help-gnats-bounces+kmcfarland=starentnetworks.com@gnu.org [mailto:help-gnats-bounces+kmcfarland=starentnetworks.com@gnu.org]On Behalf Of Jim Prowak
Sent: Wednesday, February 16, 2005 9:17 AM
To: help-gnats@gnu.org
Subject: restricting close PR



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

thanks,

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



[-- Attachment #1.2: Type: text/html, Size: 5741 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread
* restricting close PR
@ 2005-02-17 21:32 Jim Prowak
  0 siblings, 0 replies; 4+ messages in thread
From: Jim Prowak @ 2005-02-17 21:32 UTC (permalink / raw)
  To: help-gnats


[-- Attachment #1.1: Type: text/plain, Size: 469 bytes --]

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

thanks,

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

[-- Attachment #1.2: Type: text/html, Size: 923 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
Help-gnats mailing list
Help-gnats@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnats

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-19  5:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-16 14:46 restricting close PR Jim Prowak
2005-02-16 18:40 McFarland, Ken
2005-02-19  5:16 ` Mel Hatzis
2005-02-17 21:32 Jim Prowak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).