mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
fix: set Azure DevOps comment thread status to 'active' to prevent auto-resolve
This commit is contained in:
parent
2e75fa31bd
commit
fe62b8f7c7
1 changed files with 2 additions and 1 deletions
|
|
@ -350,7 +350,8 @@ class AzureDevopsProvider(GitProvider):
|
||||||
get_logger().debug(f"Skipping publish_comment for temporary comment: {pr_comment}")
|
get_logger().debug(f"Skipping publish_comment for temporary comment: {pr_comment}")
|
||||||
return None
|
return None
|
||||||
comment = Comment(content=pr_comment)
|
comment = Comment(content=pr_comment)
|
||||||
thread = CommentThread(comments=[comment], thread_context=thread_context, status="closed")
|
# Set status to 'active' to prevent auto-resolve (see CommentThreadStatus docs)
|
||||||
|
thread = CommentThread(comments=[comment], thread_context=thread_context, status='active')
|
||||||
thread_response = self.azure_devops_client.create_thread(
|
thread_response = self.azure_devops_client.create_thread(
|
||||||
comment_thread=thread,
|
comment_thread=thread,
|
||||||
project=self.workspace_slug,
|
project=self.workspace_slug,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue