commit: e13b331762881933d66597b3145b4d20d6e51912
parent 50e237759a0aa378b32393ba57d50eaaff5029e0
Author: tusooa <tusooa@kazv.moe>
Date: Sat, 22 Apr 2023 20:40:39 -0400
Fetch upstream in the repo
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/check-changelog b/tools/check-changelog
@@ -2,7 +2,10 @@
echo "looking for change log"
-git diff --raw $CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD -- changelog.d | \
+git remote add upstream https://git.pleroma.social/pleroma/pleroma.git
+git fetch upstream ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}:refs/remotes/upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
+
+git diff --raw upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD -- changelog.d | \
grep ' A\t' | grep '\.\(skip\|add\|remove\|fix\|security\)$'
ret=$?