mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-17 21:35:17 +00:00
Update pr_agent/git_providers/azuredevops_provider.py
applied suggestion. Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
This commit is contained in:
parent
9c3972d619
commit
57ec112b4d
1 changed files with 1 additions and 3 deletions
|
|
@ -352,9 +352,7 @@ class AzureDevopsProvider(GitProvider):
|
||||||
return None
|
return None
|
||||||
comment = Comment(content=pr_comment)
|
comment = Comment(content=pr_comment)
|
||||||
|
|
||||||
status = get_settings().azure_devops.default_comment_status
|
status = get_settings().azure_devops.get("default_comment_status", "closed")
|
||||||
if status is None:
|
|
||||||
status = "closed"
|
|
||||||
thread = CommentThread(comments=[comment], thread_context=thread_context, status=status)
|
thread = CommentThread(comments=[comment], thread_context=thread_context, status=status)
|
||||||
thread_response = self.azure_devops_client.create_thread(
|
thread_response = self.azure_devops_client.create_thread(
|
||||||
comment_thread=thread,
|
comment_thread=thread,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue