From aa1ed917449dbe296f6d8c176d4d311f80619431 Mon Sep 17 00:00:00 2001 From: Luke Tomlinson Date: Fri, 2 Jul 2021 14:49:28 -0400 Subject: [PATCH] Change casing for endLine and endColumn --- packages/core/__tests__/core.test.ts | 4 ++-- packages/core/src/utils.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/__tests__/core.test.ts b/packages/core/__tests__/core.test.ts index bae51c468a..2760c123bf 100644 --- a/packages/core/__tests__/core.test.ts +++ b/packages/core/__tests__/core.test.ts @@ -280,7 +280,7 @@ describe('@actions/core', () => { endLine: 5 }) assertWriteCalls([ - `::error title=A title,line=5,end_line=5,col=1,end_column=2::Error: ${message}${os.EOL}` + `::error title=A title,line=5,endLine=5,col=1,endColumn=2::Error: ${message}${os.EOL}` ]) }) @@ -310,7 +310,7 @@ describe('@actions/core', () => { endLine: 5 }) assertWriteCalls([ - `::warning title=A title,line=5,end_line=5,col=1,end_column=2::Error: ${message}${os.EOL}` + `::warning title=A title,line=5,endLine=5,col=1,endColumn=2::Error: ${message}${os.EOL}` ]) }) diff --git a/packages/core/src/utils.ts b/packages/core/src/utils.ts index 19dd6603ac..425c289a5f 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/utils.ts @@ -20,7 +20,7 @@ export function toCommandValue(input: any): string { /** * * @param annotationProperties - * @returns The command properties to send with the actual annotaiton command + * @returns The command properties to send with the actual annotation command * See: https://github.com/actions/runner/blob/ee34f4842e747b452e13235836c92b2bb1606816/src/Runner.Worker/ActionCommandManager.cs#L566 */ export function toCommandProperties( @@ -33,8 +33,8 @@ export function toCommandProperties( return { title: annotationProperties.title, line: annotationProperties.startLine, - end_line: annotationProperties.endLine, + endLine: annotationProperties.endLine, col: annotationProperties.startColumn, - end_column: annotationProperties.endColumn + endColumn: annotationProperties.endColumn } }