klesh opened a new issue, #4375:
URL: https://github.com/apache/incubator-devlake/issues/4375

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Test Connection always fails after refactoring.
   
   It is caused by the Test Connection passing the `conn` struct directly into 
`NewApiClientFromConnection` which should be a pointer instead, offending code:
   
https://github.com/apache/incubator-devlake/blob/d2815d5ffe4168d0080237f3c0f5ebc2240032b6/backend/plugins/github/api/connection.go#L52
   
   
   ### What do you expect to happen
   
   Github  test connection should work
   
   ### How to reproduce
   
   input valid token for github test connection, see error
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   main
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to