mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Improve TODO line number accuracy
This commit is contained in:
parent
07f231c5e4
commit
16e7542e41
4
main.py
4
main.py
@ -81,6 +81,8 @@ def main():
|
||||
'line_num': line_counter
|
||||
}
|
||||
new_issues.append(new_issue)
|
||||
line_counter += 1
|
||||
continue
|
||||
elif recording:
|
||||
# If we are recording, check if the current line continues the last.
|
||||
comment_search = comment_pattern.search(addition)
|
||||
@ -90,6 +92,8 @@ def main():
|
||||
last_issue['body'] += '\n' + comment
|
||||
line_counter += 1
|
||||
continue
|
||||
if line_counter is not None:
|
||||
line_counter += 1
|
||||
else:
|
||||
deletion_search = deletion_pattern.search(line)
|
||||
if deletion_search:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user