[PATCH] dim: move Daniel from pull request mail Cc: to To:
Daniel Vetter
daniel at ffwll.ch
Fri Jan 11 12:44:33 UTC 2019
On Fri, Jan 11, 2019 at 12:50:38PM +0200, Jani Nikula wrote:
> On Fri, 11 Jan 2019, Daniel Vetter <daniel at ffwll.ch> wrote:
> > On Fri, Jan 11, 2019 at 11:26:11AM +0200, Jani Nikula wrote:
> >> The pull requests are more than just FYI for Daniel nowadays.
> >>
> >> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> >> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> >
> > Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
>
> Thanks, pushed.
>
> > Still wondering whether we could look up the corresponding MAINTAINERS
> > entry for the upstream git repo we picked and automate this a bit more ...
>
> We can get all the relevant names and lists (*) with:
>
> $ get_maintainer --no-rolestats --pattern-depth 1 -f drivers/gpu/drm -f drivers/gpu/drm/i915
>
> The question is, do we care about the To/Cc distinction in the pull
> request mails? drm vs. drivers is easy, drm vs. drm-misc is not, unless
> we fabricate some things in MAINTAINERS that are specific to each.
What I had in mind was:
1. convert the remote to an url
2. search maintainers for that git url
3. for all the entries that match, grab the M: fields
Do this both for the target of the url (goes into To:) and the branch you
send the pull request for (goes into Cc:). Additionally we could Cc: all
the L: entries too.
This would even work for sending drm-next/-fixes pulls to Linus, since
he's got an entry for his tree in MAINTAINERS (including L: lkml). Plus it
would automatically dtrt thing for topic pull requests to other trees.
The only reason I have't done this yet is that it'd be real typing, since
get_maintainers.pl can search by git repo ...
-Daniel
>
> BR,
> Jani.
>
>
> (*) except dim-tools, but I think we can drop that anyway
>
> > -Daniel
> >
> >> ---
> >> dim | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/dim b/dim
> >> index dafbf946e0b7..76afd2fbec6f 100755
> >> --- a/dim
> >> +++ b/dim
> >> @@ -81,7 +81,6 @@ maintainer_tools_https=https://gitlab.freedesktop.org/drm/maintainer-tools.git
> >> # Recipients for all dim based pull requests.
> >> # Add To: lines to the end, Cc: lines in the beginning with -c.
> >> dim_pull_request_recipients=(
> >> - -c "Daniel Vetter <daniel.vetter at ffwll.ch>"
> >> -c "Jani Nikula <jani.nikula at linux.intel.com>"
> >> -c "Joonas Lahtinen <joonas.lahtinen at linux.intel.com>"
> >> -c "Rodrigo Vivi <rodrigo.vivi at intel.com>"
> >> @@ -92,6 +91,7 @@ dim_pull_request_recipients=(
> >> -c "intel-gfx at lists.freedesktop.org"
> >> -c "dim-tools at lists.freedesktop.org"
> >> "Dave Airlie <airlied at gmail.com>"
> >> + "Daniel Vetter <daniel.vetter at ffwll.ch>"
> >> )
> >>
> >> # integration configuration
> >> --
> >> 2.20.1
> >>
>
> --
> Jani Nikula, Intel Open Source Graphics Center
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the dim-tools
mailing list