fix url
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
||||
sudo apt-get -qq update && sudo apt-get -qq install -y jq curl
|
||||
|
||||
# --- Conditionally build the API URL ---
|
||||
API_URL="${GITEA_INSTANCE_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/issues?state=open"
|
||||
API_URL="${INSTANCE_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/issues?state=open"
|
||||
if [[ -n "${REQUIRED_TAG}" ]]; then
|
||||
echo ">> Filtering for issues with the required tag: ${REQUIRED_TAG}"
|
||||
# URL-encode the tag to handle special characters
|
||||
@@ -41,10 +41,6 @@ jobs:
|
||||
|
||||
# Fetch issues using the constructed URL
|
||||
echo ">> Fetching issues ..."
|
||||
curl -X GET \
|
||||
-H "Authorization: token ${BOT_TOKEN}" \
|
||||
-H "Accept: application/json" \
|
||||
"${API_URL}"
|
||||
ISSUES=$(curl -s -S -X GET \
|
||||
-H "Authorization: token ${BOT_TOKEN}" \
|
||||
-H "Accept: application/json" \
|
||||
|
Reference in New Issue
Block a user