From 22d9516434dd11d6ed06a89080aa267492fa17fe Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Thu, 13 Jul 2017 10:02:30 -0700
Subject: [PATCH] Use ** for OWNERS files for trees

---
 .github/CODEOWNERS         | 34 +++++++++++++++++-----------------
 tools/mkowners/mkowners.py |  4 ++--
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index ea0a57f158..996e5f619c 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1,22 +1,22 @@
 # Auto-generated by the tools/mkowners/mkowners.py tool
 # Uses OWNERS files in different modules throughout the
 # repository as the source of truth for module ownership.
-* @a11r @nicolasnoble @ctiller
-bazel/* @nicolasnoble @dgquintas @ctiller
-cmake/* @jtattermusch @a11r @nicolasnoble @ctiller
+** @a11r @nicolasnoble @ctiller
+bazel/** @nicolasnoble @dgquintas @ctiller
+cmake/** @jtattermusch @a11r @nicolasnoble @ctiller
 doc/PROTOCOL-HTTP2.md @ejona86 @a11r @nicolasnoble @ctiller
 doc/interop-test-descriptions.md @ejona86 @a11r @nicolasnoble @ctiller
-etc/* @jboeuf @nicolasnoble @a11r @ctiller
-include/* @ctiller @markdroth @dgquintas @a11r @nicolasnoble
-src/core/* @ctiller @markdroth @dgquintas @a11r @nicolasnoble
-src/cpp/* @ctiller @markdroth @dgquintas @a11r @nicolasnoble
-src/csharp/* @jtattermusch @apolcyn @a11r @nicolasnoble @ctiller
-src/node/* @murgatroid99 @a11r @nicolasnoble @ctiller
-src/objective-c/* @muxi @makdharma @a11r @nicolasnoble @ctiller
-src/php/* @stanley-cheung @murgatroid99 @a11r @nicolasnoble @ctiller
-src/python/* @nathanielmanistaatgoogle @kpayson64 @a11r @nicolasnoble @ctiller
-src/ruby/* @apolcyn @murgatroid99 @a11r @nicolasnoble @ctiller
-tools/* @matt-kwong @jtattermusch @nicolasnoble @a11r @ctiller
-tools/codegen/core/* @ctiller @dgquintas @markdroth
-tools/dockerfile/* @matt-kwong @jtattermusch @nicolasnoble @a11r @ctiller
-tools/run_tests/* @matt-kwong @jtattermusch @nicolasnoble @a11r @ctiller
+etc/** @jboeuf @nicolasnoble @a11r @ctiller
+include/** @ctiller @markdroth @dgquintas @a11r @nicolasnoble
+src/core/** @ctiller @markdroth @dgquintas @a11r @nicolasnoble
+src/cpp/** @ctiller @markdroth @dgquintas @a11r @nicolasnoble
+src/csharp/** @jtattermusch @apolcyn @a11r @nicolasnoble @ctiller
+src/node/** @murgatroid99 @a11r @nicolasnoble @ctiller
+src/objective-c/** @muxi @makdharma @a11r @nicolasnoble @ctiller
+src/php/** @stanley-cheung @murgatroid99 @a11r @nicolasnoble @ctiller
+src/python/** @nathanielmanistaatgoogle @kpayson64 @a11r @nicolasnoble @ctiller
+src/ruby/** @apolcyn @murgatroid99 @a11r @nicolasnoble @ctiller
+tools/** @matt-kwong @jtattermusch @nicolasnoble @a11r @ctiller
+tools/codegen/core/** @ctiller @dgquintas @markdroth
+tools/dockerfile/** @matt-kwong @jtattermusch @nicolasnoble @a11r @ctiller
+tools/run_tests/** @matt-kwong @jtattermusch @nicolasnoble @a11r @ctiller
diff --git a/tools/mkowners/mkowners.py b/tools/mkowners/mkowners.py
index 81f26b1164..d4a3b56a85 100755
--- a/tools/mkowners/mkowners.py
+++ b/tools/mkowners/mkowners.py
@@ -141,7 +141,7 @@ def add_parent_to_globs(parent, globs):
   for owners in owners_data:
     if owners.dir == parent:
       for directive in owners.directives:
-        for dglob in directive.globs or ['*']:
+        for dglob in directive.globs or ['**']:
           for gglob, glob in globs.items():
             if glob_intersect(dglob, gglob):
               if directive.who not in glob:
@@ -163,7 +163,7 @@ with open(args.out, 'w') as out:
       continue
     globs = collections.OrderedDict()
     for directive in head.directives:
-      for glob in directive.globs or ['*']:
+      for glob in directive.globs or ['**']:
         if glob not in globs:
           globs[glob] = []
         globs[glob].append(directive.who)
-- 
GitLab