diff --git a/shortcuts/issue/issue.go b/shortcuts/issue/issue.go index b6501da2..a0b63472 100644 --- a/shortcuts/issue/issue.go +++ b/shortcuts/issue/issue.go @@ -42,7 +42,6 @@ func Shortcuts() []*common.Shortcut { {Name: "page", Short: "p", Usage: "Page number", Default: "1"}, {Name: "limit", Short: "l", Usage: "Items per page", Default: "20"}, }, - //后面拼接 API 路径时,需要用到 ctx.Owner 和 ctx.Repo // 如果不知道 owner 和 repo ,后续的 API 调用就不知道该往哪发请求,所以必须作为前置校验放在最前面。 Run: func(ctx *common.RuntimeContext) error { if err := ctx.ResolveOwnerRepo(); err != nil {