Fixed a bug that caused Gitea markers to never have their severity set.
This commit is contained in:
parent
64d3f0a51e
commit
026f31ae35
@ -256,14 +256,17 @@ func __create_bug_data_from_server_response(bug_in:Dictionary, map_name:String,
|
||||
var unresolved_tag_found : bool = false
|
||||
|
||||
# Find which resolution statuses apply to this bug.
|
||||
var priority_prefix : String = ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/priority_label_prefix", DEFAULT_PRIORITY_LABEL_PREFIX)
|
||||
bug.is_open = (bug_in["state"] == "open")
|
||||
if not bug.is_open:
|
||||
resolved_tag_found = true
|
||||
elif assigned_as_in_progress and bug_in["assignees"] is Array:
|
||||
in_progress_tag_found = true
|
||||
else:
|
||||
for labels:Dictionary in bug_in["labels"]:
|
||||
bug_labels.append(labels["name"] as String)
|
||||
for label:Dictionary in bug_in["labels"]:
|
||||
bug_labels.append(label["name"] as String)
|
||||
if priority_prefix and label["name"].begins_with(priority_prefix):
|
||||
bug.severity = label["name"]
|
||||
for label:String in label_dict["resolved_labels"] as Array:
|
||||
if bug_labels.has(label): resolved_tag_found = true
|
||||
for label:String in label_dict["in_progress_labels"] as Array:
|
||||
@ -292,7 +295,6 @@ func __create_bug_data_from_server_response(bug_in:Dictionary, map_name:String,
|
||||
bug.component = &"Unused"
|
||||
bug.platform = &"Unused"
|
||||
bug.operating_system = &"Unused"
|
||||
bug.severity = "Severity will go here."
|
||||
bug.status = bug_in["state"]
|
||||
|
||||
return bug
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user