Kill the mutants of edit_issue: an empty edit sends nothing, and an answer on success is no failure

This commit is contained in:
Lilleman
2026-11-24 07:52:37 +01:00
parent b3bb2dd3f5
commit 0c10eeb986
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ class JiraPlan:
return version
body = body | {"fields": body.get("fields", {}) | {"fixVersions": [{"name": version}]}}
url = f"{self.epic.site}/rest/api/3/issue/{key}"
edited = edit_issue(self.epic.site, key, body, authorization, self.http) if body else None
edited = edit_issue(self.epic.site, key, body, authorization, self.http)
if isinstance(edited, Failure):
return Failure(f"cannot edit {key}: {edited.reason}; {PERHAPS_EDITED.format(key=key)}")
notes = self.relinked(issue, revision.blockers, open_keys, authorization)