Skip to content

Commit

Permalink
subtask: new result should be formatted with underscores (#139)
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Beuque <[email protected]>
  • Loading branch information
rbeuque74 authored Apr 28, 2020
1 parent 46e383c commit 4a21b76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions pkg/plugins/builtin/subtask/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ None.
### Output
| Name | Description |
| ------------------- | ----------------------------------------- |
| `id` | The public identifier of the task |
| `state` | The state of the task |
| `result` | The result of the task |
| `resolverUsername` | The username of the resolver of the task |
| `requesterUsername` | The username ot the requester of the task |
| Name | Description |
| -------------------- | ----------------------------------------- |
| `id` | The public identifier of the task |
| `state` | The state of the task |
| `result` | The result of the task |
| `resolver_username` | The username of the resolver of the task |
| `requester_username` | The username ot the requester of the task |
10 changes: 5 additions & 5 deletions pkg/plugins/builtin/subtask/subtask.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ func exec(stepName string, config interface{}, ctx interface{}) (interface{}, in
stepError = fmt.Errorf("Task '%s' not done yet", t.PublicID)
}
return map[string]interface{}{
"id": t.PublicID,
"state": t.State,
"result": t.Result,
"resolverUsername": t.ResolverUsername,
"requesterUsername": t.RequesterUsername,
"id": t.PublicID,
"state": t.State,
"result": t.Result,
"resolver_username": t.ResolverUsername,
"requester_username": t.RequesterUsername,
}, nil, stepError
}

0 comments on commit 4a21b76

Please sign in to comment.