On Wed, May 11, 2016 at 7:29 PM, Warren Young <w...@etr-usa.com> wrote:

> On May 11, 2016, at 3:57 PM, Marko Käning <sec001+fos...@posteo.net>
> wrote:
> >
> > An auto-closing of tickets if the commit comment contains stg like
> "closed [TICKETID]", "closes [TICKETID]", "fixed [TICKETID]", "fixes
> [TICKETID]", would be nice.
>
> Agreed.  The only problem is the perennial one: Someone has to do it.  Are
> you “someone?”  :)


For what it's worth, it might be possible to do this with a TH1 commit hook
script. TH1 has a http command, so you can build an HTTP post request to
trigger a web service. If that service is a Fossil server serving your
repository, might be possible to update tickets in the repository.

I've never used Fossil's TH1 hooks, so I don't know much about them.

TH1 also has a query command that runs an SQL expression. However, in
Fossil, updating a ticket involves creating Ticket Change artifacts, not
just changing things in an SQL table, so this command could only be used to
read ticket info as SQL updates do not also create change artifacts.

(Basically, Fossil's use of SQL is (1) an index engine to find repository
artifacts, (2) a meta data store, and (3) a cache of a subset of the
information stored in artifacts. (The artifacts are stored as blobs in the
blob table.))
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to