ci: grep: disallow contributor comments
[ci:skip-grep] [ci:skip-kconfigcheck] [ci:skip-vercheck] Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8950>
This commit is contained in:
@@ -127,6 +127,14 @@ if grep -qr '/etc/phoc.ini' --exclude-dir='archived' -- *; then
|
|||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
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
|
if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
|
||||||
# Find all added, modified or renamed kernel APKBUILDs in main, community or testing
|
# 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)
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user