@@ -30,7 +30,7 @@ class Issue extends Requestable {
30
30
* @return {Promise } - the promise for the http request
31
31
*/
32
32
createIssue ( issueData , cb ) {
33
- this . _request ( 'POST' , `/repos/${ this . __repository } /issues` , issueData , cb ) ;
33
+ return this . _request ( 'POST' , `/repos/${ this . __repository } /issues` , issueData , cb ) ;
34
34
}
35
35
36
36
/**
@@ -41,7 +41,7 @@ class Issue extends Requestable {
41
41
* @return {Promise } - the promise for the http request
42
42
*/
43
43
listIssues ( options , cb ) {
44
- this . _requestAllPages ( `/repos/${ this . __repository } /issues` , options , cb ) ;
44
+ return this . _requestAllPages ( `/repos/${ this . __repository } /issues` , options , cb ) ;
45
45
}
46
46
47
47
/**
@@ -52,7 +52,7 @@ class Issue extends Requestable {
52
52
* @return {Promise } - the promise for the http request
53
53
*/
54
54
listIssueComments ( issue , cb ) {
55
- this . _request ( 'GET' , `/repos/${ this . __repository } /issues/${ issue } /comments` , null , cb ) ; // jscs:ignore
55
+ return this . _request ( 'GET' , `/repos/${ this . __repository } /issues/${ issue } /comments` , null , cb ) ; // jscs:ignore
56
56
}
57
57
58
58
/**
@@ -63,7 +63,7 @@ class Issue extends Requestable {
63
63
* @return {Promise } - the promise for the http request
64
64
*/
65
65
getIssueComment ( id , cb ) {
66
- this . _request ( 'GET' , `/repos/${ this . __repository } /issues/comments/${ id } ` , null , cb ) ; // jscs:ignore
66
+ return this . _request ( 'GET' , `/repos/${ this . __repository } /issues/comments/${ id } ` , null , cb ) ; // jscs:ignore
67
67
}
68
68
69
69
/**
@@ -75,7 +75,7 @@ class Issue extends Requestable {
75
75
* @return {Promise } - the promise for the http request
76
76
*/
77
77
createIssueComment ( issue , comment , cb ) {
78
- this . _request ( 'POST' , `/repos/${ this . __repository } /issues/${ issue } /comments` , { body : comment } , cb ) ; // jscs:ignore
78
+ return this . _request ( 'POST' , `/repos/${ this . __repository } /issues/${ issue } /comments` , { body : comment } , cb ) ; // jscs:ignore
79
79
}
80
80
81
81
/**
@@ -87,7 +87,7 @@ class Issue extends Requestable {
87
87
* @return {Promise } - the promise for the http request
88
88
*/
89
89
editIssueComment ( id , comment , cb ) {
90
- this . _request ( 'PATCH' , `/repos/${ this . __repository } /issues/comments/${ id } ` , { body : comment } , cb ) ; // jscs:ignore
90
+ return this . _request ( 'PATCH' , `/repos/${ this . __repository } /issues/comments/${ id } ` , { body : comment } , cb ) ; // jscs:ignore
91
91
}
92
92
93
93
/**
@@ -98,7 +98,7 @@ class Issue extends Requestable {
98
98
* @return {Promise } - the promise for the http request
99
99
*/
100
100
deleteIssueComment ( id , cb ) {
101
- this . _request ( 'DELETE' , `/repos/${ this . __repository } /issues/comments/${ id } ` , null , cb ) ; // jscs:ignore
101
+ return this . _request ( 'DELETE' , `/repos/${ this . __repository } /issues/comments/${ id } ` , null , cb ) ; // jscs:ignore
102
102
}
103
103
104
104
/**
@@ -110,7 +110,7 @@ class Issue extends Requestable {
110
110
* @return {Promise } - the promise for the http request
111
111
*/
112
112
editIssue ( issue , issueData , cb ) {
113
- this . _request ( 'PATCH' , `/repos/${ this . __repository } /issues/${ issue } ` , issueData , cb ) ;
113
+ return this . _request ( 'PATCH' , `/repos/${ this . __repository } /issues/${ issue } ` , issueData , cb ) ;
114
114
}
115
115
116
116
/**
@@ -121,7 +121,7 @@ class Issue extends Requestable {
121
121
* @return {Promise } - the promise for the http request
122
122
*/
123
123
getIssue ( issue , cb ) {
124
- this . _request ( 'GET' , `/repos/${ this . __repository } /issues/${ issue } ` , null , cb ) ;
124
+ return this . _request ( 'GET' , `/repos/${ this . __repository } /issues/${ issue } ` , null , cb ) ;
125
125
}
126
126
}
127
127
0 commit comments