Convert slash to %2F when query

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

View file

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