help-gnats
[Top][All Lists]
Advanced

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

Re: Automatically close initial PR?


From: Chad Walstrom
Subject: Re: Automatically close initial PR?
Date: Tue, 18 Jul 2006 22:54:47 -0500
User-agent: Mutt/1.5.9i

On Tue, Jul 18, 2006 at 01:03:37PM -0700, Edward Jaffe wrote:
> Can anyone think of a way (other than adding State as an initial
> field) to automatically close an initial PR based on the contents of
> the data supplied? In particular, I would like to interrogate "Fix"
> and, if supplied, close the PR as it comes in. I would also like
> this to be done via the dbconfig file without any changes to GNATS
> itself.

I don't believe it could be done in the initial PR submission unless,
as you noted, you allowed State as an initial field.  GNATS knows
on-change and default values, but you don't want to set the default
value to Closed either.

The best way to deal with this is to create an automated bot that
receives a copy of all new submissions.  You could probably make use
of gnatsperl by Mike Hoolehan as a network library for Perl.

GNATS itself needs to have a more expressive way of customization.  I
don't know how far we want to take dbconfig in that direction.
Instead, I would like to see Guile or other embedded scripting
language added to the fray (i.e. Python/Perl).

-- 
Chad Walstrom <address@hidden>           http://www.wookimus.net/
           assert(expired(knowledge)); /* core dump */





reply via email to

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