Skip to content

Commit

Permalink
Merge pull request qodo-ai#412 from Codium-ai/ok/fix_gitlab_bug
Browse files Browse the repository at this point in the history
Update get_repo_settings to decode file from target branch in gitlab_…
  • Loading branch information
hussam789 authored Oct 30, 2023
2 parents 66644f0 + 4bda9df commit dcac6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_agent/git_providers/gitlab_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def get_issue_comments(self):

def get_repo_settings(self):
try:
contents = self.gl.projects.get(self.id_project).files.get(file_path='.pr_agent.toml', ref=self.mr.source_branch).decode()
contents = self.gl.projects.get(self.id_project).files.get(file_path='.pr_agent.toml', ref=self.mr.target_branch).decode()
return contents
except Exception:
return ""
Expand Down

0 comments on commit dcac6c1

Please sign in to comment.