Convert colon to %3A when query

This commit is contained in:
Antoine Martin 2024-10-27 14:18:27 -04:00
parent 94b837d974
commit 940d23a3d9
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -15,7 +15,7 @@ does_it_exist() {
repo=$4
query="$repo/$name: upgrade to $upstream_version"
query="$(echo $query | sed 's| |%20|g')"
query="$(echo $query | sed 's| |%20|g' | sed 's|:|%3A|g')"
result="$(curl --silent -X 'GET' \
"$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY/issues?state=open&q=$query&type=issues" \