Skip to content

Commit

Permalink
Print start line number
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Apr 16, 2024
1 parent cd89a67 commit 3a0350e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ export function findTodos(prDiff: PrDiff, exclude: string[] = []): FileTodos[] {
if (match === undefined || match === null || match?.length === 0) return
const startLineNumer = parseInt(match[0])

console.log('Start line number:', startLineNumer)

// get all todos from the patch map them to the line number
const todoItems: TodoItem[] = lines
.map((line, index) => {
Expand Down

0 comments on commit 3a0350e

Please sign in to comment.