From 30c30d2c89efdfb4d8a0817084f823e81e3c217c Mon Sep 17 00:00:00 2001 From: pseusys Date: Sun, 26 Feb 2023 08:50:36 +0100 Subject: [PATCH] newlines removed from prefix --- sources/manager_github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/manager_github.py b/sources/manager_github.py index 3c95b4f..f57033c 100644 --- a/sources/manager_github.py +++ b/sources/manager_github.py @@ -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