Skip to content

Conversation

wwcchh0123
Copy link
Contributor

@wwcchh0123 wwcchh0123 commented Nov 1, 2024

Effect

Folding

image

Unfolding

image

Copy link

netlify bot commented Nov 1, 2024

Deploy Preview for reviewbot-x canceled.

Name Link
🔨 Latest commit b9308a5
🔍 Latest deploy log https://app.netlify.com/sites/reviewbot-x/deploys/6728719fae0a67000824ad03

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 7.14286% with 65 lines in your changes missing coverage. Please review.

Project coverage is 29.92%. Comparing base (c69e64a) to head (b9308a5).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
internal/linters/providergithub.go 0.00% 35 Missing ⚠️
internal/linters/agent.go 0.00% 17 Missing ⚠️
internal/linters/provider.go 29.41% 12 Missing ⚠️
internal/linters/linters.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #429      +/-   ##
==========================================
- Coverage   30.33%   29.92%   -0.41%     
==========================================
  Files          29       30       +1     
  Lines        3557     3622      +65     
==========================================
+ Hits         1079     1084       +5     
- Misses       2346     2406      +60     
  Partials      132      132              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wwcchh0123 wwcchh0123 force-pushed the ehance/comments1031 branch 2 times, most recently from 389360e to e7ef646 Compare November 1, 2024 08:09
config/config.go Outdated
@@ -294,11 +298,26 @@ func (c Config) GetLinterConfig(org, repo, ln string) Linter {
}

// GetCompiledIssueReferences returns the compiled issue references config for the given linter name.
func (c Config) GetCompiledIssueReferences(linterName string) []CompiledIssueReference {
func (c Config) GetCompiledIssueReferences(ctx context.Context, linterName string, githubClient *github.Client) []CompiledIssueReference {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

githubClient 跟 config 耦合在一起不合适

@wwcchh0123 wwcchh0123 force-pushed the ehance/comments1031 branch 3 times, most recently from 978b93f to 5bcd1cf Compare November 4, 2024 06:09
@CarlJi CarlJi merged commit 7357ba7 into qiniu:master Nov 5, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants