Skip to content

Add main PR source branch guard - #2

Merged
XukeWei-cc merged 1 commit into
mainfrom
feature-branch-protection-rules
Jul 9, 2026
Merged

Add main PR source branch guard#2
XukeWei-cc merged 1 commit into
mainfrom
feature-branch-protection-rules

Conversation

@XukeWei-cc

Copy link
Copy Markdown
Contributor

Adds a required-check workflow candidate that fails PRs targeting main unless the source branch name matches feature-* or fix-*.

After this lands on main, configure main branch protection to require the check named Validate PR source branch.

@XukeWei-cc
XukeWei-cc merged commit 79cdf50 into main Jul 9, 2026
1 check passed
@XukeWei-cc
XukeWei-cc deleted the feature-branch-protection-rules branch July 9, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant