Provisioning: commit only once staged changes (#108590)

This commit is contained in:
Roberto Jiménez Sánchez
2025-07-24 10:57:02 -05:00
committed by GitHub
parent e74b4456e4
commit 915f47befd
13 changed files with 295 additions and 99 deletions
+6
View File
@@ -103,6 +103,9 @@ type SyncJobOptions struct {
}
type ExportJobOptions struct {
// Message to use when committing the changes in a single commit
Message string `json:"message,omitempty"`
// The source folder (or empty) to export
Folder string `json:"folder,omitempty"`
@@ -116,6 +119,9 @@ type ExportJobOptions struct {
type MigrateJobOptions struct {
// Preserve history (if possible)
History bool `json:"history,omitempty"`
// Message to use when committing the changes in a single commit
Message string `json:"message,omitempty"`
}
// The job status
@@ -193,6 +193,13 @@ func schema_pkg_apis_provisioning_v0alpha1_ExportJobOptions(ref common.Reference
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"message": {
SchemaProps: spec.SchemaProps{
Description: "Message to use when committing the changes in a single commit",
Type: []string{"string"},
Format: "",
},
},
"folder": {
SchemaProps: spec.SchemaProps{
Description: "The source folder (or empty) to export",
@@ -1030,6 +1037,13 @@ func schema_pkg_apis_provisioning_v0alpha1_MigrateJobOptions(ref common.Referenc
Format: "",
},
},
"message": {
SchemaProps: spec.SchemaProps{
Description: "Message to use when committing the changes in a single commit",
Type: []string{"string"},
Format: "",
},
},
},
},
},