Reformat files
This commit is contained in:
parent
a5b0ed9dc4
commit
12c5fc610c
2 changed files with 8 additions and 6 deletions
|
@ -51,7 +51,7 @@ class Comments(BaseCommand):
|
|||
|
||||
for file_path in comments[author]:
|
||||
if file_path is not None:
|
||||
filename = file_path.split('/')[-1]
|
||||
filename = file_path.split("/")[-1]
|
||||
print(f"\n`{filename}`\n{'-'*(len(filename) + 2)}")
|
||||
for comment in comments[author][file_path]:
|
||||
if comment["system"]:
|
||||
|
@ -59,12 +59,12 @@ class Comments(BaseCommand):
|
|||
|
||||
if comment["type"] == "DiffNote":
|
||||
body = comment["body"].replace(
|
||||
"\n", "\n" + " " * (len(str(comment["position"]["new_line"])) + 5)
|
||||
"\n",
|
||||
"\n"
|
||||
+ " " * (len(str(comment["position"]["new_line"])) + 5),
|
||||
)
|
||||
|
||||
print(
|
||||
f"""- L{comment["position"]["new_line"]}: {body}"""
|
||||
)
|
||||
print(f"""- L{comment["position"]["new_line"]}: {body}""")
|
||||
else:
|
||||
print(f"""[{comment["created_at"]}]\n{comment["body"]}""")
|
||||
print(header)
|
||||
|
|
|
@ -57,6 +57,8 @@ class MergeRequests(BaseGitCommand):
|
|||
remove_source_branch="true",
|
||||
assignee_ids=["1772"],
|
||||
)
|
||||
mr.comment(body="Summary\n=======\n\n# TODO\n\nDiff notes\n==========\n\n# TODO\n\nCorrection (YYYY/MM/DD)\n=======================\n\n# TODO")
|
||||
mr.comment(
|
||||
body="Summary\n=======\n\n# TODO\n\nDiff notes\n==========\n\n# TODO\n\nCorrection (YYYY/MM/DD)\n=======================\n\n# TODO"
|
||||
)
|
||||
except:
|
||||
pass
|
||||
|
|
Reference in a new issue