From b058b67860df2fb6c800d633759f531245c31e6f Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Fri, 27 Jan 2023 15:04:40 +0100 Subject: [PATCH] Update src/oca_github_bot/tasks/migration_issue_bot.py Co-authored-by: Simone Rubino --- src/oca_github_bot/tasks/migration_issue_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)