mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 23:21:02 +00:00
CI: Label PRs with B2-breaksapi if substrate changes are labelled B2-breaksapi (#862)
* CI: Split common functions into lib.sh and make... ... alert_pending_release.sh check the substrate changes for various labels. If labelled, will be included in the changelog, otherwise will silently be left out. * replace non-standard /bin/bash with /usr/bin/env bash * CI: make lib.sh /bin/sh-compatible * lib.sh: fix newline chars sometimes breaking has_label() * check_runtime.sh: tag change with 'B2-breaksapi'... ... if any substrate changes are also labelled 'B2-breaksapi' * Remove debug exits and uncomment labelling * exit early if we label with breaksapi * fix publish_draft_release.sh
This commit is contained in:
@@ -47,7 +47,7 @@ has_label(){
|
||||
pr_id="$2"
|
||||
label="$3"
|
||||
out=$(curl -H "Authorization: token $GITHUB_RELEASE_TOKEN" -s "$api_base/$repo/pulls/$pr_id")
|
||||
[ -n "$(echo "$out" | jq ".labels | .[] | select(.name==\"$label\")")" ]
|
||||
[ -n "$(echo "$out" | tr -d '\r\n' | jq ".labels | .[] | select(.name==\"$label\")")" ]
|
||||
}
|
||||
|
||||
# Formats a message into a JSON string for posting to Matrix
|
||||
|
||||
Reference in New Issue
Block a user