From 3c360801b3547cba80766403c0ee2835cb81272d Mon Sep 17 00:00:00 2001 From: 赵智超 <1012112796@qq.com> Date: Fri, 25 Sep 2020 13:18:37 +0800 Subject: Add IsTemplate option in create repo ui and api (#12942) Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH --- modules/structs/repo.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/structs') diff --git a/modules/structs/repo.go b/modules/structs/repo.go index c86b19dfd0..a8ca823ef6 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -109,6 +109,8 @@ type CreateRepoOption struct { IssueLabels string `json:"issue_labels"` // Whether the repository should be auto-intialized? AutoInit bool `json:"auto_init"` + // Whether the repository is template + Template bool `json:"template"` // Gitignores to use Gitignores string `json:"gitignores"` // License to use -- cgit v1.2.3