Skip to content

Commit

Permalink
fix: use repo metadata to populate nodejs CODEOWNERS (#936)
Browse files Browse the repository at this point in the history
* fix: use repo metadata to populate nodejs CODEOWNERS

* chore: small formatting tweaks

Co-authored-by: Benjamin Coe <[email protected]>
  • Loading branch information
JustinBeckwith and bcoe authored Feb 3, 2021
1 parent 140ba24 commit 318e351
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions synthtool/gcp/templates/node_library/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 318e351

Please sign in to comment.