Skip to content

Conversation

@matanlurey
Copy link
Contributor

Unblocks presubmits such as flutter/flutter#162383 without hacks required.

I want to fix this logic properly, but will do that in a follow-up.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

ship it

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App. label Jan 29, 2025
@auto-submit auto-submit bot merged commit 1562b9e into flutter:main Jan 29, 2025
4 checks passed
static bool _isFrameworkOnlyAllowed(PullRequest pullRequest) {
// An allow-list or flag checking could be done here.
// TODO(matanlurey): Debug further why this doesn't work on release branches.
if (pullRequest.base?.ref case final branch? when branch != 'master') {
Copy link
Member

Choose a reason for hiding this comment

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

This line is 100% unreadable.

if (Config.defaultBranch(commit.slug) != pullRequest.base?.ref) {
// refused.
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

K will fix

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants