[CI] Refactor publish_draft_release.sh (#1289)

* Refactor publish_draft_release.sh

* Switch to using arrays for storing labelled changes
* Combine changes for Polkadot and Substrate
* Change sanitised_git_logs in `lib.sh` to drop `*`s at the start
* Only look for priorities of medium or above (presence of one or more
  C1 label is enforeced by check-labels anyway, saves us some API calls)

* Ensure priorities >C1-low aren't labelled B0-silent
This commit is contained in:
s3krit
2020-06-22 19:24:12 +02:00
committed by GitHub
parent 2338b80af1
commit ebf7de90c2
3 changed files with 65 additions and 68 deletions
+1 -3
View File
@@ -9,9 +9,7 @@ sanitised_git_logs(){
# Only find messages referencing a PR
grep -E '\(#[0-9]+\)' |
# Strip any asterisks
sed 's/^* //g' |
# And add them all back
sed 's/^/* /g'
sed 's/^* //g'
}
# Checks whether a tag on github has been verified