mirror of https://github.com/actions/toolkit
Rename files to have internal- nomenclature
parent
f1d938567d
commit
7911689f29
|
@ -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'
|
||||
|
|
|
@ -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}`]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as os from 'os'
|
||||
import {toCommandValue} from './utils'
|
||||
import {toCommandValue} from './internal-utils'
|
||||
|
||||
// For internal use, subject to change.
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue