Skip to content

Commit 01f669b

Browse files
authored
chore: monorepo script to use cloud-sdk-java-team (#11903)
I found the Monorepo Migration script uses the old team name. Let's use the new team. Here is the command to confirm the regular expression: ``` suztomo@suztomo:~$ echo "* @suztomo @googleapis/cloud-java-team-teamsync @googleapis/cloud-sdk-java-team" | sed -E 's/@googleapis\/(cloud-java-team-teamsync|yoshi-java|cloud-sdk-java-team)//g' * @suztomo ``` b/479542582
1 parent 21bfc98 commit 01f669b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monorepo-migration/migrate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if [ -z "$CODEOWNER" ]; then
9696
if [ -n "$CODEOWNERS_FILE" ]; then
9797
# Extract the line(s) starting with * (global owners)
9898
# Use grep to find the line, then sed to remove the '*' and standard team handle
99-
EXTRACTED_OWNERS=$(grep "^\* " "$CODEOWNERS_FILE" | sed 's/^\*[[:space:]]*//' | sed 's/@googleapis\/cloud-java-team-teamsync//g' | xargs)
99+
EXTRACTED_OWNERS=$(grep "^\* " "$CODEOWNERS_FILE" | sed 's/^\*[[:space:]]*//' | sed -E 's/@googleapis\/(cloud-java-team-teamsync|yoshi-java|cloud-sdk-java-team)//g' | xargs)
100100
if [ -n "$EXTRACTED_OWNERS" ]; then
101101
DEFAULT_CODEOWNER="$EXTRACTED_OWNERS"
102102
echo "Found default CODEOWNER: $DEFAULT_CODEOWNER"
@@ -196,7 +196,7 @@ COMMIT_COUNT=$((COMMIT_COUNT + 1))
196196
if [ -n "$CODEOWNER" ]; then
197197
echo "Updating .github/CODEOWNERS..."
198198
mkdir -p .github
199-
echo "/$SOURCE_REPO_NAME/ $CODEOWNER @googleapis/cloud-java-team-teamsync" >> .github/CODEOWNERS
199+
echo "/$SOURCE_REPO_NAME/ $CODEOWNER @googleapis/cloud-sdk-java-team" >> .github/CODEOWNERS
200200

201201
echo "Committing CODEOWNERS update..."
202202
git add .github/CODEOWNERS

0 commit comments

Comments
 (0)