Вы можете использовать API событий Issues .Чтобы проверить это, я перешел к тестовой проблеме и:
- Добавлен этап
new
- Добавлен этап
two
После использования этой конечной точкизапрос API Я получил три события, два с типом milestoned
и одно demilestoned
.Конечная точка позволяет вам фильтровать эти события специально для устранения шума при очень активных проблемах.Вот пример ответа (с запутанными данными)
[
{
"id": 2193329921,
"url": "https://api.github.com/repos/myOrg/myRepo/issues/events/2193329921",
"actor": {
"login": "myuser",
"id": 1192590,
"node_id": "MDQ6VXNlcjExOTI1OTA=",
"gravatar_id": "",
"url": "https://api.github.com/users/myuser",
"html_url": "https://github.com/myuser",
"followers_url": "https://api.github.com/users/myuser/followers",
"following_url": "https://api.github.com/users/myuser/following{/other_user}",
"gists_url": "https://api.github.com/users/myuser/gists{/gist_id}",
"starred_url": "https://api.github.com/users/myuser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/myuser/subscriptions",
"organizations_url": "https://api.github.com/users/myuser/orgs",
"repos_url": "https://api.github.com/users/myuser/repos",
"events_url": "https://api.github.com/users/myuser/events{/privacy}",
"received_events_url": "https://api.github.com/users/myuser/received_events",
"type": "User",
"site_admin": true
},
"event": "milestoned",
"commit_id": null,
"commit_url": null,
"created_at": "2019-03-11T09:42:00Z",
"milestone": {
"title": "new"
}
},
{
"id": 2193330104,
"url": "https://api.github.com/repos/myOrg/myRepo/issues/events/2193330104",
"actor": {
"login": "myuser",
"id": 1192590,
"url": "https://api.github.com/users/myuser",
"html_url": "https://github.com/myuser",
"followers_url": "https://api.github.com/users/myuser/followers",
"following_url": "https://api.github.com/users/myuser/following{/other_user}",
"gists_url": "https://api.github.com/users/myuser/gists{/gist_id}",
"starred_url": "https://api.github.com/users/myuser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/myuser/subscriptions",
"organizations_url": "https://api.github.com/users/myuser/orgs",
"repos_url": "https://api.github.com/users/myuser/repos",
"events_url": "https://api.github.com/users/myuser/events{/privacy}",
"received_events_url": "https://api.github.com/users/myuser/received_events",
"type": "User",
"site_admin": true
},
"event": "demilestoned",
"commit_id": null,
"commit_url": null,
"created_at": "2019-03-11T09:42:04Z",
"milestone": {
"title": "new"
}
},
{
"id": 2193330105,
"url": "https://api.github.com/repos/myOrg/myRepo/issues/events/2193330105",
"actor": {
"login": "myuser",
"url": "https://api.github.com/users/myuser",
"html_url": "https://github.com/myuser",
"followers_url": "https://api.github.com/users/myuser/followers",
"following_url": "https://api.github.com/users/myuser/following{/other_user}",
"gists_url": "https://api.github.com/users/myuser/gists{/gist_id}",
"starred_url": "https://api.github.com/users/myuser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/myuser/subscriptions",
"organizations_url": "https://api.github.com/users/myuser/orgs",
"repos_url": "https://api.github.com/users/myuser/repos",
"events_url": "https://api.github.com/users/myuser/events{/privacy}",
"received_events_url": "https://api.github.com/users/myuser/received_events",
"type": "User",
"site_admin": true
},
"event": "milestoned",
"commit_id": null,
"commit_url": null,
"created_at": "2019-03-11T09:42:04Z",
"milestone": {
"title": "second"
}
}
]