Browse Source

add repositories replace_file json

pull/342/head
chenjing 3 years ago
parent
commit
4c1bcd87a2
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      app/views/repositories/replace_file.json.jbuilder

+ 11
- 0
app/views/repositories/replace_file.json.jbuilder View 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

Loading…
Cancel
Save