Skip to content

ci: add workflow to reject PRs targeting the main branch#188528

Merged
jtmcdole merged 1 commit into
flutter:masterfrom
jtmcdole:warnOnMain
Jun 24, 2026
Merged

ci: add workflow to reject PRs targeting the main branch#188528
jtmcdole merged 1 commit into
flutter:masterfrom
jtmcdole:warnOnMain

Conversation

@jtmcdole

Copy link
Copy Markdown
Member

This adds a check that automatically fails when a pull request is opened against the main branch instead of master.

The workflow is designed to trigger on edits so that it will automatically re-run and pass once the base branch is corrected.

Fixes: #171873

This adds a check that automatically fails when a pull request is opened against the `main` branch instead of `master`.

The workflow is designed to trigger on edits so that it will automatically re-run and pass once the base branch is corrected.
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 24, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@jtmcdole
jtmcdole changed the base branch from master to main June 24, 2026 21:21
@jtmcdole

Copy link
Copy Markdown
Member Author

Works...
image

@jtmcdole
jtmcdole changed the base branch from main to master June 24, 2026 21:22
@jtmcdole
jtmcdole requested a review from Piinks June 24, 2026 21:23

@Piinks Piinks 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.

Bless it! Such a good idea. LGTM

@jtmcdole jtmcdole added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 24, 2026
@jtmcdole

Copy link
Copy Markdown
Member Author

Google testing has no tests... bypassing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Either update/block main or delete the branch

2 participants