curl --location --request PATCH 'https://api.github.com/repos///milestones/' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "Tracking milestone for version 1.0",
"due_on": "2012-10-09T23:39:01Z",
"state": "open",
"title": "v1.0"
}'
{
"closed_at": "2013-02-12T13:22:01Z",
"closed_issues": 8,
"created_at": "2011-04-10T20:09:31Z",
"creator": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"description": "Tracking milestone for version 1.0",
"due_on": "2012-10-09T23:39:01Z",
"html_url": "https://github.com/octocat/Hello-World/milestones/v1.0",
"id": 1002604,
"labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels",
"node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==",
"number": 42,
"open_issues": 4,
"state": "open",
"title": "v1.0",
"updated_at": "2014-03-03T18:58:10Z",
"url": "https://api.github.com/repos/octocat/Hello-World/milestones/1"
}
Authorization: Bearer ********************
YYYY-MM-DDTHH:MM:SSZ
.open
or closed
.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通