GitHub PR Merge Strategy Restrictor

Control GitHub PR merge strategies based on source and destination branches, and repository.

Extension stats

Users: 58 ▲ 3
Rating: 4.67 (3)
Version: 1.0.2 (Last updated: 2024-10-01)
Creation date: 2024-09-27
Risk impact: Low risk impact
Risk likelihood: High risk likelihood
Manifest version: 3
Permissions:
  • storage
Size: 69.97K

Other platforms

Not available on Firefox
Not available on Edge
Want to check extension ranking and stats more quickly for other Chrome extensions? Install Chrome-Stats extension to view Chrome-Stats data as you browse the Chrome Web Store.

Extension summary

This extension helps you control GitHub PR merge strategies based on source and destination branches and repos. Since GitHub doesn't support this feature, I built it to prevent mistakes, like using the wrong merge strategy. For example, I squash all merges except when merging to master, but sometimes I make a mistake in the flow. This extension ensures that doesn't happen. You can define rules with exact branch names, wildcards, or patterns, making it flexible for different scenarios.

Example Restriction Rules:

  • You can specify exact names for the repository and branches.
  • Use * to apply the rule to all repositories or branches.
  • Use wildcards like company-name/* to match all repositories starting with 'company-name' or feature/* for all branches starting with 'feature/'.
  • You can combine these options, such as using * for the repository, an exact name for the source branch, and a wildcard for the destination branch, or any combination of these.

User reviews

Really nice! One thing is that it seems not to work when we use combinations like */*, it just ignores the branch name but other than that it's working!
by Lucas Santos, 2024-10-29

by Gaku F, 2024-10-22

Works like a charm!
by Jared Moore, 2024-10-10
View all user reviews

Extension safety

Risk impact

GitHub PR Merge Strategy Restrictor requires very minimum permissions.

Risk likelihood

GitHub PR Merge Strategy Restrictor may not be trust-worthy. Avoid installing if possible unless you really trust this publisher.

Upgrade to see risk analysis details

Similar extensions

Here are some Chrome extensions that are similar to GitHub PR Merge Strategy Restrictor: