Check for changelog in ci

This commit is contained in:
Tusooa Zhu 2022-08-28 09:48:01 -04:00
parent a022b9d733
commit 50d3209ce8
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
1 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@ cache: &global_cache_policy
- _build
stages:
- check-changelog
- build
- test
- benchmark
@ -31,6 +32,13 @@ before_script:
after_script:
- rm -rf _build/*/lib/pleroma
check-changelog:
stage: check-changelog
rules:
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
script:
- count=0; for i in changelog.d/"$CI_MERGE_REQUEST_IID".{add,remove,fix,security}; do [ -f "$i" ]; count=$(( $count + 1 - $? )); done; [ $count -eq 1 ]
build:
stage: build
only: