Skip to content

Commit

Permalink
feat(default-merge-strategy): choose default merge strategy (#91)
Browse files Browse the repository at this point in the history
Choose either "Merge commit" or "Squash" as the default merge strategy for pull requests in the Options page

Closes issue #90
  • Loading branch information
reyronald committed Dec 8, 2017
1 parent c94e7ee commit aa0a56f
Show file tree
Hide file tree
Showing 18 changed files with 284 additions and 264 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Next Version

### Features:

* **Default-merge-strategy**: Choose either "Merge commit" or "Squash" as the default merge strategy for pull requests in the Options page, closes [issue #90](https://github.com/refined-bitbucket/refined-bitbucket/issues/90), [pull request #91](https://github.com/refined-bitbucket/refined-bitbucket/pull/91).

### Improvements:

* **General**: Added checkboxes in the Options page to allow the user to opt-in / opt-out of each feature of the extension individually, closes [issue #86](https://github.com/refined-bitbucket/refined-bitbucket/issues/86), [pull request #87](https://github.com/refined-bitbucket/refined-bitbucket/pull/87).
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ We all know BitBucket lacks some features that we have in other platforms like G
<tr>
<th width="50%">
The Options page.<br>
Showcasing <em>autocollapse</em> and <em>pullrequest-ignore</em> features configuration.
</th>
<th width="50%">
<em>pullrequest-ignore</em> and <em>load-all-diffs</em>
</th>
</tr>
<tr>
<td rowspan="2">
<img src="https://user-images.githubusercontent.com/7514993/32203196-166bd1ca-bdb8-11e7-82ca-5836780992e3.png" alt="options">
<img src="https://user-images.githubusercontent.com/7514993/33744735-1f66115c-db89-11e7-804c-9739d3619c65.png" alt="options">
</td>
<td>
<strong>pullrequest-ignore</strong><br>
Expand Down
3 changes: 0 additions & 3 deletions extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
{
"js": [
"prism.js",
"vendor/jquery-3.1.0.min.js",
"vendor/jquery.highlight.js",
"vendor/mousetrap.min.js",
"main.js"
],
"matches": [
Expand Down
7 changes: 7 additions & 0 deletions extension/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
<br>
<br>

<label> Default Merge Strategy </label>
<form id="default-merge-strategy-form" style="margin: 0.5em 0 0 1em;">
<input type="radio" name="default-merge-strategy" value="merge_commit" checked> Merge commit
<input type="radio" name="default-merge-strategy" value="squash"> Squash
</form>
<br>

<div>
<div>
<label>
Expand Down
4 changes: 0 additions & 4 deletions extension/vendor/jquery-3.1.0.min.js

This file was deleted.

155 changes: 0 additions & 155 deletions extension/vendor/jquery.highlight.js

This file was deleted.

9 changes: 0 additions & 9 deletions extension/vendor/mousetrap.min.js

This file was deleted.

Loading

0 comments on commit aa0a56f

Please sign in to comment.