Skip to content

API DOC

Ronen edited this page Jan 3, 2020 · 14 revisions

Create Comment

POST /comment/create/

{
  "owner": "scalecube",
  "repo": "github-gateway",
  "issue_number": 1,
  "path": "src/examples/comment-template.md",
  "a-param": "some value"
}

Status Update

POST /pulls/status/update

{
  "owner" : "scalecube", "repo": "github-gateway", "pr_number":1, "sha":"81337af0a11xxxxxxxxxxxxx964c9",
  "statuses": [{
    "name" : "integration-testing",
    "status": "pending",
    "message"  : "initializing integration-testing"
  },{
    "name" : "performance-testing",
    "status": "pending",
    "message"  : "initializing performance-testing"
  }]
}

Create Web-Hook

POST /webhooks/create

{
  "owner": "scalecube",
  "repo": "github-gateway",
  "url":"http://my-server:port/any/path"
}

Get Trace data

GET /traces/get/:owner/:repo/:sha

Clone this wiki locally