summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorHugo Buddelmeijer <hugo@buddelmeijer.nl>2026-03-22 19:05:15 +0100
committerGabriel Wicki <gabriel@erlikon.ch>2026-03-24 09:39:41 +0100
commit4a5a19ea4392b352d3d7aab7a82d8d2792693fa9 (patch)
treef9670e5ecc9ad46ac4856f7dc3f729f92ebc92af /etc
parent593f867fc3404f89be278f5ef732842d85a0f919 (diff)
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 <gabriel@erlikon.ch>
Diffstat (limited to 'etc')
-rwxr-xr-xetc/teams.scm8
1 files changed, 6 insertions, 2 deletions
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)))