mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:26:21 +00:00
fix: legible data, remove log section
This commit is contained in:
parent
6bac8ed65d
commit
8a5ecd98f7
1 changed files with 2 additions and 16 deletions
|
@ -112,7 +112,6 @@ class GitlabNotifierJob < ApplicationJob
|
|||
# @return [String]
|
||||
def description
|
||||
@description ||= ''.dup.tap do |d|
|
||||
d << log_section
|
||||
d << request_section
|
||||
d << javascript_section
|
||||
d << javascript_footer
|
||||
|
@ -160,19 +159,6 @@ class GitlabNotifierJob < ApplicationJob
|
|||
@client ||= GitlabApiClient.new
|
||||
end
|
||||
|
||||
# @return [String]
|
||||
def log_section
|
||||
return '' unless options[:log]
|
||||
|
||||
<<~LOG
|
||||
# Log
|
||||
|
||||
```
|
||||
#{options[:log]}
|
||||
```
|
||||
LOG
|
||||
end
|
||||
|
||||
# Muestra información de la petición
|
||||
#
|
||||
# @return [String]
|
||||
|
@ -257,8 +243,8 @@ class GitlabNotifierJob < ApplicationJob
|
|||
|
||||
## Data
|
||||
|
||||
```
|
||||
#{pp options[:data]}
|
||||
```yaml
|
||||
#{options[:data].to_yaml}
|
||||
```
|
||||
|
||||
DATA
|
||||
|
|
Loading…
Reference in a new issue