diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index e57d9f1549..b96b3911fd 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -1,6 +1,6 @@ -import {issue, issueCommand} from './command' +import {issue, issueCommand} from './internal-command' import {issueCommand as issueFileCommand} from './file-command' -import {toCommandProperties, toCommandValue} from './utils' +import {toCommandProperties, toCommandValue} from './internal-utils' import * as os from 'os' import * as path from 'path' diff --git a/packages/core/src/file-command.ts b/packages/core/src/file-command.ts index 978d8ff94b..be2b91a6ec 100644 --- a/packages/core/src/file-command.ts +++ b/packages/core/src/file-command.ts @@ -5,7 +5,7 @@ import * as fs from 'fs' import * as os from 'os' -import {toCommandValue} from './utils' +import {toCommandValue} from './internal-utils' export function issueCommand(command: string, message: any): void { const filePath = process.env[`GITHUB_${command}`] diff --git a/packages/core/src/command.ts b/packages/core/src/internal-command.ts similarity index 97% rename from packages/core/src/command.ts rename to packages/core/src/internal-command.ts index 2796fce9f6..a3ccb64032 100644 --- a/packages/core/src/command.ts +++ b/packages/core/src/internal-command.ts @@ -1,5 +1,5 @@ import * as os from 'os' -import {toCommandValue} from './utils' +import {toCommandValue} from './internal-utils' // For internal use, subject to change. diff --git a/packages/core/src/utils.ts b/packages/core/src/internal-utils.ts similarity index 88% rename from packages/core/src/utils.ts rename to packages/core/src/internal-utils.ts index 70a73658ef..88b352b27a 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/internal-utils.ts @@ -2,7 +2,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import {AnnotationProperties} from './core' -import {CommandProperties} from './command' +import {CommandProperties} from './internal-command' /** * Sanitizes an input into a string so it can be passed into issueCommand safely @@ -21,7 +21,7 @@ export function toCommandValue(input: any): string { * * @param annotationProperties * @returns The command properties to send with the actual annotation command - * See IssueCommandProperties: https://github.com/actions/runner/blob/fff31e11c5208854164adb5e2532b822fbca7574/src/Runner.Worker/ActionCommandManager.cs#L646 + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 */ export function toCommandProperties( annotationProperties: AnnotationProperties