5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 17:06:22 +00:00
panel/app/jobs/git_pull_job.rb
jazzari 06ebb63d93
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: movido git lfs a método merge en repository.rb #13903
2023-07-31 14:18:07 -03:00

13 lines
No EOL
351 B
Ruby

# frozen_string_literal: true
# Permite traer los cambios desde webhooks
class GitPullJob < ApplicationJob
# @param :site [Site]
# @param :usuarie [Usuarie]
# @param :message [String]
# @return [nil]
def perform(site, usuarie, message)
site.repository.merge(usuarie, message) if site.repository.fetch&.positive?
end
end