Skip to content

Commit 88f273d

Browse files
supervisor: make JIRA issue status change comments more explicit
- added a clear "Changing status from X => Y" at the start of comments
1 parent ec37190 commit 88f273d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

supervisor/issue_handler.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def __init__(
3434
self.issue = issue
3535

3636
def resolve_set_status(self, status: IssueStatus, why: str):
37-
change_issue_status(self.issue.key, status, why, dry_run=self.dry_run)
37+
comment = f"*Changing status from {self.issue.status} => {status}*\n\n{why}"
38+
change_issue_status(self.issue.key, status, comment, dry_run=self.dry_run)
3839

3940
if status in (IssueStatus.RELEASE_PENDING, IssueStatus.CLOSED):
4041
reschedule_delay = -1
@@ -213,9 +214,7 @@ async def run_after_errata_created(self) -> WorkflowResult:
213214
elif testing_analysis.state == TestingState.PASSED:
214215
return self.resolve_set_status(
215216
IssueStatus.RELEASE_PENDING,
216-
testing_analysis.comment
217-
or "Final testing has passed, moving to Release Pending. "
218-
"(The testing analysis agent returned an empty comment)",
217+
testing_analysis.comment or "Final testing has passed.",
219218
)
220219
else:
221220
raise ValueError(f"Unknown testing state: {testing_analysis.state}")

0 commit comments

Comments
 (0)