Woodpecker CI: Update check-changelog script for Woodpecker
This commit is contained in:
parent
1a0af1c0c0
commit
4493d0d187
1 changed files with 3 additions and 3 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo "adding ownership exception"
|
echo "adding ownership exception"
|
||||||
git config --global --add safe.directory $(pwd)
|
git config --global --add safe.directory "$(pwd)"
|
||||||
|
|
||||||
echo "looking for change log"
|
echo "looking for change log"
|
||||||
|
|
||||||
git remote add upstream https://git.pleroma.social/pleroma/pleroma.git
|
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 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 | \
|
git diff --raw --no-renames upstream/${CI_COMMIT_TARGET_BRANCH} HEAD -- changelog.d | \
|
||||||
grep ' A\t' | grep '\.\(skip\|add\|remove\|fix\|security\|change\)$'
|
grep ' A\t' | grep '\.\(skip\|add\|remove\|fix\|security\|change\)$'
|
||||||
ret=$?
|
ret=$?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue