2017-05-24 15 views

答えて

2

get a single PRとなり、statemergedのプロパティを確認できます。結合されている場合は、になります。それが閉じられ、マージされていない場合、が拒否された可能性があります。

実際にはが拒否されている可能性がありますが、作成者によって閉鎖されています。他のユーザー(が拒否された)または作成者(が拒否された)によって閉じられたかどうかを確認することができるかどうかはわかりません。

+0

それはしかし、これが唯一の '' open'またはclosed'することができ 'state'を提供しません。拒否されたり拒否されたり、その間の何か。/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 },

関連する問題