File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,6 @@ async function handlePullRequestEvent(eventData, jiraUtil) {
169
169
let targetStatus = null
170
170
const targetBranch = pull_request . base . ref
171
171
172
- console . log ( action )
173
-
174
172
switch ( action ) {
175
173
case 'opened' :
176
174
case 'reopened' :
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ class Jira {
253
253
console . log ( `Found ${ issues . length } issues in "${ currentStatus } " status` )
254
254
255
255
for ( const issue of issues ) {
256
- await this . transitionIssueSmart ( issue . key , newStatus )
256
+ await this . transitionIssue ( issue . key , newStatus )
257
257
}
258
258
259
259
return issues . length
@@ -290,7 +290,7 @@ class Jira {
290
290
console . log ( `Found ${ issues . length } issues mentioning PR ${ prUrl } ` )
291
291
292
292
for ( const issue of issues ) {
293
- await this . transitionIssueSmart ( issue . key , newStatus )
293
+ await this . transitionIssue ( issue . key , newStatus )
294
294
}
295
295
296
296
return issues . length
@@ -411,7 +411,7 @@ class Jira {
411
411
* @param {string } targetStatus - Target status
412
412
* @param {Map } transitionGraph - Pre-built transition graph (optional)
413
413
*/
414
- async transitionIssueSmart ( issueKey , targetStatusName ) {
414
+ async transitionIssue ( issueKey , targetStatusName ) {
415
415
try {
416
416
// Get current issue status
417
417
const issueResponse = await this . request ( `/issue/${ issueKey } ?fields=status` )
You can’t perform that action at this time.
0 commit comments