Skip to content

Commit 54da76a

Browse files
authored
chore: generate CODEOWNERS from templates (#348)
CODEOWNERS is now managed by templates and we can configure the default team in the .repo-metadata.json file.
1 parent dd58025 commit 54da76a

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Code owners file.
22
# This file controls who is tagged for review for any given pull request.
3-
#
3+
44
# For syntax help see:
55
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
66

7+
# The @googleapis/storage-dpe is the default owner for changes in this repo
8+
**/*.java @googleapis/storage-dpe
79

8-
# The storage-dpe team is the default owner for anything not
9-
# explicitly taken by someone else.
10-
* @googleapis/storage-dpe
10+
# The java-samples-reviewers team is the default owner for samples changes
11+
samples/**/*.java @googleapis/java-samples-reviewers

.repo-metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"repo": "googleapis/java-storage",
1111
"repo_short": "java-storage",
1212
"distribution_name": "com.google.cloud:google-cloud-storage",
13+
"codeowner_team": "@googleapis/storage-dpe",
1314
"api_id": "storage.googleapis.com",
1415
"requires_billing": true
1516
}

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/java-storage.git",
7-
"sha": "7ebd39e01d8b37e4f85c2e18b61e39a3a7ba96e4"
6+
"remote": "git@github.com:googleapis/java-storage.git",
7+
"sha": "ad5182fbe1c5c75ace607e97ca4d2e328811e494"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "5b48b0716a36ca069db3038da7e205c87a22ed19"
14+
"sha": "8b65daa222d193b689279162781baf0aa1f0ffd2"
1515
}
1616
}
1717
]

0 commit comments

Comments
 (0)