fix: fix: disinto release uses undefined PROJECT_REPO variable (#166)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/pr/smoke-init Pipeline was successful

This commit is contained in:
Agent 2026-04-03 06:13:36 +00:00
parent c5311ce909
commit eaff5c808b

View file

@ -2956,7 +2956,7 @@ This PR creates a vault item for the release of version ${version}.
pr_response=$(curl -sf -X POST \
-H "Authorization: token ${FORGE_TOKEN}" \
-H "Content-Type: application/json" \
"${FORGE_URL}/api/v1/repos/${PROJECT_REPO}/pulls" \
"${FORGE_URL}/api/v1/repos/${FORGE_OPS_REPO}/pulls" \
-d "{\"title\":\"${pr_title}\",\"head\":\"${branch_name}\",\"base\":\"main\",\"body\":\"$(echo "$pr_body" | sed ':a;N;$!ba;s/\n/\\n/g')\"}" 2>/dev/null) || {
echo "Error: failed to create PR" >&2
echo "Response: ${pr_response}" >&2
@ -2966,7 +2966,7 @@ This PR creates a vault item for the release of version ${version}.
local pr_number
pr_number=$(echo "$pr_response" | jq -r '.number')
local pr_url="${FORGE_URL}/${PROJECT_REPO}/pulls/${pr_number}"
local pr_url="${FORGE_URL}/${FORGE_OPS_REPO}/pulls/${pr_number}"
echo ""
echo "Release PR created: ${pr_url}"