update README.md

This commit is contained in:
AJ ONeal 2021-02-24 12:15:05 -07:00
parent 4a67172f81
commit fe4b72eeb6
1 changed files with 50 additions and 9 deletions

View File

@ -170,18 +170,24 @@ GET /api/admin/jobs
"success": true, "success": true,
"jobs": [ "jobs": [
{ {
"job_id": "XXXXXXXXXXXX", "id": "XXXXXXXXXXXX",
"created_at": "2020-01-01T12:30:45.999Z", "_job_id": "XXXXXXXXXXXX", // replaced with jobs[].id
"started_at": "2020-01-01T12:30:45.999Z",
"_created_at": "2020-01-01T12:30:45.999Z", // replaced with jobs[].ref.timestamp
"ref": { "ref": {
"repo_id": "github.com/example-org/example-project",
"timestamp": "2001-02-03T16:30:00.999Z",
"https_url": "https://github.com/example-org/example-project.git", "https_url": "https://github.com/example-org/example-project.git",
"ssh_url": "git@github.com:example-org/example-project.git", "ssh_url": "git@github.com:example-org/example-project.git",
"rev": "xxxxxxx", "rev": "abcdef7",
"ref": "refs/heads/demo", "ref": "refs/heads/master",
"ref_type": "branch", "ref_type": "branch",
"ref_name": "master", "ref_name": "master",
"repo_owner": "example-org", "repo_owner": "example-org",
"repo_name": "example-project" "repo_name": "example-project"
} },
"ended_at": "2001-02-03T16:30:04.999Z",
"exit_code": 0
} }
] ]
} }
@ -191,8 +197,43 @@ POST /api/admin/jobs
{ "success": true } { "success": true }
GET /api/admin/logs/{job_id}
{
"success": true,
"started_at": "2001-02-03T16:30:01.999Z",
"id": "github.com/org/repo#abcdef7",
"ref": {
"repo_id": "github.com/org/repo",
"timestamp": "2001-02-03T16:30:00.999Z",
"https_url": "https://github.com/org/repo.git",
"ssh_url": "git@github.com:org/repo.git",
"rev": "abcdef7",
"ref": "refs/heads/master",
"ref_type": "branch",
"ref_name": "master",
"repo_owner": "org",
"repo_name": "repo"
},
"ended_at": "2001-02-03T16:30:04.999Z",
"exit_code": 0,
"logs": [
{
"timestamp": "2001-02-03T16:30:02.999Z",
"stderr": false,
"text": "Cloning into '/tmp/tmp.vksS1ln6Wv/repo'...\n"
},
{
"timestamp": "2001-02-03T16:30:03.999Z",
"stderr": false,
"text": "Nothing to do for github.com/org/repo#master\n"
}
]
}
# note: see --help for how to use --promotions # note: see --help for how to use --promotions
POST /api/admin/promote POST /api/admin/promote
{ "clone_url": "https://...", "ref_name": "development" } { "clone_url": "https://...", "ref_name": "development" }
{ "success": true, "promote_to": "staging" } { "success": true, "promote_to": "staging" }