5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-18 01:36:26 +00:00

fix: add documentation to pull job #13903
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
jazzari 2023-07-27 17:02:48 -03:00
parent 8947942cb9
commit 9f5364a738
2 changed files with 2 additions and 2 deletions

View file

@ -5,9 +5,9 @@
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, message) def perform(site, usuarie, message)
site.repository.fetch
site.repository.merge(usuarie, message) if site.repository.fetch&.positive? site.repository.merge(usuarie, message) if site.repository.fetch&.positive?
end end
end end