Skip to content

Add webhook_url to Stakwork's call #2647

Description

@gonzaloaune

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

  • I've tested on Chrome
  • I've created a test that...
  • I have rebased and tested locally before submitting my PR
  • I can submit a pr within 2 days of taking the bounty

Here is an example backend test

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions