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

Latest Version

Version
1.0.2
Update
September 30, 2024
Size
68.33KiB
Developer
Category
Users
79
Rating
4.66667 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
See more

GitHub PR Merge Strategy Restrictor Extension

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.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "GitHub PR Merge Strategy Restrictor", "version": "1.0.2", "description": "Control GitHub PR merge strategies based on source and destination branches, and repository.", "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "permissions": [ "storage" ], "action": { "default_popup": "popup.html" }, "content_scripts": [ { "matches": [ "*://github.com/*", "*://www.github.com/*" ], "js": [ "content.js" ] } ]}
Read more

How to download and manually install GitHub PR Merge Strategy Restrictor extension for Chrome

Looking for a way to install GitHub PR Merge Strategy Restrictor extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install GitHub PR Merge Strategy Restrictor extensions manually, this article outlines two simple methods to effortlessly install GitHub PR Merge Strategy Restrictor extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download GitHub PR Merge Strategy Restrictor extension and manually install through Drag &Drop

If you ever need to manually install a GitHub PR Merge Strategy Restrictor extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the GitHub PR Merge Strategy Restrictor Extension by clicking the "Download CRX" button on the website.

Look for the GitHub PR Merge Strategy Restrictor extension you wish to install. Go to the website and download the GitHub PR Merge Strategy Restrictor extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for GitHub PR Merge Strategy Restrictor extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the GitHub PR Merge Strategy Restrictor extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download GitHub PR Merge Strategy Restrictor extension for Chrome and install in Developer Mode

This is another method to install GitHub PR Merge Strategy Restrictor extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the GitHub PR Merge Strategy Restrictor extension file

Select and download the GitHub PR Merge Strategy Restrictor extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the GitHub PR Merge Strategy Restrictor extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your GitHub PR Merge Strategy Restrictor extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the GitHub PR Merge Strategy Restrictor extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install GitHub PR Merge Strategy Restrictor extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

BrowserStack Bug Capture Extension · Developer Tools 79 83 ★ 3.92MiB

icon

javadoc-switcher Extension · Developer Tools 79 0 ★ 188KiB

icon

Subtracker: Manage Online Subscriptions Extension · Productivity 79 1 ★ 377KiB

icon

Refined GitHub Extension · Developer Tools 79 213 ★ 572KiB

icon

Dev Buddy AI Extension · Developer Tools 79 0 ★ 49.89KiB

icon

Netflix Subtitle Toggle Extension · Fun 79 1 ★ 8.64KiB

icon

PH Zen: Distraction-Free Product Hunt Extension · Accessibility 79 5 ★ 475KiB

icon

Vue force dev Extension · Developer Tools 79 35 ★ 38.0KiB

icon

ChatGPT Automator Extension · Productivity 79 0 ★ 183KiB

icon

GitHub S&M Blocker Extension · Developer Tools 79 5 ★ 147KiB

icon

Product Hunt Extension: Helper Extension · Productivity 79 1 ★ 2.43MiB

icon

Cryptip Extension · Productivity 79 1 ★ 122KiB

icon

Confluence Chrome Extension - Meetical Extension · Productivity 79 17 ★ 9.74MiB

icon

Vue.js devtools Extension · Developer Tools 79 43 ★ 2.08MiB

icon

Add to Dash Extension · Developer Tools 79 0 ★ 39.27KiB

icon

github-material-icon-theme Extension · Productivity 79 0 ★ 39.52KiB

icon

UPChats - Productivity in Instagram and WhatsApp conversations Extension · Social & Communication 79 5 ★ 319KiB

icon

Owledge Extension · Productivity 79 1 ★ 8.8MiB

icon

Alan AI Plugin Extension · Social & Communication 79 7 ★ 2.07MiB

icon

Css snippets Extension · Productivity 79 0 ★ 107KiB

icon

Product Hunt Twitter Extension · Productivity 79 0 ★ 104KiB

icon

Datoris Interactive data visualizations Extension · Productivity 79 3 ★ 1.16MiB

icon

Node.js Document Search Extension · Developer Tools 79 0 ★ 179KiB

icon

TabCrunch - AI Tab Manager Extension · Productivity 79 0 ★ 3.22MiB