Handle group commands
Add handling of the `::group::` and `::endgroup::` command to produce github like results.
This commit is contained in:
parent
5e51d8ed42
commit
3b24b73988
1 changed files with 5 additions and 4 deletions
|
@ -392,12 +392,13 @@ func (r *Reporter) handleCommand(originalContent, command, parameters, value str
|
||||||
// Not implemented yet, so just return the original content.
|
// Not implemented yet, so just return the original content.
|
||||||
return &originalContent
|
return &originalContent
|
||||||
case "group":
|
case "group":
|
||||||
// Returning the original content, because I think the frontend
|
// Rewriting into ##[] syntax which the frontend understands
|
||||||
// will use it when rendering the output.
|
content := "##[group]" + value
|
||||||
return &originalContent
|
return &content
|
||||||
case "endgroup":
|
case "endgroup":
|
||||||
// Ditto
|
// Ditto
|
||||||
return &originalContent
|
content := "##[endgroup]"
|
||||||
|
return &content
|
||||||
case "stop-commands":
|
case "stop-commands":
|
||||||
r.stopCommandEndToken = value
|
r.stopCommandEndToken = value
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue