Skip to content

Commit 4a21b76

Browse files
authored
subtask: new result should be formatted with underscores (#139)
Signed-off-by: Romain Beuque <romain.beuque@corp.ovh.com>
1 parent 46e383c commit 4a21b76

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

pkg/plugins/builtin/subtask/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ None.
3939
4040
### Output
4141
42-
| Name | Description |
43-
| ------------------- | ----------------------------------------- |
44-
| `id` | The public identifier of the task |
45-
| `state` | The state of the task |
46-
| `result` | The result of the task |
47-
| `resolverUsername` | The username of the resolver of the task |
48-
| `requesterUsername` | The username ot the requester of the task |
42+
| Name | Description |
43+
| -------------------- | ----------------------------------------- |
44+
| `id` | The public identifier of the task |
45+
| `state` | The state of the task |
46+
| `result` | The result of the task |
47+
| `resolver_username` | The username of the resolver of the task |
48+
| `requester_username` | The username ot the requester of the task |

pkg/plugins/builtin/subtask/subtask.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ func exec(stepName string, config interface{}, ctx interface{}) (interface{}, in
142142
stepError = fmt.Errorf("Task '%s' not done yet", t.PublicID)
143143
}
144144
return map[string]interface{}{
145-
"id": t.PublicID,
146-
"state": t.State,
147-
"result": t.Result,
148-
"resolverUsername": t.ResolverUsername,
149-
"requesterUsername": t.RequesterUsername,
145+
"id": t.PublicID,
146+
"state": t.State,
147+
"result": t.Result,
148+
"resolver_username": t.ResolverUsername,
149+
"requester_username": t.RequesterUsername,
150150
}, nil, stepError
151151
}

0 commit comments

Comments
 (0)