修复: 合并请求评论类型允许为空

This commit is contained in:
yystopf 2022-08-04 15:46:19 +08:00
parent 024bc289de
commit a9811768d4
3 changed files with 4 additions and 4 deletions

View File

@ -1372,7 +1372,7 @@ await octokit.request('POST /api/v1/yystopf/ceshi/pulls/1/journals.json')
|owner |是| | string |用户登录名 |
|repo |是| | string |项目标识identifier |
|index |是| | integer|合并请求序号|
|type |是| | string |评论类型 comment: 普通, problem: 需要回应的评论|
|type |否|comment| string |评论类型 comment: 普通, problem: 需要回应的评论|
|note |否| | string |评论内容|
|review_id |否| | string |审查ID|
|line_code |否| | string |行号|

View File

@ -15,7 +15,7 @@ class Api::V1::Projects::Pulls::Journals::CreateService < ApplicationService
@note = params[:note]
@commit_id = params[:commit_id]
@path = params[:path]
@type = params[:type]
@type = params[:type] || "comment"
@diff = params[:diff]
@review_id = params[:review_id]
@user = user

View File

@ -14993,8 +14993,8 @@ http://localhost:3000/api/v1/yystopf/ceshi/pulls/1/journals.json
</tr>
<tr>
<td>type</td>
<td></td>
<td></td>
<td></td>
<td>comment</td>
<td>string</td>
<td>评论类型 comment: 普通, problem: 需要回应的评论</td>
</tr>