Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/ref-helper.ts
diff options
context:
space:
mode:
authorFerenc Hammerl <31069338+fhammerl@users.noreply.github.com>2023-04-13 14:25:50 +0200
committerGitHub <noreply@github.com>2023-04-13 14:25:50 +0200
commit473c63f4d32bc90f0653642c05f1599d6f1fc97a (patch)
tree9428cfe5f2d0fc3c989e4ceab103bb8868c41b3f /src/ref-helper.ts
parentf5ef935a2651bd991c6e6a2299e89435f5b21121 (diff)
Fix: convert baseUrl to serverApiUrl 'formatted' (#1289)
* fix: convert baseUrl to apiUrl * Run prettier --------- Co-authored-by: 1newsr <1newsr@users.noreply.github.com>
Diffstat (limited to 'src/ref-helper.ts')
-rw-r--r--src/ref-helper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ref-helper.ts b/src/ref-helper.ts
index 9b1ca95..1c25049 100644
--- a/src/ref-helper.ts
+++ b/src/ref-helper.ts
@@ -1,7 +1,7 @@
import {IGitCommandManager} from './git-command-manager'
import * as core from '@actions/core'
import * as github from '@actions/github'
-import {isGhes} from './url-helper'
+import {getServerApiUrl, isGhes} from './url-helper'
export const tagsRefSpec = '+refs/tags/*:refs/tags/*'
@@ -245,7 +245,7 @@ export async function checkCommitInfo(
`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`
)
const octokit = github.getOctokit(token, {
- baseUrl: baseUrl,
+ baseUrl: getServerApiUrl(baseUrl),
userAgent: `actions-checkout-tracepoint/1.0 (code=STALE_MERGE;owner=${repositoryOwner};repo=${repositoryName};pr=${fromPayload(
'number'
)};run_id=${