mirror of https://code.forgejo.org/forgejo/runner
Handle group commands
Add handling of the `::group::` and `::endgroup::` command to produce github like results.pull/183/head
parent
5e51d8ed42
commit
3b24b73988
|
@ -392,12 +392,13 @@ func (r *Reporter) handleCommand(originalContent, command, parameters, value str
|
|||
// Not implemented yet, so just return the original content.
|
||||
return &originalContent
|
||||
case "group":
|
||||
// Returning the original content, because I think the frontend
|
||||
// will use it when rendering the output.
|
||||
return &originalContent
|
||||
// Rewriting into ##[] syntax which the frontend understands
|
||||
content := "##[group]" + value
|
||||
return &content
|
||||
case "endgroup":
|
||||
// Ditto
|
||||
return &originalContent
|
||||
content := "##[endgroup]"
|
||||
return &content
|
||||
case "stop-commands":
|
||||
r.stopCommandEndToken = value
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue