{"action":"created","issue":{"url":"https://api.github.com/repos/kohsuke/github-api/issues/224","labels_url":"https://api.github.com/repos/kohsuke/github-api/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/kohsuke/github-api/issues/224/comments","events_url":"https://api.github.com/repos/kohsuke/github-api/issues/224/events","html_url":"https://github.com/kohsuke/github-api/pull/224","id":109951571,"number":224,"title":"Remove trailing slash when requesting directory content","user":{"login":"Shredder121","id":4105066,"avatar_url":"https://avatars.githubusercontent.com/u/4105066?v=3","gravatar_id":"","url":"https://api.github.com/users/Shredder121","html_url":"https://github.com/Shredder121","followers_url":"https://api.github.com/users/Shredder121/followers","following_url":"https://api.github.com/users/Shredder121/following{/other_user}","gists_url":"https://api.github.com/users/Shredder121/gists{/gist_id}","starred_url":"https://api.github.com/users/Shredder121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shredder121/subscriptions","organizations_url":"https://api.github.com/users/Shredder121/orgs","repos_url":"https://api.github.com/users/Shredder121/repos","events_url":"https://api.github.com/users/Shredder121/events{/privacy}","received_events_url":"https://api.github.com/users/Shredder121/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-06T07:40:09Z","updated_at":"2015-10-06T16:28:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kohsuke/github-api/pulls/224","html_url":"https://github.com/kohsuke/github-api/pull/224","diff_url":"https://github.com/kohsuke/github-api/pull/224.diff","patch_url":"https://github.com/kohsuke/github-api/pull/224.patch"},"body":"I noticed something strange on GitHub's end.\r\n\r\nWhen requesting content from a directory (with a specific ref), you get [ref-specific content][1].\r\n\r\nNow look closely what happens when you [add a trailing slash][2].\r\n\r\nWhat is your view on this?\r\n\r\n\r\n[1]: https://api.github.com/repos/github/developer.github.com/contents/lib/webhooks?ref=21295b477e6727ae09c6691e78fca7a33d28b54d\r\n[2]: https://api.github.com/repos/github/developer.github.com/contents/lib/webhooks/?ref=21295b477e6727ae09c6691e78fca7a33d28b54d"},"comment":{"url":"https://api.github.com/repos/kohsuke/github-api/issues/comments/145919710","html_url":"https://github.com/kohsuke/github-api/pull/224#issuecomment-145919710","issue_url":"https://api.github.com/repos/kohsuke/github-api/issues/224","id":145919710,"user":{"login":"buildhive","id":1584733,"avatar_url":"https://avatars.githubusercontent.com/u/1584733?v=3","gravatar_id":"","url":"https://api.github.com/users/buildhive","html_url":"https://github.com/buildhive","followers_url":"https://api.github.com/users/buildhive/followers","following_url":"https://api.github.com/users/buildhive/following{/other_user}","gists_url":"https://api.github.com/users/buildhive/gists{/gist_id}","starred_url":"https://api.github.com/users/buildhive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildhive/subscriptions","organizations_url":"https://api.github.com/users/buildhive/orgs","repos_url":"https://api.github.com/users/buildhive/repos","events_url":"https://api.github.com/users/buildhive/events{/privacy}","received_events_url":"https://api.github.com/users/buildhive/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T16:28:53Z","updated_at":"2015-10-06T16:28:53Z","body":"[Kohsuke Kawaguchi » github-api #400](https://buildhive.cloudbees.com/job/kohsuke/job/github-api/400/) SUCCESS\nThis pull request looks good\n[(what's this?)](https://www.cloudbees.com/what-is-buildhive)"}}