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 <[email protected]>
  • Loading branch information
legalsylvain and SirTakobi committed Jan 27, 2023
1 parent 13be841 commit 8d024f4
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 8d024f4

Please sign in to comment.