GitHub PushEvent at 2014-06-26 18:05:02
Repository: literate-github
Actor: yurivkhan
Payload: {"shas":[["6e330cf54ee5141d09763db858acc48cdb339f14","0473a4ee3b375f51be1b744beb38c56199c1b9d8@gmail.com","Add pagination\n\nUp to now, the commit list only shows the last 30 commits. This might be\nenough for a small repository like this one, but not for real\nrepositories.\n\nWhen there are more commits in the selected branch, GitHub sends a\n`Link:` header in the response. We’re supposed to use it to fetch more\ncommits.\n\n* We add two static items at the beginning and end of the commit list\n  and style them to be hidden at first.\n* We add an optional `/pages/` _page_ part to our query string. If\n  specified, we add the `&page=` _page_ parameter to the API query.\n* If the API responds with a `Link:`, parse out the actual link URLs and\n  the page numbers from them; set suitable `href`s on the `next` and\n  `prev` links so that the user can bookmark those or open in another tab.\n* At the same time, hook an `onclick` function on that same link, which\n  will fetch the next or previous page without reloading. Note that we\n  have to pass a reference position where the newly fetched commits need\n  to be inserted. We pass the element _after_ which new items go, since\n  we want them to end up in reverse direction.","Yuri Khan",false]],"size":1,"ref":"refs/heads/master","head":"6e330cf54ee5141d09763db858acc48cdb339f14"}