Context
webhook_url to be added to this struct:
|
Name string `json:"name"` |
It should point to a Hive endpoint
Here for the build functionality:
|
stakworkPayload.Name = "hive_autogen" |
A successful Request will look like this:
{
"project_output": {
"set_var": {
"output": {},
"completion_time": 0.106324959
}
},
"workflow_id": 1358,
"workflow_version_id": 6155,
"workflow_version": 6155,
"project_status": "completed"
}
An errored Request will look like this:
{
"project_output": {
"set_var": {
"output": {},
"completion_time": 0.180757458
},
"sssss": {
"output": {
"error": ""
}
}
},
"workflow_id": 1358,
"workflow_version_id": 6161,
"workflow_version": 6161,
"project_status": "error",
"error": {
"message": "Error: couldn't connect to the website because couldn't find the address.",
"workflow_id": 1357,
"workflow_version_id": 1357,
"step_name": "req",
"skill_name": "request"
}
}
Design
Acceptance Criteria
Here is an example backend test
Context
webhook_urlto be added to this struct:sphinx-tribes/handlers/chat.go
Line 57 in 40399b9
It should point to a Hive endpoint
Here for the build functionality:
sphinx-tribes/handlers/chat.go
Line 548 in 40399b9
A successful Request will look like this:
An errored Request will look like this:
Design
Acceptance Criteria
Here is an example backend test