Skip to content

Commit

Permalink
Update src/oca_github_bot/tasks/migration_issue_bot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Simone Rubino <sir@takobi.online>
  • Loading branch information
legalsylvain authored and OCA-git-bot committed Feb 7, 2023
1 parent a4a0262 commit b058b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oca_github_bot/tasks/migration_issue_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b058b67

Please sign in to comment.