Skip to content

Commit b058b67

Browse files
legalsylvainOCA-git-bot
authored andcommitted
Update src/oca_github_bot/tasks/migration_issue_bot.py
Co-authored-by: Simone Rubino <[email protected]>
1 parent a4a0262 commit b058b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/oca_github_bot/tasks/migration_issue_bot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def _check_line_issue(gh_pr_number, issue_body):
3434
regex = r"\#%s\b" % gh_pr_number
3535
for line in issue_body.split("\n"):
3636
if re.findall(regex, line):
37-
lines.append(line[:3] + "x" + line[4:])
37+
checked_line = line.replace("[ ]", "[x]", 1)
38+
lines.append(checked_line)
3839
continue
3940
lines.append(line)
4041
return "\n".join(lines)

0 commit comments

Comments
 (0)