Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions synthtool/gcp/templates/java_library/.github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
{% if 'codeowner_team' in metadata['repo'] %}
# The {{ metadata['repo']['codeowner_team'] }} is the default owner for changes in this repo
* @googleapis/yoshi-java {{ metadata['repo']['codeowner_team'] }}
{% if 'library_type' in metadata['repo'] and metadata['repo']['library_type'] != 'GAPIC_AUTO' %}
Copy link
Copy Markdown

@iennae iennae Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest adding a comment of something like

# for handwritten libraries keep {{ metadata['repo']['codeowner_team'] }} as owner

Copy link
Copy Markdown
Member Author

@suztomo suztomo Jul 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in the next line.

# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner
**/*.java {{ metadata['repo']['codeowner_team'] }}
{% endif %}
{% else %}
* @googleapis/yoshi-java
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ permissionRules:
permission: admin
- team: yoshi-java
permission: push
- team: java-samples-reviewers
permission: push
Comment on lines +61 to +62
Copy link
Copy Markdown
Member Author

@suztomo suztomo Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: @kolea2 @averikitsch This should give "Write" role to the team.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.