mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 23:46:22 +00:00
fix: add documentation to pull job #13903
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
8947942cb9
commit
9f5364a738
2 changed files with 2 additions and 2 deletions
|
@ -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
|
|
@ -56,7 +56,7 @@ class Site
|
||||||
# Incorpora los cambios en el repositorio actual
|
# Incorpora los cambios en el repositorio actual
|
||||||
#
|
#
|
||||||
# @return [Rugged::Commit]
|
# @return [Rugged::Commit]
|
||||||
def merge(usuarie, message= I18n.t('sites.fetch.merge.message'))
|
def merge(usuarie, message = I18n.t('sites.fetch.merge.message'))
|
||||||
merge = rugged.merge_commits(head_commit, remote_head_commit)
|
merge = rugged.merge_commits(head_commit, remote_head_commit)
|
||||||
|
|
||||||
# No hacemos nada si hay conflictos, pero notificarnos
|
# No hacemos nada si hay conflictos, pero notificarnos
|
||||||
|
|
Loading…
Reference in a new issue