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
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:
parent
afa1190aa1
commit
6b3a86bf8b
@ -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
8
dist/index.js
vendored
@ -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}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user