Skip to content

Commit

Permalink
Switch to stable version of go-jira and make tests green again
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrunwald committed Sep 3, 2017
1 parent 64819a1 commit e0d0898
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"bufio"
"flag"
"fmt"
"github.com/andygrunwald/go-jira"
"io/ioutil"
"log"
"os"
"regexp"

"gopkg.in/andygrunwald/go-jira.v1"
)

const (
Expand Down Expand Up @@ -104,7 +105,7 @@ func ReadIssuesFromStdin(jiraInstance *jira.Client) {
// IssueLoop will loop over issues and request jiraInstance to check if the issue exists.
func IssueLoop(issues []string, jiraInstance *jira.Client) {
for _, incomingIssue := range issues {
issue, response, err := jiraInstance.Issue.Get(incomingIssue)
issue, response, err := jiraInstance.Issue.Get(incomingIssue, nil)
if c := response.StatusCode; err != nil || (c < 200 && c > 299) {
logger.Fatalf("Issue %s: %s", incomingIssue, response.Status)
}
Expand Down

0 comments on commit e0d0898

Please sign in to comment.