File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ Run npm scripts and develop yourself with the following process.
113113
114114Fork ` master ` branch into your personal repository.
115115Clone it to local computer. Install node modules.
116- Before starting development, you should check to haveany errors.
116+ Before starting development, you should check to have any errors.
117117
118118``` sh
119119$ git clone https://github.com/{your-personal-repo}/toast-ui.release-notes.git
Original file line number Diff line number Diff line change 33const Github = require ( 'github-api' ) ;
44const { isValidRepositoryUrl, hasGithubToken, getRepositoryInfo } = require ( './utils' ) ;
55
6+ const SUCCESS_STATUS = [ 200 , 201 ] ;
7+
68class GithubHelper {
79 /**
810 * Set authentication repository config
@@ -39,7 +41,7 @@ class GithubHelper {
3941 */
4042 _request ( api ) {
4143 return api ( ) . then ( response => {
42- if ( response . status !== 200 ) {
44+ if ( SUCCESS_STATUS . indexOf ( response . status ) < 0 ) {
4345 throw new Error ( this . _pretty ( response ) ) ;
4446 }
4547
@@ -195,7 +197,7 @@ class GithubHelper {
195197 */
196198 publishReleaseNote ( releaseNote ) {
197199 const options = {
198- tagName : this . releasingTag ,
200+ tag_name : this . releasingTag , // eslint-disable-line camelcase
199201 name : this . releasingTag ,
200202 body : releaseNote
201203 } ;
You can’t perform that action at this time.
0 commit comments