|
|
@@ -3,12 +3,13 @@ package types
|
|
|
import "time"
|
|
|
|
|
|
type Environment struct {
|
|
|
- ID uint `json:"id"`
|
|
|
- ProjectID uint `json:"project_id"`
|
|
|
- ClusterID uint `json:"cluster_id"`
|
|
|
- GitInstallationID uint `json:"git_installation_id"`
|
|
|
- GitRepoOwner string `json:"git_repo_owner"`
|
|
|
- GitRepoName string `json:"git_repo_name"`
|
|
|
+ ID uint `json:"id"`
|
|
|
+ ProjectID uint `json:"project_id"`
|
|
|
+ ClusterID uint `json:"cluster_id"`
|
|
|
+ GitInstallationID uint `json:"git_installation_id"`
|
|
|
+ GitRepoOwner string `json:"git_repo_owner"`
|
|
|
+ GitRepoName string `json:"git_repo_name"`
|
|
|
+ GitRepoBranches []string `json:"branches"`
|
|
|
|
|
|
Name string `json:"name"`
|
|
|
Mode string `json:"mode"`
|
|
|
@@ -18,8 +19,9 @@ type Environment struct {
|
|
|
}
|
|
|
|
|
|
type CreateEnvironmentRequest struct {
|
|
|
- Name string `json:"name" form:"required"`
|
|
|
- Mode string `json:"mode" form:"oneof=auto manual" default:"manual"`
|
|
|
+ Name string `json:"name" form:"required"`
|
|
|
+ Mode string `json:"mode" form:"oneof=auto manual" default:"manual"`
|
|
|
+ GitRepoBranches []string `json:"git_repo_branches"`
|
|
|
}
|
|
|
|
|
|
type GitHubMetadata struct {
|