From a6cef777a07c255b1c373a718fa2b3c97b3a6587 Mon Sep 17 00:00:00 2001 From: Aster Boese Date: Sat, 4 Jul 2026 19:11:58 +0200 Subject: [PATCH] ci: grep: disallow contributor comments [ci:skip-grep] [ci:skip-kconfigcheck] [ci:skip-vercheck] Signed-off-by: Aster Boese Part-of: --- .ci/grep.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.ci/grep.sh b/.ci/grep.sh index 6a6b6b1c5..e68500983 100755 --- a/.ci/grep.sh +++ b/.ci/grep.sh @@ -127,6 +127,14 @@ if grep -qr '/etc/phoc.ini' --exclude-dir='archived' -- *; then exit_code=1 fi +# Disallow contributor comments +if grep -qr '# Contributor:' --exclude-dir='docs' -- *; then + echo 'ERROR: Please remove the contributor comment(s).' + echo "See https://docs.postmarketos.org/pmaports/main/packaging.html" + grep --color=always -r '# Contributor:' --exclude-dir='docs' -- * + exit_code=1 +fi + if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then # Find all added, modified or renamed kernel APKBUILDs in main, community or testing MODIFIED_MAINLINE_KERNEL_PACKAGES=$(git show --pretty="" --name-only --diff-filter=AMR "$CI_MERGE_REQUEST_DIFF_BASE_SHA"..HEAD | grep "device/\(main\|community\|testing\)/linux-.*/APKBUILD" || true)