logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

check-changelog (619B)


  1. #!/bin/sh
  2. echo "adding ownership exception"
  3. git config --global --add safe.directory $(pwd)
  4. echo "looking for change log"
  5. git remote add upstream https://git.pleroma.social/pleroma/pleroma.git
  6. git fetch upstream ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}:refs/remotes/upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
  7. git diff --raw --no-renames upstream/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD -- changelog.d | \
  8. grep ' A\t' | grep '\.\(skip\|add\|remove\|fix\|security\|change\)$'
  9. ret=$?
  10. if [ $ret -eq 0 ]; then
  11. echo "found a changelog entry"
  12. exit 0
  13. else
  14. echo "changelog entry not found"
  15. exit 1
  16. fi