Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pr_agent/git_providers/azuredevops_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def publish_code_suggestions(self, code_suggestions: list) -> bool:
Publishes code suggestions as comments on the PR.
"""
post_parameters_list = []
status = get_settings().azure_devops.get("default_comment_status", "closed")
for suggestion in code_suggestions:
body = suggestion['body']
relevant_file = suggestion['relevant_file']
Expand All @@ -79,7 +80,7 @@ def publish_code_suggestions(self, code_suggestions: list) -> bool:
right_file_start=CommentPosition(offset=1, line=relevant_lines_start),
right_file_end=CommentPosition(offset=1, line=relevant_lines_end))
comment = Comment(content=body, comment_type=1)
thread = CommentThread(comments=[comment], thread_context=thread_context)
thread = CommentThread(comments=[comment], thread_context=thread_context, status=status)
try:
self.azure_devops_client.create_thread(
comment_thread=thread,
Expand Down