github.com/gitbundle/modules@v0.0.0-20231025071548-85b91c5c3b01/setting/project.go (about) 1 // Copyright 2023 The GitBundle Inc. All rights reserved. 2 // Copyright 2017 The Gitea Authors. All rights reserved. 3 // Use of this source code is governed by a MIT-style 4 // license that can be found in the LICENSE file. 5 6 package setting 7 8 import "github.com/gitbundle/modules/log" 9 10 // Project settings 11 var ( 12 Project = struct { 13 ProjectBoardBasicKanbanType []string 14 ProjectBoardBugTriageType []string 15 }{ 16 ProjectBoardBasicKanbanType: []string{"To Do", "In Progress", "Done"}, 17 ProjectBoardBugTriageType: []string{"Needs Triage", "High Priority", "Low Priority", "Closed"}, 18 } 19 ) 20 21 func newProject() { 22 if err := Cfg.Section("project").MapTo(&Project); err != nil { 23 log.Fatal("Failed to map Project settings: %v", err) 24 } 25 }