diff --git a/go.mod b/go.mod index d63da6f9..2a2ddc40 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,15 @@ module github.com/uwu-tools/gh-jira-issue-sync go 1.20 +// TODO(deps): Revert the dependency on github.com/uwu-tools/go-jira/v2 once +// https://github.com/andygrunwald/go-jira/pull/640 has merged. +// +// We temporarily forked andygrunwald/go-jira/v2 to integrate the +// changes made in #640, which fixes copying comments to Jira. +// +// ref: https://github.com/uwu-tools/gh-jira-issue-sync/issues/62 + require ( - github.com/andygrunwald/go-jira/v2 v2.0.0-20230325080157-2e11dffbdb9a github.com/cenkalti/backoff/v4 v4.2.1 github.com/dghubble/oauth1 v0.7.2 github.com/fsnotify/fsnotify v1.6.0 @@ -12,6 +19,7 @@ require ( github.com/spf13/cobra v1.7.0 github.com/spf13/viper v1.16.0 github.com/trivago/tgo v1.0.7 + github.com/uwu-tools/go-jira/v2 v2.0.0-20230801175343-52f822b5cb80 golang.org/x/oauth2 v0.10.0 golang.org/x/term v0.10.0 sigs.k8s.io/release-sdk v0.9.8-0.20230104002921-c885fdbbb791 diff --git a/go.sum b/go.sum index 5b00a13f..7f8028cf 100644 --- a/go.sum +++ b/go.sum @@ -45,8 +45,6 @@ github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4 h1:ra2OtmuW0A github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= -github.com/andygrunwald/go-jira/v2 v2.0.0-20230325080157-2e11dffbdb9a h1:qSrg15WORClvHQfGe9RyFiDG52MeEpVj5qEs6O7QBE4= -github.com/andygrunwald/go-jira/v2 v2.0.0-20230325080157-2e11dffbdb9a/go.mod h1:TrfsnL20VgD+KgEw4gbTYuSAPE8T1ZxjMCFBGgGvNvI= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= @@ -249,6 +247,8 @@ github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8 github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/trivago/tgo v1.0.7 h1:uaWH/XIy9aWYWpjm2CU3RpcqZXmX2ysQ9/Go+d9gyrM= github.com/trivago/tgo v1.0.7/go.mod h1:w4dpD+3tzNIIiIfkWWa85w5/B77tlvdZckQ+6PkFnhc= +github.com/uwu-tools/go-jira/v2 v2.0.0-20230801175343-52f822b5cb80 h1:04lJNRh1PcNJLbidSGeExaAk4xWjqSTg75HYy5Tq1aU= +github.com/uwu-tools/go-jira/v2 v2.0.0-20230801175343-52f822b5cb80/go.mod h1:mch2QHK8Jjd6Tot8qEVW329UUefiQjc92P4z98xJIKI= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/internal/config/config.go b/internal/config/config.go index ddb43c4c..e469accd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -29,12 +29,12 @@ import ( "syscall" "time" - jira "github.com/andygrunwald/go-jira/v2/cloud" "github.com/dghubble/oauth1" "github.com/fsnotify/fsnotify" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/spf13/viper" + jira "github.com/uwu-tools/go-jira/v2/cloud" "golang.org/x/term" "github.com/uwu-tools/gh-jira-issue-sync/internal/github" diff --git a/internal/http/http.go b/internal/http/http.go index 0242b050..dd273826 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -20,9 +20,9 @@ import ( "fmt" "time" - jira "github.com/andygrunwald/go-jira/v2/cloud" "github.com/cenkalti/backoff/v4" log "github.com/sirupsen/logrus" + jira "github.com/uwu-tools/go-jira/v2/cloud" ) const retryBackoffRoundRatio = time.Millisecond / time.Nanosecond diff --git a/internal/jira/comment/comment.go b/internal/jira/comment/comment.go index 9c9652f8..628159d2 100644 --- a/internal/jira/comment/comment.go +++ b/internal/jira/comment/comment.go @@ -21,9 +21,9 @@ import ( "regexp" "strconv" - gojira "github.com/andygrunwald/go-jira/v2/cloud" gogh "github.com/google/go-github/v48/github" log "github.com/sirupsen/logrus" + gojira "github.com/uwu-tools/go-jira/v2/cloud" "github.com/uwu-tools/gh-jira-issue-sync/internal/config" "github.com/uwu-tools/gh-jira-issue-sync/internal/github" diff --git a/internal/jira/issue/issue.go b/internal/jira/issue/issue.go index 5e029229..39d51827 100644 --- a/internal/jira/issue/issue.go +++ b/internal/jira/issue/issue.go @@ -21,10 +21,10 @@ import ( "strings" "time" - gojira "github.com/andygrunwald/go-jira/v2/cloud" gogh "github.com/google/go-github/v48/github" log "github.com/sirupsen/logrus" "github.com/trivago/tgo/tcontainer" + gojira "github.com/uwu-tools/go-jira/v2/cloud" "github.com/uwu-tools/gh-jira-issue-sync/internal/config" "github.com/uwu-tools/gh-jira-issue-sync/internal/github" diff --git a/internal/jira/jira.go b/internal/jira/jira.go index efbc4dec..92220746 100644 --- a/internal/jira/jira.go +++ b/internal/jira/jira.go @@ -23,9 +23,9 @@ import ( "regexp" "strings" - jira "github.com/andygrunwald/go-jira/v2/cloud" gogh "github.com/google/go-github/v48/github" log "github.com/sirupsen/logrus" + jira "github.com/uwu-tools/go-jira/v2/cloud" "github.com/uwu-tools/gh-jira-issue-sync/internal/config" "github.com/uwu-tools/gh-jira-issue-sync/internal/github"