Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) (#33569) (#33577)
Backport #33569 by @wxiaoguang * Make artifact list output has stable order * Fix #33506 * Fix #33521 * Fix #33288 * Fix #33196 * Fix #33561 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
744f7c8200
commit
76bd60fc1d
9 changed files with 45 additions and 19 deletions
|
@ -71,3 +71,10 @@ func KeysOfMap[K comparable, V any](m map[K]V) []K {
|
|||
}
|
||||
return keys
|
||||
}
|
||||
|
||||
func SliceNilAsEmpty[T any](a []T) []T {
|
||||
if a == nil {
|
||||
return []T{}
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue