Skip to content

Commit 4d3c948

Browse files
authored
add runtime migrations to release notes/changelog (paritytech#6875)
1 parent d019a66 commit 4d3c948

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.maintain/gitlab/generate_changelog.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ runtime_changes=""
1111
api_changes=""
1212
client_changes=""
1313
changes=""
14+
migrations=""
1415

1516
while IFS= read -r line; do
1617
pr_id=$(echo "$line" | sed -E 's/.*#([0-9]+)\)$/\1/')
@@ -29,14 +30,19 @@ $line"
2930
fi
3031
if has_label 'paritytech/substrate' "$pr_id" 'B7-runtimenoteworthy'; then
3132
runtime_changes="$runtime_changes
33+
$line"
34+
fi
35+
if has_label 'paritytech/substrate' "$pr_id" 'D1-runtime-migration'; then
36+
migrations="$migrations
3237
$line"
3338
fi
3439
done <<< "$all_changes"
3540

3641
# Make the substrate section if there are any substrate changes
3742
if [ -n "$runtime_changes" ] ||
3843
[ -n "$api_changes" ] ||
39-
[ -n "$client_changes" ]; then
44+
[ -n "$client_changes" ] ||
45+
[ -n "$migrations" ]; then
4046
changes=$(cat << EOF
4147
Substrate changes
4248
-----------------
@@ -68,5 +74,12 @@ $api_changes"
6874
6975
$changes"
7076
fi
77+
if [ -n "$migrations" ]; then
78+
changes="$changes
79+
80+
Runtime Migrations
81+
------------------
82+
$migrations"
83+
fi
7184

7285
echo "$changes"

0 commit comments

Comments
 (0)