feature/rebase-upstream #1

Open
ahuston-0 wants to merge 9 commits from feature/rebase-upstream into main
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 6b3a86bf8b - Show all commits

View File

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

8
dist/index.js vendored
View File

@ -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}`;