mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
feat: seccion de log
This commit is contained in:
parent
72f982ee76
commit
347aba6728
1 changed files with 16 additions and 0 deletions
|
@ -112,6 +112,7 @@ class GitlabNotifierJob < ApplicationJob
|
|||
# @return [String]
|
||||
def description
|
||||
@description ||= ''.dup.tap do |d|
|
||||
d << log_section
|
||||
d << request_section
|
||||
d << javascript_section
|
||||
d << javascript_footer
|
||||
|
@ -159,6 +160,21 @@ class GitlabNotifierJob < ApplicationJob
|
|||
@client ||= GitlabApiClient.new
|
||||
end
|
||||
|
||||
# @return [String]
|
||||
def log_section
|
||||
return if unless options.dig(:data, :log)
|
||||
|
||||
<<~LOG
|
||||
|
||||
# Build log
|
||||
|
||||
```
|
||||
#{option[:data].delete(:log)}
|
||||
```
|
||||
|
||||
LOG
|
||||
end
|
||||
|
||||
# Muestra información de la petición
|
||||
#
|
||||
# @return [String]
|
||||
|
|
Loading…
Reference in a new issue