Skip to content

Commit 65162f5

Browse files
committed
close #269 git phlow notifies about not moving jira issue in progress even though it actually does
1 parent 649521b commit 65162f5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

phlow/workon.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import (
66

77
"strconv"
88

9+
"strings"
10+
11+
"github.com/praqma/git-phlow/executor"
912
"github.com/praqma/git-phlow/githandler"
13+
"github.com/praqma/git-phlow/options"
1014
"github.com/praqma/git-phlow/plugins"
11-
"github.com/praqma/git-phlow/ui"
1215
"github.com/praqma/git-phlow/setting"
13-
"github.com/praqma/git-phlow/executor"
14-
"github.com/praqma/git-phlow/options"
15-
"strings"
16-
"errors"
16+
"github.com/praqma/git-phlow/ui"
1717
)
1818

1919
//WorkOnUpdate ...
@@ -120,14 +120,13 @@ func UpdateJIRAIssue(key string, conf *setting.ProjectSetting) (string, error) {
120120
//Get transition
121121
transition, err := plugins.GetTransitions(conf.IssueApi, key, user, token)
122122
if err == nil {
123+
123124
for _, tran := range transition.Transitions {
124125
if tran.To.StatusCategory.Name == "In Progress" {
125126
transitionErr = plugins.DoTransition(conf.IssueApi, key, user, token, tran.ID)
126-
127127
break
128128
}
129129
}
130-
transitionErr = errors.New("No 'In Progress' transition ")
131130
}
132131

133132
fmt.Printf("\n-------- Issue %s-------- \n", ui.Format.Issue(issue.Key))

0 commit comments

Comments
 (0)