Merge pull request #766 from MichaelMure/jira-fix

Michael Muré created

jira: fix incorrect client creation reusing the same credential

Change summary

bridge/jira/export.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

bridge/jira/export.go 🔗

@@ -110,7 +110,7 @@ func (je *jiraExporter) cacheAllClient(ctx context.Context, repo *cache.RepoCach
 		}
 
 		if _, ok := je.identityClient[user.Id()]; !ok {
-			client, err := buildClient(ctx, je.conf[confKeyBaseUrl], je.conf[confKeyCredentialType], creds[0])
+			client, err := buildClient(ctx, je.conf[confKeyBaseUrl], je.conf[confKeyCredentialType], cred)
 			if err != nil {
 				return err
 			}