CI
Some checks failed
CI / build (push) Failing after 45s
CI / test (built) (push) Has been skipped
CI / test (committed) (push) Has been skipped
CI / commentTestSuiteHelp (push) Has been skipped
CI / package (push) Has been skipped
Rebase Upstream / sync (push) Failing after 8s

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2025-02-01 16:27:43 -05:00
parent afa1190aa1
commit 6b3a86bf8b
No known key found for this signature in database
GPG Key ID: 47940175096C1330
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
set -xv
IMAGE="cpr-integration-tests:latest" IMAGE="cpr-integration-tests:latest"
ARG1=${1:-} ARG1=${1:-}

8
dist/index.js vendored
View File

@ -1294,10 +1294,14 @@ class GitHubHelper {
static determineApiUrl(hostname) { static determineApiUrl(hostname) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (hostname === 'github.com') { if (hostname === 'github.com') {
return "https://api.github.com"; return 'https://api.github.com';
} }
const baseUrl = `https://${hostname}`; 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) { for (const path of possiblePaths) {
try { try {
const url = `${baseUrl}${path}`; const url = `${baseUrl}${path}`;