summaryrefslogtreecommitdiffstats
path: root/modules/forms/repo_form.go
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-01-29 16:57:45 +0800
committerGitHub <noreply@github.com>2021-01-29 16:57:45 +0800
commitf19da14c34f3a86a77b45de77f48109fa5edcf78 (patch)
tree4fff1a4533cebf812334327e2bfaf9743a90bb64 /modules/forms/repo_form.go
parentf761c82c94f27193bfb6cd0648e11e491eda4880 (diff)
downloadgitea-f19da14c34f3a86a77b45de77f48109fa5edcf78.tar.gz
gitea-f19da14c34f3a86a77b45de77f48109fa5edcf78.zip
enhancement: add signoff option in commit form (#14516)
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'modules/forms/repo_form.go')
-rw-r--r--modules/forms/repo_form.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/forms/repo_form.go b/modules/forms/repo_form.go
index 4a478c7d35..4d37ab072b 100644
--- a/modules/forms/repo_form.go
+++ b/modules/forms/repo_form.go
@@ -698,6 +698,7 @@ type EditRepoFileForm struct {
CommitChoice string `binding:"Required;MaxSize(50)"`
NewBranchName string `binding:"GitRefName;MaxSize(100)"`
LastCommit string
+ Signoff bool
}
// Validate validates the fields
@@ -733,6 +734,7 @@ type UploadRepoFileForm struct {
CommitChoice string `binding:"Required;MaxSize(50)"`
NewBranchName string `binding:"GitRefName;MaxSize(100)"`
Files []string
+ Signoff bool
}
// Validate validates the fields
@@ -766,6 +768,7 @@ type DeleteRepoFileForm struct {
CommitChoice string `binding:"Required;MaxSize(50)"`
NewBranchName string `binding:"GitRefName;MaxSize(100)"`
LastCommit string
+ Signoff bool
}
// Validate validates the fields