2017-05-24 7 views

답변

2

get a single PR 수 있으며 statemerged 속성을 확인하십시오. 병합 된 경우 이 (가)입니다. 닫혀 있고 병합되지 않은 경우 이 거부 됨 일 수 있습니다.

실제로는 이 (가) 거부되었지만은 생성자가 종료했을 수 있습니다. 다른 사용자 (거부 ​​됨,) 또는 작성자 (이 거부 됨,)에 의해 닫혔는지 여부를 확인할 수 있는지 확실하지 않습니다.

+0

는, 그러나'state'을 제공 않습니다 이것은 단지 open' 또는'closed''이 될 수 있습니다. 수락 또는 거부 또는 그 사이에있는 모든 것./e : 편집을 보았습니다. 수락 또는 거부 여부를 확인하는 좋은 방법입니다. – nbokmans

+0

@nbokmans 답변을 업데이트했습니다. 그 점을 지적 해 주셔서 감사합니다! – Kolyunya

+0

@nbokmans - 빠른 입력을 가져 주셔서 감사합니다. 이것을 리뷰로 말할 수 있습니까? https://help.github.com/articles/approving-a-pull-request-with-required-reviews/ 링크는 검토자가 리뷰를 사용하여 PR이 거부되었다는 표시를 제공하는 변경 사항을 요청할 수 있음을 보여줍니다 변경. API에서 이것을 얻을 수 있습니까? – Gowtham

0

Github API Documentation 공식에서는 이미 병합 된 경우 merged_at 필드가있는 GET 요청이 있음을 보여줍니다. 편집 : theres 또한 병합 필드뿐만 아니라.

니펫 : ... "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6", "merged": false, "mergeable": true, "merged_by": { "login": "octocat", "id": 1, "avatar_url": "https://github.com/images/error/octocat_happy.gif", "gravatar_id": "", "url": "https://api.github.com/users/octocat", "html_url": "https://github.com/octocat", "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}", "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", "organizations_url": "https://api.github.com/users/octocat/orgs", "repos_url": "https://api.github.com/users/octocat/repos", "events_url": "https://api.github.com/users/octocat/events{/privacy}", "received_events_url": "https://api.github.com/users/octocat/received_events", "type": "User", "site_admin": false },