Add bypass branch protection rules checkbox to merge button #10472
+82
−28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #10463 by adding a "Bypass branch protection rules" checkbox to the merge button dropdown, equivalent to GitHub's "Merge without waiting for requirements to be met" functionality.
Overview
This PR implements the ability to bypass branch protection rules when merging pull requests or merge requests directly from GitButler's UI. The feature is accessible through a checkbox in the merge button's dropdown menu and provides the same functionality that GitHub and GitLab offer in their web interfaces.
Changes Made
UI Enhancement
API Integration
bypass_required_pr_reviews
parameter when bypassing is enabledskip_ci: true
andmerge_when_pipeline_succeeds: false
parametersType Safety & Architecture
ForgePrService
interface to include optionalbypassRules?: boolean
parameterTechnical Details
The implementation touches only 5 files with surgical precision:
forgePrService.ts
- Interface update for bypass parameterMergeButton.svelte
- UI checkbox and state managementgithubPrService.svelte.ts
- GitHub API parameter handlinggitlabPrService.svelte.ts
- GitLab API parameter handlingStackedPullRequestCard.svelte
- Parameter propagation for stacked PRsUser Experience
Users with appropriate permissions can now:
Testing & Quality
This feature significantly improves the developer experience by eliminating the need to switch to GitHub/GitLab's web interface just to bypass branch protection rules, keeping the entire workflow within GitButler's native application.
 *The GitButler application interface where the bypass checkbox feature is now available in merge button dropdowns*Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.