Skip to content

Commit da89e53

Browse files
authored
ci: update template so GAPIC_AUTO repos do not require special approvers for Java code (#1494)
1 parent a4a3599 commit da89e53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

synthtool/gcp/templates/java_library/.github/CODEOWNERS

+3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
{% if 'codeowner_team' in metadata['repo'] %}
77
# The {{ metadata['repo']['codeowner_team'] }} is the default owner for changes in this repo
88
* @googleapis/yoshi-java {{ metadata['repo']['codeowner_team'] }}
9+
{% if 'library_type' in metadata['repo'] and metadata['repo']['library_type'] != 'GAPIC_AUTO' %}
10+
# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner
911
**/*.java {{ metadata['repo']['codeowner_team'] }}
12+
{% endif %}
1013
{% else %}
1114
* @googleapis/yoshi-java
1215
{% endif %}

synthtool/gcp/templates/java_library/.github/sync-repo-settings.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ permissionRules:
5858
permission: admin
5959
- team: yoshi-java
6060
permission: push
61+
- team: java-samples-reviewers
62+
permission: push
63+

0 commit comments

Comments
 (0)