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(gittar): optimize ai code-review #6201

Merged
merged 4 commits into from
Jan 3, 2024
Merged

Conversation

sfwn
Copy link
Member

@sfwn sfwn commented Dec 28, 2023

What this PR does / why we need it:

optimize ai code-review

Which issue(s) this PR fixes:

ChangeLog

Language Changelog
🇺🇸 English optimize ai code-review
🇨🇳 中文 优化 AI 代码审查

Need cherry-pick to release versions?

Add comment like /cherry-pick release/2.4-beta.5 when this PR is merged.

For details on the cherry pick process, see the cherry pick requests section under CONTRIBUTING.md.

Copy link

codecov bot commented Dec 28, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (4341fb0) 22.60% compared to head (54717a9) 22.61%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6201   +/-   ##
=======================================
  Coverage   22.60%   22.61%           
=======================================
  Files        1830     1831    +1     
  Lines      195925   195940   +15     
=======================================
+ Hits        44296    44309   +13     
- Misses     146568   146569    +1     
- Partials     5061     5062    +1     
Files Coverage Δ
internal/tools/gittar/models/code_reviewe.go 0.00% <ø> (ø)
pkg/limit_sync_group/group.go 100.00% <100.00%> (ø)
internal/tools/gittar/models/note.go 15.22% <0.00%> (+0.07%) ⬆️
...ls/gittar/ai/cr/impl/cr_mr_code_snippet/snippet.go 8.10% <0.00%> (-0.23%) ⬇️
internal/tools/gittar/ai/cr/util/i18nutil/lang.go 64.28% <64.28%> (ø)

... and 5 files with indirect coverage changes

sfwn added 3 commits January 3, 2024 11:47
…uch than maxSize.

The behaviour should be same as sync.WaitGroup: you can add all items just once at first.
@sfwn sfwn merged commit be8f243 into erda-project:master Jan 3, 2024
28 checks passed
@sfwn
Copy link
Member Author

sfwn commented Jan 3, 2024

/cherry-pick release/2.4-beta.5

erda-bot pushed a commit to erda-bot/erda that referenced this pull request Jan 3, 2024
* limit_sync_group: fix the issue that s.Add blocked when added-items much than maxSize.

The behaviour should be same as sync.WaitGroup: you can add all items just once at first.

* optimize prompt and review result

* replace function-call by normal chat completion

* remove useless code
erda-bot added a commit that referenced this pull request Jan 3, 2024
* limit_sync_group: fix the issue that s.Add blocked when added-items much than maxSize.

The behaviour should be same as sync.WaitGroup: you can add all items just once at first.

* optimize prompt and review result

* replace function-call by normal chat completion

* remove useless code

Co-authored-by: sfwn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants