Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
update all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
crfeliz authored and Carlos Feliz committed Apr 22, 2019
1 parent e2cd1b5 commit 2e8f4f5
Show file tree
Hide file tree
Showing 2,053 changed files with 460,319 additions and 132,472 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
.glide/

bin/
.idea/
issue-sync
55 changes: 28 additions & 27 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions lib/clients/jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func getErrorBody(config cfg.Config, res *jira.Response) error {
// as well as swap in other implementations, such as for dry run
// or test mocking.
type JIRAClient interface {
ListIssues(ids []int) ([]jira.Issue, error)
ListIssues(ids []int64) ([]jira.Issue, error)
GetIssue(key string) (jira.Issue, error)
CreateIssue(issue jira.Issue) (jira.Issue, error)
UpdateIssue(issue jira.Issue) (jira.Issue, error)
Expand Down Expand Up @@ -112,7 +112,7 @@ type realJIRAClient struct {
// ListIssues returns a list of JIRA issues on the configured project which
// have GitHub IDs in the provided list. `ids` should be a comma-separated
// list of GitHub IDs.
func (j realJIRAClient) ListIssues(ids []int) ([]jira.Issue, error) {
func (j realJIRAClient) ListIssues(ids []int64) ([]jira.Issue, error) {
log := j.config.GetLogger()

idStrs := make([]string, len(ids))
Expand Down Expand Up @@ -399,7 +399,7 @@ func truncate(s string, length int) string {
// list of GitHub IDs.
//
// This function is identical to that in realJIRAClient.
func (j dryrunJIRAClient) ListIssues(ids []int) ([]jira.Issue, error) {
func (j dryrunJIRAClient) ListIssues(ids []int64) ([]jira.Issue, error) {
log := j.config.GetLogger()

idStrs := make([]string, len(ids))
Expand Down
2 changes: 1 addition & 1 deletion lib/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func CompareComments(config cfg.Config, ghIssue github.Issue, jIssue jira.Issue,
}
// matches[0] is the whole string, matches[1] is the ID
matches := jCommentIDRegex.FindStringSubmatch(jComment.Body)
id, _ := strconv.Atoi(matches[1])
id, _ := strconv.ParseInt(matches[1], 10, 64)
if *ghComment.ID != id {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion lib/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func CompareIssues(config cfg.Config, ghClient clients.GitHubClient, jiraClient
return nil
}

ids := make([]int, len(ghIssues))
ids := make([]int64, len(ghIssues))
for i, v := range ghIssues {
ids[i] = v.GetID()
}
Expand Down
3 changes: 3 additions & 0 deletions vendor/github.com/andygrunwald/go-jira/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions vendor/github.com/andygrunwald/go-jira/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions vendor/github.com/andygrunwald/go-jira/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions vendor/github.com/andygrunwald/go-jira/Gopkg.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e8f4f5

Please sign in to comment.