Skip to content

Commit 930457b

Browse files
tphoneyactions-user
authored andcommitted
fix, temporarily disable manual labels from cli (#3277)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Temporarily disables manual labels support (keeping tags) across the Terraform workflow, submit-plan action, and CLI flags. > > - **CI/Workflows**: > - In `.github/workflows/terraform.yml`, comment out `labels` for both prod and dogfood `submit-plan` steps. > - **GitHub Action (`actions/submit-plan`)**: > - Comment out the `labels` input definition in `action.yml`. > - Skip passing `--labels` to the CLI by commenting out the labels arg handling. > - **CLI**: > - In `cli/cmd/flags.go`, comment out registration of the `labels` flag in `addChangeCreationFlags`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 333a8aca2f1716b46f7777b352b5bd6ba4bf8506. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> GitOrigin-RevId: b512fe21a0a845e13b1bb8cf9b7859ea86408b30
1 parent 716b6ef commit 930457b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/flags.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ func addChangeCreationFlags(cmd *cobra.Command) {
3131
cmd.PersistentFlags().String("terraform-plan-output", "", "Filename of cached terraform plan output for this change.")
3232
cmd.PersistentFlags().String("code-changes-diff", "", "Filename of the code diff of this change.")
3333
cmd.PersistentFlags().StringSlice("tags", []string{}, "Tags to apply to this change, these should be specified in key=value format. Multiple tags can be specified by repeating the flag or using a comma separated list.")
34-
cmd.PersistentFlags().StringSlice("labels", []string{}, "Labels to apply to this change, these should be specified in name=color format where color is a hex code (e.g., FF0000 or #FF0000). Multiple labels can be specified by repeating the flag or using a comma separated list.")
34+
// ENG-1985, disabled until we decide how manual labels and manual tags should be handled.
35+
// cmd.PersistentFlags().StringSlice("labels", []string{}, "Labels to apply to this change, these should be specified in name=color format where color is a hex code (e.g., FF0000 or #FF0000). Multiple labels can be specified by repeating the flag or using a comma separated list.")
3536
}
3637

3738
func parseTagsArgument() (*sdp.EnrichedTags, error) {

0 commit comments

Comments
 (0)