diff options
author | a1012112796 <1012112796@qq.com> | 2021-01-29 16:57:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 16:57:45 +0800 |
commit | f19da14c34f3a86a77b45de77f48109fa5edcf78 (patch) | |
tree | 4fff1a4533cebf812334327e2bfaf9743a90bb64 /modules/structs/repo_file.go | |
parent | f761c82c94f27193bfb6cd0648e11e491eda4880 (diff) | |
download | gitea-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/structs/repo_file.go')
-rw-r--r-- | modules/structs/repo_file.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/repo_file.go b/modules/structs/repo_file.go index c34923e389..71733c90e7 100644 --- a/modules/structs/repo_file.go +++ b/modules/structs/repo_file.go @@ -17,6 +17,8 @@ type FileOptions struct { Author Identity `json:"author"` Committer Identity `json:"committer"` Dates CommitDateOptions `json:"dates"` + // Add a Signed-off-by trailer by the committer at the end of the commit log message. + Signoff bool `json:"signoff"` } // CreateFileOptions options for creating files |