qiniu / reviewbot

Empower Your Code Quality with Self-Hosted Automated Analysis and Review
https://reviewbot-x.netlify.app
Apache License 2.0
35 stars 15 forks source link

ehance: use github app token to clone code instead of ssh key #417

Open wwcchh0123 opened 1 month ago

wwcchh0123 commented 1 month ago
  1. main初始化token,存储 map[InstallAppID]token
  2. event 从 map 中获取token ,token 若过期 则维护更新 map[InstallAppID]token
  3. provider 拥有 getToken 能力
  4. go mod tidy 下载私有仓库所需的鉴权设置在 golangci-lint 中完成,token 从provider中获取
netlify[bot] commented 1 month ago

Deploy Preview for reviewbot-x canceled.

Name Link
Latest commit d055d80a7a29e9a88c5456bb5634eb51b3875bab
Latest deploy log https://app.netlify.com/sites/reviewbot-x/deploys/6721a1caf763b5000807e489
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0.95238% with 208 lines in your changes missing coverage. Please review.

Project coverage is 28.90%. Comparing base (736cd57) to head (d055d80). Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
server.go 0.00% 141 Missing :warning:
main.go 0.00% 39 Missing :warning:
internal/linters/go/golangci_lint/golangci_lint.go 0.00% 26 Missing :warning:
internal/linters/providergithub.go 50.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #417 +/- ## ========================================== - Coverage 30.34% 28.90% -1.44% ========================================== Files 29 29 Lines 3556 3733 +177 ========================================== Hits 1079 1079 - Misses 2345 2522 +177 Partials 132 132 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.