Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5df6ef

Browse files
committed
Change casing for endLine and endColumn
1 parent 4b50f8c commit a5df6ef

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

packages/core/__tests__/core.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ describe('@actions/core', () => {
280280
endLine: 5
281281
})
282282
assertWriteCalls([
283-
`::error title=A title,line=5,end_line=5,col=1,end_column=2::Error: ${message}${os.EOL}`
283+
`::error title=A title,line=5,endLine=5,col=1,endColumn=2::Error: ${message}${os.EOL}`
284284
])
285285
})
286286

@@ -310,7 +310,7 @@ describe('@actions/core', () => {
310310
endLine: 5
311311
})
312312
assertWriteCalls([
313-
`::warning title=A title,line=5,end_line=5,col=1,end_column=2::Error: ${message}${os.EOL}`
313+
`::warning title=A title,line=5,endLine=5,col=1,endColumn=2::Error: ${message}${os.EOL}`
314314
])
315315
})
316316

@@ -324,14 +324,12 @@ describe('@actions/core', () => {
324324
})
325325
expect(commandProperties.title).toBe('A title')
326326
expect(commandProperties.col).toBe(1)
327-
expect(commandProperties.end_column).toBe(2)
327+
expect(commandProperties.endColumn).toBe(2)
328328
expect(commandProperties.line).toBe(5)
329-
expect(commandProperties.end_line).toBe(5)
329+
expect(commandProperties.endLine).toBe(5)
330330

331331
expect(commandProperties.startColumn).toBeUndefined()
332-
expect(commandProperties.endColumn).toBeUndefined()
333332
expect(commandProperties.startLine).toBeUndefined()
334-
expect(commandProperties.endLine).toBeUndefined()
335333
})
336334

337335
it('startGroup starts a new group', () => {

packages/core/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function toCommandValue(input: any): string {
2020
/**
2121
*
2222
* @param annotationProperties
23-
* @returns The command properties to send with the actual annotaiton command
23+
* @returns The command properties to send with the actual annotation command
2424
* See: https://github.com/actions/runner/blob/ee34f4842e747b452e13235836c92b2bb1606816/src/Runner.Worker/ActionCommandManager.cs#L566
2525
*/
2626
export function toCommandProperties(
@@ -33,8 +33,8 @@ export function toCommandProperties(
3333
return {
3434
title: annotationProperties.title,
3535
line: annotationProperties.startLine,
36-
end_line: annotationProperties.endLine,
36+
endLine: annotationProperties.endLine,
3737
col: annotationProperties.startColumn,
38-
end_column: annotationProperties.endColumn
38+
endColumn: annotationProperties.endColumn
3939
}
4040
}

0 commit comments

Comments
 (0)