Skip to content

Commit 8fd3911

Browse files
committed
fix line
1 parent 003cd7a commit 8fd3911

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

action/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150555,7 +150555,7 @@ const robot = (app) => {
150555150555
if (review.hunk_header) {
150556150556
const hunkMatch = review.hunk_header.match(/@@\s+-\d+(?:,\d+)?\s+\+(\d+)(?:,(\d+))?\s+@@/);
150557150557
if (hunkMatch) {
150558-
line = parseInt(hunkMatch[1], 10);
150558+
line = parseInt(hunkMatch[2], 10);
150559150559
}
150560150560
}
150561150561
ress.push({

src/bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const robot = (app: Probot) => {
218218
if (review.hunk_header) {
219219
const hunkMatch = review.hunk_header.match(/@@\s+-\d+(?:,\d+)?\s+\+(\d+)(?:,(\d+))?\s+@@/);
220220
if (hunkMatch) {
221-
line = parseInt(hunkMatch[1], 10);
221+
line = parseInt(hunkMatch[2], 10);
222222
}
223223
}
224224

0 commit comments

Comments
 (0)