Support repo-specific configuration file

This commit is contained in:
Ori Kotek
2023-08-01 17:27:25 +03:00
parent 450f410e3c
commit 696e2bd6ff
2 changed files with 3 additions and 3 deletions

View File

@ -266,7 +266,7 @@ class GithubProvider(GitProvider):
def get_repo_settings(self):
try:
contents = self.repo_obj.get_contents(".pr_agent.yaml", ref=self.pr.head.sha).decoded_content
contents = self.repo_obj.get_contents(".pr_agent.toml", ref=self.pr.head.sha).decoded_content
return contents
except Exception:
return ""