5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 21:16:22 +00:00

Merge branch 'rails' into issue-7537
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-10-31 14:11:31 -03:00
commit 1d3325deaa
No known key found for this signature in database

View file

@ -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] # @return [nil]
# @return [nil] def perform(site, usuarie)
def perform(site, usuarie, message) return unless site.repository.origin
site.repository.merge(usuarie, message) if site.repository.fetch&.positive? return unless site.repository.fetch.positive?
end
end site.repository.merge(usuarie)
site.reindex_changes!
end
end