GithubでPull Requestがマージされたけどcontributorsに表示されない? 上位101番以降のcontributorを見る方法

January 31, 2015

今まであまり積極的にPull Requestを送ったりしていなかったんだけれど、先日必要性に迫られて、rs/SDWebImageにPull Requestを送った所、mergeされました!有名どころのライブラリにマージされたのは初めてだったと思うので、嬉しいです。

Merged

Fix NSNotificationCenter dispatch on subthreads. by morizotter · Pull Request #987 · rs/SDWebImage

で、早速、contoributorsの欄をわくわくしながら見たのですが、自分の名前が見つからない>< 調べてみると、Githubウェブページでは上位100番目までしか表示されないということ。

そこで、APIから見てみました

curl -i ”https://api.github.com/repos/rs/SDWebImage/contributors?page=4” > contributors.txt

{ “login”: “morizotter”, “id”: 536954, “avatar_url”: ”https://avatars.githubusercontent.com/u/536954?v=3”, “gravatar_id”: "", “url”: ”https://api.github.com/users/morizotter”, “html_url”: ”https://github.com/morizotter”, “followers_url”: ”https://api.github.com/users/morizotter/followers”, “following_url”: ”https://api.github.com/users/morizotter/following{/other\_user}”, “gists_url”: ”https://api.github.com/users/morizotter/gists{/gist\_id}”, “starred_url”: ”https://api.github.com/users/morizotter/starred{/owner}{/repo}”, “subscriptions_url”: ”https://api.github.com/users/morizotter/subscriptions”, “organizations_url”: ”https://api.github.com/users/morizotter/orgs”, “repos_url”: ”https://api.github.com/users/morizotter/repos”, “events_url”: ”https://api.github.com/users/morizotter/events{/privacy}”, “received_events_url”: ”https://api.github.com/users/morizotter/received\_events”, “type”: “User”, “site_admin”: false, “contributions”: 1 },

見れました!APIはもっと調べていけばより便利に使えそう!

参考


Profile picture

Written by morizotter who lives and works in Tokyo building useful things. You should follow them on Twitter