Make it easier to add/remove people as needed. Add Joonas, Rodrigo and
Sean as new recipients for pull requests. Replace Daniel with Joonas and
Rodrigo as test request recipients.

Perhaps we'll want to make the list branch specific in the future, but
get the low hanging fruit first.

Cc: Daniel Vetter <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Sean Paul <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
---
 dim | 41 +++++++++++++++++++++++------------------
 1 file changed, 23 insertions(+), 18 deletions(-)

diff --git a/dim b/dim
index 96baffde5524..b177b9b28242 100755
--- a/dim
+++ b/dim
@@ -83,13 +83,27 @@ drm_tip_ssh=ssh://git.freedesktop.org/git/drm-tip
 drm_upstream_git=git://people.freedesktop.org/~airlied/linux
 
linux_upstream_git=git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
 
-# email aliases
-addr_drm_maintainer="Dave Airlie <[email protected]>"
-addr_intel_gfx_maintainer1="Daniel Vetter <[email protected]>"
-addr_intel_gfx_maintainer2="Jani Nikula <[email protected]>"
-addr_intel_gfx="[email protected]"
-addr_dri_devel="[email protected]"
-addr_intel_qa="\"Jari Tahvanainen\" <[email protected]>"
+# Recipients for all dim based pull requests.
+# Add To: lines to the end, Cc: lines in the beginning with -c.
+pull_request_recipients=(
+       -c "Daniel Vetter <[email protected]>"
+       -c "Jani Nikula <[email protected]>"
+       -c "Joonas Lahtinen <[email protected]>"
+       -c "Rodrigo Vivi <[email protected]>"
+       -c "Sean Paul <[email protected]>"
+       -c "[email protected]"
+       -c "[email protected]"
+       "Dave Airlie <[email protected]>"
+)
+
+# Recipients for drm-intel-testing updates.
+test_request_recipients=(
+       -c "Jani Nikula <[email protected]>"
+       -c "Joonas Lahtinen <[email protected]>"
+       -c "Rodrigo Vivi <[email protected]>"
+       -c "[email protected]"
+       "Jari Tahvanainen <[email protected]>"
+)
 
 # integration configuration
 integration_config=nightly.conf
@@ -1557,11 +1571,7 @@ function dim_update_next_continue
        prep_pull_mail_signature >> $req_file
 
        $DRY $DIM_MUA -s "Updated drm-intel-testing" \
-            -i $req_file \
-            -c "$addr_intel_gfx" \
-            -c "$addr_intel_gfx_maintainer1" \
-            -c "$addr_intel_gfx_maintainer2" \
-            "$addr_intel_qa"
+            -i $req_file "${test_request_recipients[@]}"
 }
 
 function dim_tag_next
@@ -1652,12 +1662,7 @@ function dim_pull_request
 
        git request-pull $upstream $git_url $tag >> $req_file
        $DRY $DIM_MUA -s "[PULL] $branch" \
-               -i $req_file \
-               -c "$addr_intel_gfx" \
-               -c "$addr_dri_devel" \
-               -c "$addr_intel_gfx_maintainer1" \
-               -c "$addr_intel_gfx_maintainer2" \
-               "$addr_drm_maintainer"
+            -i $req_file "${pull_request_recipients[@]}"
 }
 
 function dim_pull_request_next
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to