default sort for issue list
This commit is contained in:
parent
ef508256e9
commit
15a1c4d63b
|
@ -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{
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue