You've already forked wakapi-readme-stats
adjusted
This commit is contained in:
@@ -190,12 +190,8 @@ async def main():
|
||||
if GHM.update_readme(stats):
|
||||
DBM.g("Readme updated!")
|
||||
else:
|
||||
DBM.i("Commenting PR...")
|
||||
pr_data = await DM.get_remote_graphql("get_pr_id", pr_number=EM.PR_NUMBER, use_github_action=True)
|
||||
pr_id = pr_data["data"]["repository"]["pullRequest"]["id"]
|
||||
await DM.get_remote_graphql("add_pr_comment", pr_id=pr_id, comment=stats, use_github_action=True)
|
||||
DBM.g("PR commented!")
|
||||
DBM.g("Debug run, readme not updated. check the latest comment for the generated stats.")
|
||||
GHM.push_to_pr(stats)
|
||||
DBM.g("Debug run, readme not updated. Check the latest comment for the generated stats.")
|
||||
await DM.close_remote_resources()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user