5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 20:46:22 +00:00

fix: legible data, remove log section

This commit is contained in:
f 2023-03-13 20:31:16 -03:00
parent 6bac8ed65d
commit 8a5ecd98f7

View file

@ -112,7 +112,6 @@ 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
@ -160,19 +159,6 @@ class GitlabNotifierJob < ApplicationJob
@client ||= GitlabApiClient.new @client ||= GitlabApiClient.new
end end
# @return [String]
def log_section
return '' unless options[:log]
<<~LOG
# Log
```
#{options[:log]}
```
LOG
end
# Muestra información de la petición # Muestra información de la petición
# #
# @return [String] # @return [String]
@ -257,8 +243,8 @@ class GitlabNotifierJob < ApplicationJob
## Data ## Data
``` ```yaml
#{pp options[:data]} #{options[:data].to_yaml}
``` ```
DATA DATA