diff --git a/src/oca_github_bot/tasks/migration_issue_bot.py b/src/oca_github_bot/tasks/migration_issue_bot.py index dfcaef48..c07328c1 100644 --- a/src/oca_github_bot/tasks/migration_issue_bot.py +++ b/src/oca_github_bot/tasks/migration_issue_bot.py @@ -34,7 +34,8 @@ def _check_line_issue(gh_pr_number, issue_body): regex = r"\#%s\b" % gh_pr_number for line in issue_body.split("\n"): if re.findall(regex, line): - lines.append(line[:3] + "x" + line[4:]) + checked_line = line.replace("[ ]", "[x]", 1) + lines.append(checked_line) continue lines.append(line) return "\n".join(lines)