ADD conflicts file for pull api

This commit is contained in:
jasder
2021-06-24 16:08:32 +08:00
parent 539b832af6
commit b7dd12927b
4 changed files with 29 additions and 0 deletions

11
app/models/gitea/pull.rb Normal file
View File

@@ -0,0 +1,11 @@
class Gitea::Pull < Gitea::Base
self.inheritance_column = nil # FIX The single-table inheritance mechanism failed
# establish_connection :gitea_db
self.table_name = "pull_request"
serialize :conflicted_files, Array
belongs_to :pull_request, class_name: '::PullRequest', foreign_key: :id, primary_key: :gpid, optional: true
end