mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-21 11:11:51 +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]
|
# @return [String]
|
||||||
def description
|
def description
|
||||||
@description ||= ''.dup.tap do |d|
|
@description ||= ''.dup.tap do |d|
|
||||||
|
d << log_section
|
||||||
d << request_section
|
d << request_section
|
||||||
d << javascript_section
|
d << javascript_section
|
||||||
d << javascript_footer
|
d << javascript_footer
|
||||||
|
@ -159,6 +160,21 @@ class GitlabNotifierJob < ApplicationJob
|
||||||
@client ||= GitlabApiClient.new
|
@client ||= GitlabApiClient.new
|
||||||
end
|
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
|
# Muestra información de la petición
|
||||||
#
|
#
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
|
Loading…
Reference in a new issue