mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-19 03:06:21 +00:00
Merge branch 'issue-12980' of https://0xacab.org/sutty/sutty into 17.3.alpine.panel.sutty.nl
This commit is contained in:
commit
b1a582cbd0
1 changed files with 11 additions and 8 deletions
|
@ -3,11 +3,14 @@
|
||||||
# Permite traer los cambios desde webhooks
|
# Permite traer los cambios desde webhooks
|
||||||
|
|
||||||
class GitPullJob < ApplicationJob
|
class GitPullJob < ApplicationJob
|
||||||
# @param :site [Site]
|
# @param :site [Site]
|
||||||
# @param :usuarie [Usuarie]
|
# @param :usuarie [Usuarie]
|
||||||
# @param :message [String]
|
# @param :message [String]
|
||||||
# @return [nil]
|
# @return [nil]
|
||||||
def perform(site, usuarie, message)
|
def perform(site, usuarie, message)
|
||||||
site.repository.merge(usuarie, message) if site.repository.fetch&.positive?
|
return unless site.repository.fetch.positive?
|
||||||
end
|
|
||||||
end
|
site.repository.merge(usuarie, message)
|
||||||
|
site.reindex_changes!
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue