-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add default CommitID for create pull review api #11334
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
Conversation
If user create pull review through api but not set CommitID, I think it's necessary to use last headCommitID as default seting, or this review will be considered as stale review which is wrong Signed-off-by: a1012112796 <1012112796@qq.com>
I would move this into pull_service.CreateCodeComment ... |
I have thought about this, I didn't add it into CreateReview is because ui's Commit ID is auto added, So CommitID won't have chance to be empty. so add to api is enough, then user can gitea/templates/repo/diff/new_review.tmpl Lines 9 to 11 in 866ce12
|
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #11334 +/- ##
==========================================
+ Coverage 43.82% 43.84% +0.01%
==========================================
Files 613 613
Lines 87207 87221 +14
==========================================
+ Hits 38217 38238 +21
+ Misses 44277 44271 -6
+ Partials 4713 4712 -1
Continue to review full report at Codecov.
|
If user create pull review through api but not set CommitID, I think it's necessary to use last headCommitID as default seting, or this review will be considered as stale review which is wrong Signed-off-by: a1012112796 <1012112796@qq.com>
If user create pull review through api but not set CommitID,I think it's necessary to use last headCommitID as default seting, or this review will be considered as stale review which is wrong