mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-15 04:15:18 +00:00
Fix GitLab provider to use default branch instead of target branch for repo settings
This commit is contained in:
parent
7d47bd5f5e
commit
02d9aed7fe
1 changed files with 2 additions and 1 deletions
|
|
@ -515,7 +515,8 @@ class GitLabProvider(GitProvider):
|
||||||
|
|
||||||
def get_repo_settings(self):
|
def get_repo_settings(self):
|
||||||
try:
|
try:
|
||||||
contents = self.gl.projects.get(self.id_project).files.get(file_path='.pr_agent.toml', ref=self.mr.target_branch).decode()
|
main_branch = self.gl.projects.get(self.id_project).default_branch
|
||||||
|
contents = self.gl.projects.get(self.id_project).files.get(file_path='.pr_agent.toml', ref=main_branch).decode()
|
||||||
return contents
|
return contents
|
||||||
except Exception:
|
except Exception:
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue