Skip to content

Commit 11e6486

Browse files
committed
style: add endLine parameter to GHA warning output format
Update the review-pr skill document to include the endLine parameter in the GitHub Actions workflow warning output format.
1 parent 2fef600 commit 11e6486

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • tools/private/reviewbot/skills/review-pr

tools/private/reviewbot/skills/review-pr/SKILL.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ that an automated formatter can handle. Be constructive and concise.
1313

1414
For every issue or improvement you identify, you MUST output the finding in the
1515
GitHub Actions workflow command warning format. Specify the exact file path
16-
and line number that the comment applies to.
16+
and line numbers that the comment applies to.
1717

1818
Format each finding exactly as a single line to stdout matching this template:
19-
`::warning file={file_path},line={line_number},title={category}::{comment_body}`
19+
`::warning file={file_path},line={line_number},endLine={end_line},title={category}::{comment_body}`
2020

2121
Where:
2222
* `file_path` is the relative file path from the repository root.
2323
* `line_number` is the starting line number in the file where the comment applies.
24+
* `end_line` is the ending line number in the file where the comment applies (equal to line_number if the issue is on a single line).
2425
* `category` is a short tag for the type of issue (e.g., "Error Handling", "Correctness", "Performance").
2526
* `comment_body` is your constructive and concise feedback.
2627

0 commit comments

Comments
 (0)