Skip to content

Commit

Permalink
Merge pull request #5 from andygrunwald/make-build-green-again
Browse files Browse the repository at this point in the history
Switch to stable version of go-jira and make tests green again
  • Loading branch information
andygrunwald authored Sep 3, 2017
2 parents 64819a1 + e0d0898 commit 4ecbd49
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 4ecbd49

Please sign in to comment.