Browse Source

Merge branch 'develop' into standalone_develop

pull/313/head
yystopf 3 years ago
parent
commit
7e711cfdab
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app/docs/slate/source/includes/_pulls.md
  2. +1
    -1
      app/services/api/v1/projects/pulls/journals/create_service.rb
  3. +2
    -2
      public/docs/api.html

+ 1
- 1
app/docs/slate/source/includes/_pulls.md 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 |行号|


+ 1
- 1
app/services/api/v1/projects/pulls/journals/create_service.rb 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


+ 2
- 2
public/docs/api.html View File

@@ -15296,8 +15296,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…
Cancel
Save