Add commit name and commit email to workspace model

This commit is contained in:
2024-11-30 13:56:07 +01:00
parent c07f19bbb3
commit 4359267d55
3 changed files with 36 additions and 11 deletions

View File

@@ -22,6 +22,8 @@ type Workspace struct {
GitToken string `json:"gitToken" validate:"required_if=GitEnabled true"`
GitAutoCommit bool `json:"gitAutoCommit"`
GitCommitMsgTemplate string `json:"gitCommitMsgTemplate"`
GitCommitName string `json:"gitCommitName"`
GitCommitEmail string `json:"gitCommitEmail" validate:"required_if=GitEnabled true,email"`
}
// Validate validates the workspace struct