Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-run #320

Merged
merged 1 commit into from
Sep 6, 2024
Merged

fix: re-run #320

merged 1 commit into from
Sep 6, 2024

Conversation

never112
Copy link
Contributor

@never112 never112 commented Sep 4, 2024

No description provided.

Copy link

netlify bot commented Sep 4, 2024

Deploy Preview for reviewbot-x canceled.

Name Link
🔨 Latest commit eddfb0e
🔍 Latest deploy log https://app.netlify.com/sites/reviewbot-x/deploys/66da7c879f14b60008d4e29a

server.go Outdated
installationID := event.GetInstallation().GetID()
plist, err := linters.FilterPullRequestsWithCommit(ctx, s.GithubClient(installationID), org, repo, headSha)
if err != nil {
log.Debugf("Filter pullreqeust fail %v\n", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

为何是Debug级别?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已经调整

server.go Show resolved Hide resolved
@never112 never112 force-pushed the zhou0904 branch 2 times, most recently from 882f1e9 to 4472a87 Compare September 4, 2024 09:04
StartedAt: &startTime,
Name: linterName,
HeadSHA: headSha,
DetailsURL: &url,
Copy link
Contributor

Choose a reason for hiding this comment

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

这是误加?

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.

Project coverage is 36.52%. Comparing base (432c1dd) to head (eddfb0e).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
server.go 0.00% 24 Missing ⚠️
internal/linters/github.go 0.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #320      +/-   ##
==========================================
- Coverage   37.22%   36.52%   -0.70%     
==========================================
  Files          27       27              
  Lines        1996     2034      +38     
==========================================
  Hits          743      743              
- Misses       1158     1196      +38     
  Partials       95       95              

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

@never112 never112 force-pushed the zhou0904 branch 4 times, most recently from 7b3af55 to c87d3b3 Compare September 6, 2024 02:55
repullRequests = append(repullRequests, pullRequest)
}
}
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

要先处理err

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

func FilterPullRequestsWithCommit(ctx context.Context, gc *github.Client, owner string, repo string, headSha string) ([]*github.PullRequest, error) {
plopt := github.PullRequestListOptions{}
var repullRequests []*github.PullRequest
pullRequests, _, err := gc.PullRequests.List(ctx, owner, repo, &plopt)
Copy link
Contributor

Choose a reason for hiding this comment

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

response 应该也要处理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

加了response的处理

@CarlJi CarlJi merged commit df63ef8 into qiniu:master Sep 6, 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