Skip to content
Open
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
4 changes: 2 additions & 2 deletions monorepo-migration/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ if [ -z "$CODEOWNER" ]; then
if [ -n "$CODEOWNERS_FILE" ]; then
# Extract the line(s) starting with * (global owners)
# Use grep to find the line, then sed to remove the '*' and standard team handle
EXTRACTED_OWNERS=$(grep "^\* " "$CODEOWNERS_FILE" | sed 's/^\*[[:space:]]*//' | sed 's/@googleapis\/cloud-java-team-teamsync//g' | xargs)
EXTRACTED_OWNERS=$(grep "^\* " "$CODEOWNERS_FILE" | sed 's/^\*[[:space:]]*//' | sed -E 's/@googleapis\/(cloud-java-team-teamsync|yoshi-java|cloud-sdk-java-team)//g' | xargs)
if [ -n "$EXTRACTED_OWNERS" ]; then
DEFAULT_CODEOWNER="$EXTRACTED_OWNERS"
echo "Found default CODEOWNER: $DEFAULT_CODEOWNER"
Expand Down Expand Up @@ -196,7 +196,7 @@ COMMIT_COUNT=$((COMMIT_COUNT + 1))
if [ -n "$CODEOWNER" ]; then
echo "Updating .github/CODEOWNERS..."
mkdir -p .github
echo "/$SOURCE_REPO_NAME/ $CODEOWNER @googleapis/cloud-java-team-teamsync" >> .github/CODEOWNERS
echo "/$SOURCE_REPO_NAME/ $CODEOWNER @googleapis/cloud-sdk-java-team" >> .github/CODEOWNERS

echo "Committing CODEOWNERS update..."
git add .github/CODEOWNERS
Expand Down
Loading