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 | |
| 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>
| -rw-r--r-- | CODEOWNERS | 1 | ||||
| -rwxr-xr-x | etc/teams.scm | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/CODEOWNERS b/CODEOWNERS index 1216214d0be..a9c561df737 100644 --- a/CODEOWNERS +++ b/CODEOWNERS | |||
| @@ -308,7 +308,6 @@ gnu/packages/lxqt\.scm @guix/lxqt | |||
| 308 | 308 | ||
| 309 | gnu/packages/mate\.scm @guix/mate | 309 | gnu/packages/mate\.scm @guix/mate |
| 310 | 310 | ||
| 311 | |||
| 312 | gnu/build/icecat-extension\.scm @guix/mozilla | 311 | gnu/build/icecat-extension\.scm @guix/mozilla |
| 313 | gnu/packages/browser-extensions\.scm @guix/mozilla | 312 | gnu/packages/browser-extensions\.scm @guix/mozilla |
| 314 | gnu/packages/gnuzilla\.scm @guix/mozilla | 313 | gnu/packages/gnuzilla\.scm @guix/mozilla |
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." | |||
| 1833 | # usually suited as a reviewer.\n\n" | 1833 | # usually suited as a reviewer.\n\n" |
| 1834 | port) | 1834 | port) |
| 1835 | (for-each (lambda (team) | 1835 | (for-each (lambda (team) |
| 1836 | (display (team->codeowners-snippet team) port) | 1836 | (let ((scope (team->codeowners-snippet team))) |
| 1837 | (newline port)) | 1837 | ;; Some teams, like Mentors and Community have no scope, |
| 1838 | ;; which would result in seemingly arbitrary newlines. | ||
| 1839 | (unless (string-null? scope) | ||
| 1840 | (display scope port) | ||
| 1841 | (newline port)))) | ||
| 1838 | teams))) | 1842 | teams))) |
| 1839 | 1843 | ||
| 1840 | 1844 | ||
