warren830 opened a new pull request, #2448:
URL: https://github.com/apache/incubator-devlake/pull/2448

   # Summary
   
   Modify github test connection,
   before: config-ui send a request which contains a list of tokens, and 
backend will check one by one and return the index if one of tokens failed
   now: config-ui will only send one token per time.
   
   ```json
   POST /plugins/github/test
   REQUEST BODY:
   {
        "endpoint": "gitlab api endpoint, i.e. https://gitlab.com/api/v4/";,
        "token": "github api access token"
   }
   RESPONSE BODY:
   - Success:
   {
        "login": "xxx"
   }
   - Failure:
   {
        "success": false,
        "message": "invalid token"
   }
   ```
   
   
   
   ### Does this close any open issues?
   relate to #2423
   
   ### Screenshots
   Include any relevant screenshots here.
   
   ### Other Information
   Any other information that is important to this PR.
   


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