forked from Gitlink/gitlink-cli
17 lines
446 B
Go
17 lines
446 B
Go
package issue
|
|
|
|
import (
|
|
"github.com/gitlink-org/gitlink-cli/shortcuts/common"
|
|
)
|
|
|
|
const closeIssueStatusID = 5
|
|
|
|
func newBatchCloseShortcut() *common.Shortcut {
|
|
return &common.Shortcut{
|
|
Name: "batch-close",
|
|
Description: "Close multiple issues by issue numbers or a CSV file",
|
|
Flags: batchStateFlags(),
|
|
Run: func(ctx *common.RuntimeContext) error { return runBatchStateChange(ctx, "close", closeIssueStatusID) },
|
|
}
|
|
}
|