Reformat files

This commit is contained in:
Matej Focko 2020-06-08 18:05:05 +02:00
parent a5b0ed9dc4
commit 12c5fc610c
Signed by: mfocko
GPG key ID: 299B916A55682021
2 changed files with 8 additions and 6 deletions

View file

@ -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)

View file

@ -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