You've already forked wakapi-readme-stats
newlines removed from prefix
This commit is contained in:
@@ -110,14 +110,14 @@ class GitHubManager:
|
|||||||
|
|
||||||
:param stats: Readme stats to be pushed.
|
:param stats: Readme stats to be pushed.
|
||||||
"""
|
"""
|
||||||
prefix = "README stats current output:\n\n"
|
prefix = "README stats current output:"
|
||||||
DBM.i("Commenting PR...")
|
DBM.i("Commenting PR...")
|
||||||
|
|
||||||
pull_request = GitHubManager._GITHUB.get_repo("anmol098/waka-readme-stats").get_pull(EM.PR_NUMBER)
|
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)]:
|
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)
|
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!")
|
DBM.g("PR commented!")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user