From 17c89c0709169de2d51b0719a063a6d50539ebd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Theys?= <seb@odoo.com>
Date: Mon, 11 May 2020 10:26:23 +0000
Subject: [PATCH] [IMP] .github: slightly adapt CODEOWNERS (rd-discuss
 rd-images rd-sm)

`**` rules for `py` files in `mail` and `sms` were not working as expected: they
only matched files directly inside the folder, without any depth. Indeed
`gitignore` syntax specifies that a slash must follow the double asterisks.
Doc: https://git-scm.com/docs/gitignore#_pattern_format

Added `rd-sm` to the various mail test folders, and removed `rd-discuss` from
`test_mass_mailing` specifically.

Specified which files are to be observed in `tools` for `rd-images`, as it would
otherwise generate too much noise.

closes odoo/odoo#51019

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
---
 .github/CODEOWNERS | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 73bc201a3e3a..f03f750fce9a 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -50,7 +50,7 @@
 /addons/im_support/models/ir_http.py @odoo/rd-discuss @odoo/rd-website
 
 /addons/mail/ @odoo/rd-discuss
-/addons/mail/**.py @odoo/rd-discuss @odoo/rd-sm
+/addons/mail/**/*.py @odoo/rd-discuss @odoo/rd-sm
 /addons/mail/models/ir_http.py @odoo/rd-discuss @odoo/rd-sm @odoo/rd-website
 
 /addons/mail_bot/ @odoo/rd-discuss
@@ -62,14 +62,14 @@
 /addons/portal/models/ir_http.py @odoo/rd-website
 
 /addons/sms/ @odoo/rd-discuss
-/addons/sms/**.py @odoo/rd-discuss @odoo/rd-sm
+/addons/sms/**/*.py @odoo/rd-discuss @odoo/rd-sm
 
 /addons/snailmail/ @odoo/rd-discuss
 /addons/snailmail/models/ir_qweb_fields.py @odoo/rd-discuss @odoo/rd-website
 
-/addons/test_mail/ @odoo/rd-discuss
-/addons/test_mail_full/ @odoo/rd-discuss
-/addons/test_mass_mailing/ @odoo/rd-discuss
+/addons/test_mail/ @odoo/rd-discuss @odoo/rd-sm
+/addons/test_mail_full/ @odoo/rd-discuss @odoo/rd-sm
+/addons/test_mass_mailing/ @odoo/rd-sm
 /addons/test_website/ @odoo/rd-website
 
 /addons/web/controllers/main.py @odoo/rd-images @odoo/rd-security
@@ -99,7 +99,9 @@
 /odoo/osv/ @odoo/rd-security
 
 # safe_eval, mimetypes, float_utils, mail sanitizer, image utils, ..
-/odoo/tools/ @odoo/rd-images @odoo/rd-security
+/odoo/tools/ @odoo/rd-security
+/odoo/tools/image.py @odoo/rd-images @odoo/rd-security
+/odoo/tools/mimetypes.py @odoo/rd-images @odoo/rd-security
 
 /odoo/http.py @odoo/rd-security @odoo/rd-website
 /odoo/sql_db.py @odoo/rd-security
-- 
GitLab