ci: model_replay improvements (#33753)

* diff

* tr

* cleanup

* at the end

* fix
This commit is contained in:
Maxime Desroches
2024-10-08 17:39:13 -07:00
committed by GitHub
parent 8a8d8c2272
commit 596d8b13bb
2 changed files with 42 additions and 16 deletions

View File

@@ -81,6 +81,9 @@ class GithubUtils:
r = self.api_call(github_path)
return r.json()[0]['number']
def get_bucket_link(self, bucket):
return f'https://raw.githubusercontent.com/{self.OWNER}/{self.DATA_REPO}/refs/heads/{bucket}'
def comment_on_pr(self, comment, commenter, pr_branch):
pr_number = self.get_pr_number(pr_branch)
data = f'{{"body": "{comment}"}}'