新增: 评论及审查相关接口文档

This commit is contained in:
2022-07-27 16:07:15 +08:00
parent d6b5dc326a
commit a2549f7ff1
7 changed files with 1657 additions and 12 deletions

View File

@@ -33,7 +33,8 @@ class Api::V1::Projects::Pulls::JournalsController < Api::V1::Projects::Pulls::B
end
def find_journal
@journal = Journal.find_by_id(params[:id])
@journal = @pull_request.journals.find_by_id(params[:id])
return render_not_found unless @journal.present?
end
end