From 43e7a3be33fdf65d0e51826a14ba1b80f8cf4803 Mon Sep 17 00:00:00 2001 From: Gav Wood <gavin@parity.io> Date: Wed, 17 Jun 2020 13:15:09 +0200 Subject: [PATCH] Another CI fix --- polkadot/scripts/gitlab/publish_draft_release.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/polkadot/scripts/gitlab/publish_draft_release.sh b/polkadot/scripts/gitlab/publish_draft_release.sh index 1347515c30f..575d0ced9aa 100755 --- a/polkadot/scripts/gitlab/publish_draft_release.sh +++ b/polkadot/scripts/gitlab/publish_draft_release.sh @@ -54,17 +54,14 @@ runtime_changes="" while IFS= read -r line; do pr_id=$(echo "$line" | sed -E 's/.*#([0-9]+)\)$/\1/') - if has_label 'paritytech/polkadot' "$pr_id" 'B1-silent'; then - continue - fi - # If the PR has a runtimenoteworthy label, add to the runtime_changes section - if has_label 'paritytech/polkadot' "$pr_id" 'B1-runtimenoteworthy'; then + if has_label 'paritytech/polkadot' "$pr_id" 'B2-runtimenoteworthy'; then runtime_changes="$runtime_changes $line" - else - # otherwise, add the PR to the main list of changes - release_text="$release_text + fi + # If the PR has a releasenotes label, add to the release section + if has_label 'paritytech/polkadot' "$pr_id" 'B1-releasenotes'; then + release_text="$release_text $line" fi done <<< "$(sanitised_git_logs "$last_version" "$version" | \ -- GitLab