mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
enterprise
This commit is contained in:
parent
0b7dcf03a5
commit
faf4576f03
1 changed files with 2 additions and 1 deletions
|
|
@ -31,8 +31,9 @@ async def get_mr_url_from_commit_sha(commit_sha, gitlab_token, project_id):
|
||||||
'Private-Token': f'{gitlab_token}'
|
'Private-Token': f'{gitlab_token}'
|
||||||
}
|
}
|
||||||
# API endpoint to find MRs containing the commit
|
# API endpoint to find MRs containing the commit
|
||||||
|
gitlab_url = get_settings().get("GITLAB.URL", 'https://gitlab.com')
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
f'https://gitlab.com/api/v4/projects/{project_id}/repository/commits/{commit_sha}/merge_requests',
|
f'{gitlab_url}/api/v4/projects/{project_id}/repository/commits/{commit_sha}/merge_requests',
|
||||||
headers=headers
|
headers=headers
|
||||||
)
|
)
|
||||||
merge_requests = response.json()
|
merge_requests = response.json()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue