diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2026-03-22 19:05:15 +0100 |
|---|---|---|
| committer | Gabriel Wicki <gabriel@erlikon.ch> | 2026-03-24 09:39:41 +0100 |
| commit | 4a5a19ea4392b352d3d7aab7a82d8d2792693fa9 (patch) | |
| tree | f9670e5ecc9ad46ac4856f7dc3f729f92ebc92af /etc | |
| parent | 593f867fc3404f89be278f5ef732842d85a0f919 (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-x | etc/teams.scm | 8 |
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))) |
