CI: Sync check-changelog script with BE

This commit is contained in:
Phantasm 2026-02-15 13:37:29 +01:00
commit 1bbe7aed95
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -1,12 +1,15 @@
#!/bin/sh
echo "adding ownership exception"
git config --global --add safe.directory "$(pwd)"
echo "looking for change log"
git remote add upstream https://git.pleroma.social/pleroma/pleroma-fe.git
git fetch upstream ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}:refs/remotes/upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
git fetch upstream ${CI_COMMIT_TARGET_BRANCH}:refs/remotes/upstream/${CI_COMMIT_TARGET_BRANCH}
git diff --raw --no-renames upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD -- changelog.d | \
grep ' A\t' | grep '\.\(skip\|add\|remove\|change\|fix\|security\)$'
git diff --raw --no-renames upstream/${CI_COMMIT_TARGET_BRANCH} HEAD -- changelog.d | \
grep ' A\t' | grep '\.\(skip\|add\|remove\|fix\|security\|change\)$'
ret=$?
if [ $ret -eq 0 ]; then