mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 11:16:22 +00:00
Merge branch 'rails' of 0xacab.org:sutty/sutty into issue-7537
This commit is contained in:
commit
4e0d3f8f3e
4 changed files with 28 additions and 6 deletions
|
@ -52,6 +52,25 @@ $sizes: (
|
|||
--background: #{$black};
|
||||
--color: #{$cyan};
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: $white;
|
||||
color: $black;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
color: $black;
|
||||
background-color: $cyan;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: $cyan;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0 0 0 0.2rem $cyan;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Encontrar la forma de generar esto desde los locales de Rails
|
||||
|
|
|
@ -105,7 +105,7 @@ class GitlabNotifierJob < ApplicationJob
|
|||
def title
|
||||
@title ||= ''.dup.tap do |t|
|
||||
t << "[#{exception.class}] " unless javascript?
|
||||
t << exception.message
|
||||
t << exception.message[0..200]
|
||||
t << " [#{issue_data[:count]}]"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -128,6 +128,8 @@ class DeployDistributedPress < Deploy
|
|||
#
|
||||
# @return [nil]
|
||||
def create_remote_site!
|
||||
self.hostname ||= site.hostname
|
||||
|
||||
created_site = site_client.create(create_site)
|
||||
|
||||
self.remote_site_id = created_site[:id]
|
||||
|
|
|
@ -169,6 +169,12 @@ class Site
|
|||
git_sh('git', 'lfs', 'push', remote.name, default_branch)
|
||||
end
|
||||
|
||||
# Hace limpieza de LFS
|
||||
def lfs_cleanup
|
||||
git_sh("git", "lfs", "prune")
|
||||
git_sh("git", "lfs", "dedup")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# @deprecated
|
||||
|
@ -235,10 +241,5 @@ class Site
|
|||
|
||||
r&.success?
|
||||
end
|
||||
|
||||
def lfs_cleanup
|
||||
git_sh("git", "lfs", "prune")
|
||||
git_sh("git", "lfs", "dedup")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue