Added default status label lists to BugbotServerGiteaAPI, even though they are blank by default.
This commit is contained in:
parent
fc99f7c468
commit
097990dcbe
@ -15,6 +15,10 @@ const DEFAULT_OS_LABEL_PREFIX : StringName = &"OS/"
|
|||||||
const DEFAULT_COMPONENT_LABEL_PREFIX : StringName = &"Component/"
|
const DEFAULT_COMPONENT_LABEL_PREFIX : StringName = &"Component/"
|
||||||
const DEFAULT_PRIORITY_LABEL_PREFIX : StringName = &"Priority/"
|
const DEFAULT_PRIORITY_LABEL_PREFIX : StringName = &"Priority/"
|
||||||
const DEFAULT_SHOW_ASSIGNED_AS_IN_PROGRESS : bool = true
|
const DEFAULT_SHOW_ASSIGNED_AS_IN_PROGRESS : bool = true
|
||||||
|
|
||||||
|
const DEFAULT_UNRESOLVED_STATUSES : Array = []
|
||||||
|
const DEFAULT_IN_PROGRESS_STATUSES : Array = []
|
||||||
|
const DEFAULT_RESOLVED_STATUSES : Array = []
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@ -44,9 +48,9 @@ func __return_list_of_bugs_thread(map_name:String, callback:Callable) -> void:
|
|||||||
"show_in_progress": ProjectSettings.get_setting("bugbot/markers/in_progress/show_in_progress_bugs", BugbotServerAPI.DEFAULT_SHOW_IN_PROGRESS_BUGS),
|
"show_in_progress": ProjectSettings.get_setting("bugbot/markers/in_progress/show_in_progress_bugs", BugbotServerAPI.DEFAULT_SHOW_IN_PROGRESS_BUGS),
|
||||||
"show_resolved": ProjectSettings.get_setting("bugbot/markers/resolved/show_resolved_bugs", BugbotServerAPI.DEFAULT_SHOW_RESOLVED_BUGS),
|
"show_resolved": ProjectSettings.get_setting("bugbot/markers/resolved/show_resolved_bugs", BugbotServerAPI.DEFAULT_SHOW_RESOLVED_BUGS),
|
||||||
|
|
||||||
"unresolved_labels": ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/unresolved_statuses", Array()),
|
"unresolved_labels": ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/unresolved_statuses", DEFAULT_UNRESOLVED_STATUSES),
|
||||||
"in_progress_labels": ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/in_progress_statuses", Array()),
|
"in_progress_labels": ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/in_progress_statuses", DEFAULT_IN_PROGRESS_STATUSES),
|
||||||
"resolved_labels": ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/resolved_statuses", Array()),
|
"resolved_labels": ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/resolved_statuses", DEFAULT_RESOLVED_STATUSES),
|
||||||
}
|
}
|
||||||
for bug_in:Dictionary in response_data:
|
for bug_in:Dictionary in response_data:
|
||||||
var assigned_as_in_progress : bool = ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/show_assigned_as_in_progress", DEFAULT_SHOW_ASSIGNED_AS_IN_PROGRESS)
|
var assigned_as_in_progress : bool = ProjectSettings.get_setting("bugbot/reporting/gitea/status_labels/show_assigned_as_in_progress", DEFAULT_SHOW_ASSIGNED_AS_IN_PROGRESS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user