format determineApiUrl code

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2025-02-01 16:01:59 -05:00
committed by GitHub Actions
parent 8d0b08b89f
commit 49dc227387
2 changed files with 22 additions and 17 deletions

View File

@@ -51,8 +51,8 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
core.startGroup('Determining the base and head repositories')
const baseRemote = gitConfigHelper.getGitRemote()
// Init the GitHub clients
const apiUrl = await GitHubHelper.determineApiUrl(baseRemote.hostname);
core.info(`Using API base URL: ${apiUrl}`);
const apiUrl = await GitHubHelper.determineApiUrl(baseRemote.hostname)
core.info(`Using API base URL: ${apiUrl}`)
const ghBranch = new GitHubHelper(apiUrl, inputs.branchToken)
const ghPull = new GitHubHelper(apiUrl, inputs.token)
// Determine the head repository; the target for the pull request branch