joshdk / joshdk/drone-github-comment

trace stripping (`verbatim: false`) doesn't work with multi-line commands

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

e.g. if I have a step command of `echo "foo\nbar"`, then drone will print:
```
+ echo foo
bar
foo
bar
```

drone-github-comment strips with `verbatim: false` only strips the first line, confusingly leaving the github comment as:
```
bar
foo
bar
```

Related link: [How drone's tracing is done](https://github.com/harness/drone/blob/e482ef2790349f500454c3f5c21b37cd70e0d0f2/yaml/transform/command.go#L80-L83)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.