ci: changelogs skip unlabeled PRs

main
Guido Grazioli 2022-04-01 21:41:52 +02:00
parent 9d57057272
commit 29aaafb9e4
No known key found for this signature in database
GPG Key ID: 22C8C31EF2BC093B
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ jobs:
PR=$(echo $frag|cut -d~ -f2) PR=$(echo $frag|cut -d~ -f2)
type="$(echo $frag|cut -d~ -f3)" type="$(echo $frag|cut -d~ -f3)"
msg="$(echo $frag|cut -d~ -f4|sed 's/`/``/g')" msg="$(echo $frag|cut -d~ -f4|sed 's/`/``/g')"
if [[ "${TYPES[*]}" =~ "${type}" ]]; then if [[ "$type" != "" && "${TYPES[*]}" =~ "${type}" ]]; then
echo -e "$type:\n - >\n $msg \`#${PR} <https://github.com/ansible-middleware/keycloak/pull/${PR}>\`_" \ echo -e "$type:\n - >\n $msg \`#${PR} <https://github.com/ansible-middleware/keycloak/pull/${PR}>\`_" \
> changelogs/fragments/${PR}.yaml > changelogs/fragments/${PR}.yaml
fi fi

View File

@ -60,7 +60,7 @@ jobs:
PR=$(echo $frag|cut -d~ -f2) PR=$(echo $frag|cut -d~ -f2)
type="$(echo $frag|cut -d~ -f3)" type="$(echo $frag|cut -d~ -f3)"
msg="$(echo $frag|cut -d~ -f4|sed 's/`/``/g')" msg="$(echo $frag|cut -d~ -f4|sed 's/`/``/g')"
if [[ "${TYPES[*]}" =~ "${type}" ]]; then if [[ "$type" != "" && "${TYPES[*]}" =~ "${type}" ]]; then
echo -e "$type:\n - >\n $msg \`#${PR} <https://github.com/ansible-middleware/keycloak/pull/${PR}>\`_" \ echo -e "$type:\n - >\n $msg \`#${PR} <https://github.com/ansible-middleware/keycloak/pull/${PR}>\`_" \
> changelogs/fragments/${PR}.yaml > changelogs/fragments/${PR}.yaml
fi fi