mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge pull request 'repositories replace_file 新增返回数据' (#46) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
11
app/views/repositories/replace_file.json.jbuilder
Normal file
11
app/views/repositories/replace_file.json.jbuilder
Normal file
@@ -0,0 +1,11 @@
|
||||
json.name @file['content']['name']
|
||||
json.sha @file['content']['sha']
|
||||
json.size @file['content']['size']
|
||||
json.content @file['content']['content']
|
||||
json.encoding @file['content']['encoding']
|
||||
json.pr_id @pull_issue.try(:id)
|
||||
json.commit do
|
||||
json.message @file['commit']['message']
|
||||
json.author @file['commit']['author']
|
||||
json.committer @file['commit']['committer']
|
||||
end
|
||||
Reference in New Issue
Block a user