ysinghc opened a new pull request, #8644: URL: https://github.com/apache/incubator-devlake/pull/8644
### ⚠️ Pre Checklist - [x] I have read through the [Contributing Documentation](https://devlake.apache.org/community/). - [x] I have added relevant tests. - [ ] I have added relevant documentation. - [x] I will add labels to the PR, such as `pr-type/feature-development`. --- ### Summary This PR introduces support for GitHub OAuth token refresh logic in the GitHub plugin. It adds new fields to the `GithubConnection` model for storing refresh tokens and expiry times, and implements a `TokenProvider` with proactive and reactive refresh capabilities. The HTTP client now uses a custom `RoundTripper` to handle token refresh on 401 responses and near-expiry tokens. Relevant tests and migration scripts are included. ### Does this close any open issues? Closes #8532 (replace with actual issue number if applicable) ### Screenshots N/A ### Other Information - Migration script added for new fields in the database. - Unit and integration tests cover token refresh scenarios. -- 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]
