docs: add changelog breaking_change type
parent
b91c9e17fc
commit
bada6f4073
|
@ -56,7 +56,7 @@ jobs:
|
||||||
|
|
||||||
- name: Scan PR merges from latest tag
|
- name: Scan PR merges from latest tag
|
||||||
run: |
|
run: |
|
||||||
TYPES=("minor_changes" "major_changes" "bugfixes" "deprecated_features" "removed_features")
|
TYPES=("minor_changes" "major_changes" "bugfixes" "deprecated_features" "removed_features" "breaking_changes")
|
||||||
TAG=$(git describe --abbrev=0 --tags)
|
TAG=$(git describe --abbrev=0 --tags)
|
||||||
PRS=($(comm -12 <(git log --oneline ${TAG}.. --format="tformat:%H" | sort ) <(hub pr list -s all -f '%sm%n' --color=never | sort )))
|
PRS=($(comm -12 <(git log --oneline ${TAG}.. --format="tformat:%H" | sort ) <(hub pr list -s all -f '%sm%n' --color=never | sort )))
|
||||||
IFS=$'\n' FRAGMENTS=($(hub pr list -s all -f '%sm~%I~%L~%t~%n' --color=never| grep -P "$(echo "^(${PRS[@]})" | tr ' ' '|')"))
|
IFS=$'\n' FRAGMENTS=($(hub pr list -s all -f '%sm~%I~%L~%t~%n' --color=never| grep -P "$(echo "^(${PRS[@]})" | tr ' ' '|')"))
|
||||||
|
|
|
@ -38,14 +38,14 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install ansible-core
|
pip install ansible-core antsibull
|
||||||
sudo apt install -y sed hub
|
sudo apt install -y sed hub
|
||||||
- name: Build collection
|
- name: Build collection
|
||||||
run: |
|
run: |
|
||||||
ansible-galaxy collection build .
|
ansible-galaxy collection build .
|
||||||
- name: Scan PR merges from latest tag
|
- name: Scan PR merges from latest tag
|
||||||
run: |
|
run: |
|
||||||
TYPES=("minor_changes" "major_changes" "bugfixes" "deprecated_features" "removed_features")
|
TYPES=("minor_changes" "major_changes" "bugfixes" "deprecated_features" "removed_features" "breaking_changes")
|
||||||
TAG=$(git describe --abbrev=0 --tags)
|
TAG=$(git describe --abbrev=0 --tags)
|
||||||
PRS=($(comm -12 <(git log --oneline ${TAG}.. --format="tformat:%H" | sort ) <(hub pr list -s all -f '%sm%n' --color=never | sort )))
|
PRS=($(comm -12 <(git log --oneline ${TAG}.. --format="tformat:%H" | sort ) <(hub pr list -s all -f '%sm%n' --color=never | sort )))
|
||||||
IFS=$'\n' FRAGMENTS=($(hub pr list -s all -f '%sm~%I~%L~%t~%n' --color=never| grep -P "$(echo "^(${PRS[@]})" | tr ' ' '|')"))
|
IFS=$'\n' FRAGMENTS=($(hub pr list -s all -f '%sm~%I~%L~%t~%n' --color=never| grep -P "$(echo "^(${PRS[@]})" | tr ' ' '|')"))
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
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 [[ "${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
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue