ci: changelogs skip unlabeled PRs
parent
9d57057272
commit
29aaafb9e4
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue