Skip to content

Commit 6e0ea99

Browse files
committed
chore(style): semantic release template is passing style checks
1 parent 19d1c0b commit 6e0ea99

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ the digest cycle runs.
8787
* [ng-throw-error.js](ng-throw-error.js) throws an error from the digest cycle; useful for checking
8888
if your [exception handler](http://glebbahmutov.com/blog/catch-all-errors-in-angular-app/) is working.
8989

90+
## Misc snippets
91+
92+
* [github-pull-request-template.js](github-pull-request-template.js) - better GitHub pull request
93+
text, based on the blog post [Enforce standards while submitting a pull request](http://krasimirtsonev.com/blog/article/enforce-standards-while-submitting-a-pull-request) by [Krasimir Tsonev](https://github.com/krasimir).
94+
9095
All snippets, including mine are distributed under MIT license.
9196

9297
## Updating local code snippets

github-pull-request-template.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function(){
1+
(function () {
22
var textareaId = '#pull_request_body';
33
var textarea = document.querySelector(textareaId);
44
var template = '';
@@ -20,6 +20,8 @@
2020
textarea.scrollTop = 0;
2121
textarea.selectionStart = textarea.selectionEnd = firstLine.length;
2222
} else {
23+
/* global alert */
24+
/* eslint no-alert:0 */
2325
alert('You are either not on the PR page or there is no ' + textareaId + ' element.');
2426
}
25-
})();
27+
})();

0 commit comments

Comments
 (0)