curl --location --request GET 'https://api.github.com/repos///deployments'
[
{
"created_at": "2012-07-20T01:19:13Z",
"description": "Deploy request from hubot",
"environment": "production",
"id": 42,
"node_id": "MDEwOkRlcGxveW1lbnQx",
"original_environment": "staging",
"performed_via_github_app": {},
"production_environment": true,
"repository_url": "https://api.github.com/repos/octocat/example",
"statuses_url": "https://api.github.com/repos/octocat/example/deployments/1/statuses",
"task": "deploy",
"transient_environment": true,
"updated_at": "2012-07-20T01:19:13Z",
"url": "https://api.github.com/repos/octocat/example/deployments/1"
}
]
Authorization: Bearer ********************
deploy
or deploy:migrations
).staging
or production
).【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通