From 940d23a3d9908c59d0cb8ed559695ada1db4469d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 27 Oct 2024 14:18:27 -0400 Subject: [PATCH] Convert colon to %3A when query --- .forgejo/bin/create_issue.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/bin/create_issue.sh b/.forgejo/bin/create_issue.sh index 57d0c61..ac892bc 100755 --- a/.forgejo/bin/create_issue.sh +++ b/.forgejo/bin/create_issue.sh @@ -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" \