5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-03 00:14:16 +00:00

Merge branch 'rails' of 0xacab.org:sutty/sutty into issue-7537

This commit is contained in:
f 2024-03-25 11:07:35 -03:00
commit 4e0d3f8f3e
No known key found for this signature in database
4 changed files with 28 additions and 6 deletions

View file

@ -52,6 +52,25 @@ $sizes: (
--background: #{$black}; --background: #{$black};
--color: #{$cyan}; --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 // TODO: Encontrar la forma de generar esto desde los locales de Rails

View file

@ -105,7 +105,7 @@ class GitlabNotifierJob < ApplicationJob
def title def title
@title ||= ''.dup.tap do |t| @title ||= ''.dup.tap do |t|
t << "[#{exception.class}] " unless javascript? t << "[#{exception.class}] " unless javascript?
t << exception.message t << exception.message[0..200]
t << " [#{issue_data[:count]}]" t << " [#{issue_data[:count]}]"
end end
end end

View file

@ -128,6 +128,8 @@ class DeployDistributedPress < Deploy
# #
# @return [nil] # @return [nil]
def create_remote_site! def create_remote_site!
self.hostname ||= site.hostname
created_site = site_client.create(create_site) created_site = site_client.create(create_site)
self.remote_site_id = created_site[:id] self.remote_site_id = created_site[:id]

View file

@ -169,6 +169,12 @@ class Site
git_sh('git', 'lfs', 'push', remote.name, default_branch) git_sh('git', 'lfs', 'push', remote.name, default_branch)
end end
# Hace limpieza de LFS
def lfs_cleanup
git_sh("git", "lfs", "prune")
git_sh("git", "lfs", "dedup")
end
private private
# @deprecated # @deprecated
@ -235,10 +241,5 @@ class Site
r&.success? r&.success?
end end
def lfs_cleanup
git_sh("git", "lfs", "prune")
git_sh("git", "lfs", "dedup")
end
end end
end end