From 3b3329742616e7ad5443fa4308ee2e211df9671f Mon Sep 17 00:00:00 2001 From: Casper Cramer Date: Fri, 25 Jul 2025 11:21:42 +0200 Subject: [PATCH] fix pull request checking --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e71015d..7a77ef4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -111,7 +111,7 @@ create_pull_request() { fi fi - pull_requests_response=$(curl -sSL -w "%{http_code}" -H "${AUTH_HEADER}" -H "${HEADER}" -X GET "${PULLS_URL}?base=${BASE_BRANCH}&head=${ORG_NAME}:${BRANCH}") + pull_requests_response=$(curl -sSL -w "%{http_code}" -H "${AUTH_HEADER}" -H "${HEADER}" -X GET "${PULLS_URL}?base=${BASE_BRANCH}&head=${BRANCH}") http_code="${pull_requests_response: -3}" response_body="${pull_requests_response%???}"