CI
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
02cd0a6e43
commit
4d55b0b878
@ -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
8
dist/index.js
vendored
@ -1336,10 +1336,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}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user