mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:49:52 +01:00
Merge pull request 'fix(release-notes-assistant): add the Localization category' (#4655) from earl-warren/forgejo:wip-rna-preview into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4655 Reviewed-by: twenty-panda <twenty-panda@noreply.codeberg.org>
This commit is contained in:
commit
a0dbc3ae70
1 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,7 @@ label_bug=bug
|
||||||
label_feature=feature
|
label_feature=feature
|
||||||
label_ui=forgejo/ui
|
label_ui=forgejo/ui
|
||||||
label_breaking=breaking
|
label_breaking=breaking
|
||||||
|
label_localization=internationalization
|
||||||
|
|
||||||
payload=$(mktemp)
|
payload=$(mktemp)
|
||||||
pr=$(mktemp)
|
pr=$(mktemp)
|
||||||
|
@ -40,6 +41,9 @@ function test_main() {
|
||||||
test_payload_labels $label_worth $label_bug
|
test_payload_labels $label_worth $label_bug
|
||||||
test "$(categorize)" = 'CB Bug fixes'
|
test "$(categorize)" = 'CB Bug fixes'
|
||||||
|
|
||||||
|
test_payload_labels $label_worth $label_localization
|
||||||
|
test "$(categorize)" = 'DA Localization'
|
||||||
|
|
||||||
test_payload_labels $label_worth
|
test_payload_labels $label_worth
|
||||||
test "$(categorize)" = 'ZE Other changes without a feature or bug label'
|
test "$(categorize)" = 'ZE Other changes without a feature or bug label'
|
||||||
|
|
||||||
|
@ -103,6 +107,7 @@ function categorize() {
|
||||||
is_ui=false
|
is_ui=false
|
||||||
is_bug=false
|
is_bug=false
|
||||||
is_feature=false
|
is_feature=false
|
||||||
|
is_localization=false
|
||||||
is_breaking=false
|
is_breaking=false
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -115,6 +120,9 @@ function categorize() {
|
||||||
*$label_feature*)
|
*$label_feature*)
|
||||||
is_feature=true
|
is_feature=true
|
||||||
;;
|
;;
|
||||||
|
*$label_localization*)
|
||||||
|
is_localization=true
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$labels" in
|
case "$labels" in
|
||||||
|
@ -179,6 +187,8 @@ function categorize() {
|
||||||
else
|
else
|
||||||
echo -n ZD User Interface changes without a feature or bug label
|
echo -n ZD User Interface changes without a feature or bug label
|
||||||
fi
|
fi
|
||||||
|
elif $is_localization; then
|
||||||
|
echo -n DA Localization
|
||||||
else
|
else
|
||||||
if $is_feature; then
|
if $is_feature; then
|
||||||
echo -n CA Features
|
echo -n CA Features
|
||||||
|
|
Loading…
Reference in a new issue