forked from Gitlink/forgeplus
修复: 合并请求评论类型允许为空
This commit is contained in:
parent
024bc289de
commit
a9811768d4
|
@ -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 |行号|
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue