From 6b3a86bf8bfe10eb458b00968a8fefe2f5f5a6c1 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 1 Feb 2025 16:27:43 -0500 Subject: [PATCH] CI Signed-off-by: ahuston-0 --- __test__/integration-tests.sh | 1 + dist/index.js | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/__test__/integration-tests.sh b/__test__/integration-tests.sh index 0fcaa54..c1bb41f 100755 --- a/__test__/integration-tests.sh +++ b/__test__/integration-tests.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -euo pipefail +set -xv IMAGE="cpr-integration-tests:latest" ARG1=${1:-} diff --git a/dist/index.js b/dist/index.js index a8d5770..bcde6e6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1294,10 +1294,14 @@ class GitHubHelper { static determineApiUrl(hostname) { return __awaiter(this, void 0, void 0, function* () { if (hostname === 'github.com') { - return "https://api.github.com"; + return 'https://api.github.com'; } const baseUrl = `https://${hostname}`; - const possiblePaths = ['/api/v4/version', '/api/forgejo/v1/version', '/api/v1/version']; + const possiblePaths = [ + '/api/v4/version', + '/api/forgejo/v1/version', + '/api/v1/version' + ]; for (const path of possiblePaths) { try { const url = `${baseUrl}${path}`;