Skip to content

Commit 8b65daa

Browse files
authored
chore(java_templates): add default CODEOWNERS files for samples reviews (#588)
This should automatically request reviews from the googleapis/java-samples-reviewers team for changes to samples Java code. If you provide a `codeowner_team` in the `.repo-metadata.json` configuration file, it also adds an entry for any Java code. Note that later entries in the file take precedence over earlier ones so samples Java code will only require reviews by the samples team.
1 parent 36627a0 commit 8b65daa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • synthtool/gcp/templates/java_library/.github
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Code owners file.
2+
# This file controls who is tagged for review for any given pull request.
3+
4+
# For syntax help see:
5+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
6+
{% if 'codeowner_team' in metadata['repo'] %}
7+
# The {{ metadata['repo']['codeowner_team'] }} is the default owner for changes in this repo
8+
**/*.java {{ metadata['repo']['codeowner_team'] }}
9+
{% endif %}
10+
# The java-samples-reviewers team is the default owner for samples changes
11+
samples/**/*.java @googleapis/java-samples-reviewers

0 commit comments

Comments
 (0)