From 318e351e26ba65b2b3cfa3f61b3b64e3540c3525 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 3 Feb 2021 15:09:55 -0800 Subject: [PATCH] fix: use repo metadata to populate nodejs CODEOWNERS (#936) * fix: use repo metadata to populate nodejs CODEOWNERS * chore: small formatting tweaks Co-authored-by: Benjamin Coe --- .../gcp/templates/node_library/.github/CODEOWNERS | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 synthtool/gcp/templates/node_library/.github/CODEOWNERS diff --git a/synthtool/gcp/templates/node_library/.github/CODEOWNERS b/synthtool/gcp/templates/node_library/.github/CODEOWNERS new file mode 100644 index 000000000..3d82ad7fe --- /dev/null +++ b/synthtool/gcp/templates/node_library/.github/CODEOWNERS @@ -0,0 +1,13 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. +# +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax + + +# The yoshi-nodejs team is the default owner for nodejs repositories. +{%- if 'codeowner_team' in metadata['repo'] %} +* @googleapis/yoshi-nodejs {{ metadata['repo']['codeowner_team'] }} +{%- else %} +* @googleapis/yoshi-nodejs +{%- endif %}