@@ -26,13 +26,16 @@ type GitopsAPISpec struct {
2626 // The repository URL, can be a HTTP or SSH address.
2727 // +kubebuilder:validation:Pattern="^(http|https|ssh)://"
2828 // +required
29- GitRepository string `json:"gitRepository,omitempty"`
30- GitUser string `json:"gitUser,omitempty"`
31- GitEmail string `json:"gitEmail,omitempty"`
32- Tags []string `json:"gitTags,omitempty"`
33- Assignee []string `json:"gitAssignee,omitempty"`
34- Branch string `json:"branch,omitempty"`
35- PullRequest bool `json:"pullRequest,omitempty"`
29+ GitRepository string `json:"gitRepository,omitempty"`
30+ GitUser string `json:"gitUser,omitempty"`
31+ GitEmail string `json:"gitEmail,omitempty"`
32+ // The branch to use as a baseline for the new branch, defaults to master
33+ Base string `json:"base,omitempty"`
34+ // The branch to push updates back to, defaults to master
35+ Branch string `json:"branch,omitempty"`
36+
37+ // Open a new Pull request from the branch back to the base
38+ PullRequest * PullRequestTemplate `json:"pullRequest,omitempty"`
3639
3740 // The secret name containing the Git credentials.
3841 // For SSH repositories the secret must contain SSH_PRIVATE_KEY, SSH_PRIVATE_KEY_PASSORD
@@ -58,6 +61,14 @@ type GitopsAPISpec struct {
5861 Path string `json:"path,omitempty"`
5962}
6063
64+ type PullRequestTemplate struct {
65+ Body string `json:"body,omitempty"`
66+ Title string `json:"title,omitempty"`
67+ Reviewers []string `json:"reviewers,omitempty"`
68+ Assignees []string `json:"assignees,omitempty"`
69+ Tags []string `json:"tags,omitempty"`
70+ }
71+
6172// GitopsAPIStatus defines the observed state of GitopsAPI
6273type GitopsAPIStatus struct {
6374}
0 commit comments