Skip to content

[stable] Fix space formatting in cherry-pick label for flutter_cp.dart - #191123

Merged
auto-submit[bot] merged 1 commit into
flutter:flutter-3.47-candidate.0from
flutteractionsbot:cp-stable-66a37500381a837bc01046e8e134cb4ea46bec0e
Aug 14, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:flutter-3.47-candidate.0from
flutteractionsbot:cp-stable-66a37500381a837bc01046e8e134cb4ea46bec0e

Conversation

@flutteractionsbot

@flutteractionsbot flutteractionsbot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is created by automatic cherry pick workflow
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.

Issue Link:

What is the link to the issue this cherry-pick is addressing?

N/A (Fixes cherry-pick helper script bug from #189463)

Impact Description:

What is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)?
Does it impact development (ex. flutter doctor crashes when Android Studio is installed),
or the shipping of production apps (the app crashes on launch).
This information is for domain experts and release engineers to understand the consequences of saying yes or no to the cherry pick.

When running the cherry-pick agent helper script (flutter_cp.dart) on a release branch, the script adds unspaced label arguments (cp:stable or cp:beta) instead of cp: stable or cp: beta. This results in creating unintended, duplicate repository labels.

Changelog Description:

Explain this cherry pick:

  • In one line that is accessible to most Flutter developers.
  • That describes the state prior to the fix.
  • That includes which platforms are impacted.
    See best practices for examples.

[flutter/189463] When running the cherry-pick helper script, incorrect label argument formatting causes unintended repository label creation.

Workaround:

Is there a workaround for this issue?

Manually add the correct channel label (cp: stable or cp: beta) with a space via GitHub UI/CLI, and remove the unspaced label.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

  1. Run dart .agents/skills/flutter-cherry-pick/scripts/flutter_cp.dart --pr <PR> --channel stable --action start.
  2. Verify that cp: stable (with space) is added to the PR and no duplicate unspaced label is created.

…r#189463)

Fixes the label formatting in flutter_cp.dart so that gh api adds 'cp:
<channel>' instead of creating a new label without a space.
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Aug 14, 2026
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Aug 14, 2026
@flutteractionsbot

Copy link
Copy Markdown
Contributor Author

@bkonyi please fill out the PR description above, afterwards the release team will review this request.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 14, 2026
@flutter-dashboard

Copy link
Copy Markdown

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds validation to ensure the channel argument is either 'stable' or 'beta' and updates the label generation logic in addLabel(). The reviewer suggests simplifying addLabel() by directly using the validated channel variable in the command arguments, which would eliminate the redundant switch expression.

Comment thread .agents/skills/flutter-cherry-pick/scripts/flutter_cp.dart
@bkonyi bkonyi changed the title [CP-stable]Fix space formatting in cherry-pick label for flutter_cp.dart [stable] Fix space formatting in cherry-pick label for flutter_cp.dart Aug 14, 2026
@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 14, 2026
@auto-submit
auto-submit Bot merged commit 7a013b0 into flutter:flutter-3.47-candidate.0 Aug 14, 2026
11 checks passed
@flutteractionsbot
flutteractionsbot deleted the cp-stable-66a37500381a837bc01046e8e134cb4ea46bec0e branch August 14, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD cp: review Cherry-picks in the review queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants