From 4a5a19ea4392b352d3d7aab7a82d8d2792693fa9 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Sun, 22 Mar 2026 19:05:15 +0100 Subject: teams: Don't add empty lines to CODEOWNERS. * etc/teams.scm: (export-codeowners): Only add a newline if a team has a scope. * CODEOWNERS: Regenerate file. Change-Id: I11b039d848f166a44bca2caa626e6e1321d33c42 Signed-off-by: Gabriel Wicki --- etc/teams.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/teams.scm b/etc/teams.scm index 4697a60124f..6b8e88583c2 100755 --- a/etc/teams.scm +++ b/etc/teams.scm @@ -1833,8 +1833,12 @@ and REV-END, two git revision strings." # usually suited as a reviewer.\n\n" port) (for-each (lambda (team) - (display (team->codeowners-snippet team) port) - (newline port)) + (let ((scope (team->codeowners-snippet team))) + ;; Some teams, like Mentors and Community have no scope, + ;; which would result in seemingly arbitrary newlines. + (unless (string-null? scope) + (display scope port) + (newline port)))) teams))) -- cgit v1.3