5
0
Fork 0
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:
f 2023-03-13 20:47:54 -03:00
parent 72f982ee76
commit 347aba6728

View file

@ -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]