default sort for issue list

This commit is contained in:
HJJ 2024-04-10 10:31:10 +08:00
parent ef508256e9
commit 15a1c4d63b
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ var ListCmd = &cobra.Command{
payload["search"] = search payload["search"] = search
payload["page"] = "1" payload["page"] = "1"
payload["per_page"] = strconv.Itoa(limit) payload["per_page"] = strconv.Itoa(limit)
payload["sort"] = "created_at"
payload["direction"] = "desc"
_issues, _ := issue.Find(enterprise.Id, payload) _issues, _ := issue.Find(enterprise.Id, payload)
columns := []table.Column{ columns := []table.Column{

View File

@ -17,7 +17,7 @@ var RootCmd = &cobra.Command{
Use: "gitee", Use: "gitee",
Short: "Gitee In terminal", Short: "Gitee In terminal",
Long: "Gitee CLI is a tool which interact with gitee server seamlessly via terminal", Long: "Gitee CLI is a tool which interact with gitee server seamlessly via terminal",
Version: "0.0.2", Version: "0.0.3",
} }
func init() { func init() {