[refs #90] fix updating pull
This commit is contained in:
parent
49946f4f53
commit
3513d47be6
|
@ -71,7 +71,7 @@ class ActivityFeedObserver < ActiveRecord::Observer
|
|||
|
||||
when 'GitHook'
|
||||
return unless record.project
|
||||
record.project.pull_requests.needed_checking.each {|pull| pull.check}
|
||||
PullRequest.where("from_project_id = ? OR to_project_id = ?", record.project, record.project).needed_checking.each {|pull| pull.check}
|
||||
|
||||
change_type = record.change_type
|
||||
branch_name = record.refname.split('/').last
|
||||
|
|
Loading…
Reference in New Issue