newlines removed from prefix

This commit is contained in:
pseusys
2023-02-26 08:50:36 +01:00
parent 6f58b50f2f
commit 30c30d2c89

View File

@@ -110,14 +110,14 @@ class GitHubManager:
:param stats: Readme stats to be pushed.
"""
prefix = "README stats current output:\n\n"
prefix = "README stats current output:"
DBM.i("Commenting PR...")
pull_request = GitHubManager._GITHUB.get_repo("anmol098/waka-readme-stats").get_pull(EM.PR_NUMBER)
for comment in [ic for ic in pull_request.get_issue_comments() if ic.body.startswith(prefix)]:
DM.get_remote_graphql("hide_outdated_comment", id=comment.id)
pull_request.create_issue_comment(f"{prefix}{stats}")
pull_request.create_issue_comment(f"{prefix}\n\n{stats}")
DBM.g("PR commented!")
@staticmethod