Skip to content

Commit 8e707c6

Browse files
committed
[IMP] make _set_lines_issue working on empty issue
1 parent 702e879 commit 8e707c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/oca_github_bot/tasks/migration_issue_bot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def _set_lines_issue(gh_pr, issue, module):
5858
lines.append(new_line)
5959
added = True
6060
lines.append(line)
61+
62+
# make the addition working on an empty migration issue
63+
if not added:
64+
lines.append(new_line)
6165
return lines
6266

6367

0 commit comments

Comments
 (0)