Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2021 08:46:23 +0200
From:      Michael Gmelin <freebsd@grem.de>
To:        "Julian H. Stacey" <jhs@berklix.com>, Chris <portmaster@bsdforge.com>
Cc:        Jan Beich <jbeich@freebsd.org>, freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: Is there a way to subscribe to the commit messages for only ports you maintain?
Message-ID:  <20210518084623.20410f11@bsd64.grem.de>
In-Reply-To: <202105180117.14I1H3LX072989@fire.js.berklix.net>
References:  <1bd70dfc3add5e8a65ec515cd155ed67@bsdforge.com> <202105180117.14I1H3LX072989@fire.js.berklix.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 18 May 2021 03:17:03 +0200
"Julian H. Stacey" <jhs@berklix.com> wrote:

> Chris wrote:
> > On 2021-05-17 16:30, Jan Beich wrote:  
> > > Chris <portmaster@bsdforge.com> writes:
> > >   
> > >> I'd like to subscribe to the commit messages
> > >> ( dev-commits-ports-all )
> > >> but only receive messages that affect me -- the
> > >> ports I currently maintain. Is it possible? Or
> > >> am I just dreaming? ;-)  
> > > 
> > > No clue but I use Herald rules for something similar.  
> > Thanks for the hints, Jan. :-)  
> 
> Herald ? Nothing from
>   https://www.freebsd.org/cgi/ports.cgi?query=herald&stype=all&sektion=all
> ...
>   https://en.wikipedia.org/wiki/Phabricator
> ...
>   https://cgit.freebsd.org/ports/tree/devel/phabricator/pkg-descr

Google "phabricator herald"[0] :)

It's part of phabricator and quite useful for automation, see
https://reviews.freebsd.org/herald/create/

In Chris' case, he would probably create one or more personal commit
rules:
https://reviews.freebsd.org/herald/edit/?content_type=commit&rule_type=personal

  Rule Name: Inform me about changes to my ports
  When **all of** these conditions are met:
  **Repository** **is any of** R11 FreeBSD ports repository
  **Affected Files** **matches regexp** @devel/myporta|sysutils/myportb@

  Take these actions **every time this rule matches:**
  **Send me an email**

  Click Save Rule

Mind the special regexp syntax.

I created a publicly visible rule as an example:
https://reviews.freebsd.org/H142

You can test your rules on the test console:
https://reviews.freebsd.org/herald/test/

(you would enter an existing commit id in there for testing, e.g.,
R11:305f148f482daf30dcf728039d03d019f88344eb)

Best
Michael

[0] Other ways to discover phabricator apps:
- Enter "herald" in phabricator (search box at the top)
- The phabricator application list
  https://reviews.freebsd.org/applications/

-- 
Michael Gmelin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210518084623.20410f11>