Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove rollout-title in actions (#16955)

boojackedf987d927d7
diff --git a/action/README.md b/action/README.md
index d2e520bd0e..1504ff306b 100644
--- a/action/README.md
+++ b/action/README.md
@@ -20,7 +20,7 @@ Creates a new release and initiates a rollout issue in the specified Bytebase `-
If a `--plan` is specified, it rolls out that specific plan.
Otherwise, it applies the SQL migration files matching the `--file-pattern` to the defined `--targets`.
The rollout will proceed up to the specified `--target-stage`.
-It uses global flags for connection and file discovery (unless a plan is specified), and specific flags like `--release-title` and `--rollout-title` to name the created resources in Bytebase.
+It uses global flags for connection and file discovery (unless a plan is specified), and specific flags like `--release-title` to name the created resources in Bytebase.
## Configuration
@@ -83,9 +83,6 @@ These flags are specific to the `rollout` subcommand (`bytebase-action rollout`)
- **`--release-title`**: The title of the release created in Bytebase.
- Default: The current timestamp in RFC3339 format (e.g., `2025-04-25T17:32:07+08:00`).
-- **`--rollout-title`**: The title of the rollout issue created in Bytebase.
- - Default: The current timestamp in RFC3339 format (e.g., `2025-04-25T17:32:07+08:00`).
-
- **`--check-plan`**: Determines whether to run plan checks and how to handle failures.
- Valid values:
- `SKIP`: Do not run plan checks.
diff --git a/action/command/rollout.go b/action/command/rollout.go
index 1d0af81a40..9ba8879d31 100644
--- a/action/command/rollout.go
+++ b/action/command/rollout.go
@@ -29,7 +29,6 @@ func NewRolloutCommand(w *world.World) *cobra.Command {
}
defaultTitle := time.Now().Format(time.RFC3339)
cmdRollout.Flags().StringVar(&w.ReleaseTitle, "release-title", defaultTitle, "The title of the release")
- cmdRollout.Flags().StringVar(&w.RolloutTitle, "rollout-title", defaultTitle, "The title of the rollout")
cmdRollout.Flags().StringVar(&w.CheckPlan, "check-plan", "SKIP", "Whether to check the plan and fail on warning/error. Valid values: SKIP, FAIL_ON_WARNING, FAIL_ON_ERROR")
cmdRollout.Flags().StringVar(&w.TargetStage, "target-stage", "", "Rollout up to the target stage. Format: environments/{environment}.")
cmdRollout.Flags().StringVar(&w.Plan, "plan", "", "The plan to rollout. Format: projects/{project}/plans/{plan}. Shadows file-pattern and targets.")
@@ -215,8 +214,7 @@ func runAndWaitForRollout(ctx context.Context, w *world.World, client *Client, p
rolloutEmpty, err := client.CreateRollout(ctx, &v1pb.CreateRolloutRequest{
Parent: w.Project,
Rollout: &v1pb.Rollout{
- Plan: planName,
- Title: w.RolloutTitle,
+ Plan: planName,
},
Target: &emptyTarget, // zero stage
ValidateOnly: false,
diff --git a/action/world/world.go b/action/world/world.go
index 89d491d0ba..be78974ac0 100644
--- a/action/world/world.go
+++ b/action/world/world.go
@@ -27,7 +27,6 @@ type World struct {
// bytebase-action rollout flags
ReleaseTitle string // The title of the release
- RolloutTitle string // The title of the rollout
// An enum to determine should we run plan checks and fail on warning or error.
// Valid values:
// - SKIP
diff --git a/backend/tests/action_test.go b/backend/tests/action_test.go
index 8aca05d4a2..f0c2b57343 100644
--- a/backend/tests/action_test.go
+++ b/backend/tests/action_test.go
@@ -340,7 +340,6 @@ func TestActionRolloutCommand(t *testing.T) {
"--targets", database.Name,
"--file-pattern", migrationFile,
"--release-title", "Test Release",
- "--rollout-title", "Test Rollout",
"--target-stage", "environments/prod",
"--output", outputFile,
)
@@ -488,7 +487,6 @@ func TestActionRolloutCommand(t *testing.T) {
"--targets", database.Name,
"--file-pattern", filepath.Join(testDataDir, "0000*.sql"),
"--release-title", "Multi-file Release",
- "--rollout-title", "Multi-file Rollout",
"--target-stage", "environments/prod",
"--output", outputFile,
)