mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:合并请求关联疑修逻辑
This commit is contained in:
@@ -44,6 +44,8 @@ class PullRequest < ApplicationRecord
|
||||
has_many :pull_requests_reviewers, dependent: :destroy
|
||||
has_many :reviewers, through: :pull_requests_reviewers
|
||||
has_many :mark_files, dependent: :destroy
|
||||
has_many :pull_attached_issues, dependent: :destroy
|
||||
has_many :attached_issues, through: :pull_attached_issues, source: :issue
|
||||
|
||||
scope :merged_and_closed, ->{where.not(status: 0)}
|
||||
scope :opening, -> {where(status: 0)}
|
||||
|
||||
Reference in New Issue
Block a user