keon94 commented on code in PR #4027:
URL:
https://github.com/apache/incubator-devlake/pull/4027#discussion_r1072585955
##########
plugins/jira/tasks/api_client.go:
##########
@@ -32,6 +33,9 @@ func NewJiraApiClient(taskCtx core.TaskContext, connection
*models.JiraConnectio
headers := map[string]string{
"Authorization": fmt.Sprintf("Basic %v",
connection.GetEncodedToken()),
}
+ if connection.Username == "_BEARER_TOKEN_" {
Review Comment:
maybe put line 33 in an else block, so we're not double-writing the same key
to the map.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]