aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/project.go
blob: 56505b0ca4146792ea29152e3cee5b5bc4604897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package setting

import "code.gitea.io/gitea/modules/log"

// Project settings
var (
	Project = struct {
		ProjectBoardBasicKanbanType []string
		ProjectBoardBugTriageType   []string
	}{
		ProjectBoardBasicKanbanType: []string{"To Do", "In Progress", "Done"},
		ProjectBoardBugTriageType:   []string{"Needs Triage", "High Priority", "Low Priority", "Closed"},
	}
)

func newProject() {
	if err := Cfg.Section("project").MapTo(&Project); err != nil {
		log.Fatal("Failed to map Project settings: %v", err)
	}
}