Skip to content

Commit f1894ab

Browse files
committed
fix CODEOWNERS detection
1 parent 93c958e commit f1894ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monorepo-migration/migrate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ -z "$CODEOWNER" ]; then
9595
if [ -n "$CODEOWNERS_FILE" ]; then
9696
# Extract the line(s) starting with * (global owners)
9797
# Use grep to find the line, then sed to remove the '*' and standard team handle
98-
EXTRACTED_OWNERS=$(grep "^\*" "$CODEOWNERS_FILE" | sed 's/^\*[[:space:]]*//' | sed 's/@googleapis\/cloud-java-team-teamsync//g' | xargs)
98+
EXTRACTED_OWNERS=$(grep "^\* " "$CODEOWNERS_FILE" | sed 's/^\*[[:space:]]*//' | sed 's/@googleapis\/cloud-java-team-teamsync//g' | xargs)
9999
if [ -n "$EXTRACTED_OWNERS" ]; then
100100
DEFAULT_CODEOWNER="$EXTRACTED_OWNERS"
101101
echo "Found default CODEOWNER: $DEFAULT_CODEOWNER"

0 commit comments

Comments
 (0)