{"action":"created","issue":{"url":"https://api.github.com/repos/doowb/github-content/issues/1","labels_url":"https://api.github.com/repos/doowb/github-content/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/doowb/github-content/issues/1/comments","events_url":"https://api.github.com/repos/doowb/github-content/issues/1/events","html_url":"https://github.com/doowb/github-content/issues/1","id":124258991,"number":1,"title":"Tweaks","user":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T19:43:33Z","updated_at":"2015-12-29T20:01:12Z","closed_at":null,"body":"Great idea for lib. I also had similar idea started it with http://npm.im/read-source-stream lib.\r\n\r\nBut okey, few tweaks needed: There's no sense to add options to special `.cache` property, cuz they can be set directly to `.options` property and then they will generate automagically the url because the private [`interpolate`](https://github.com/jonschlinkert/github-base/blob/master/lib/utils.js#L72-L83) from `github-base`.\r\n\r\nSo if you remove these two parts [#L134-L139](https://github.com/doowb/github-content/blob/master/index.js#L134-L139) and [#L42-L46](https://github.com/doowb/github-content/blob/master/index.js#L42-L46); update `.owner`, `.repo` and `.branch` methods; and just add one merge (merge opts coming from `.file` and `this.options`) in `.file` method all will work.\r\n\r\nCheers."},"comment":{"url":"https://api.github.com/repos/doowb/github-content/issues/comments/167864993","html_url":"https://github.com/doowb/github-content/issues/1#issuecomment-167864993","issue_url":"https://api.github.com/repos/doowb/github-content/issues/1","id":167864993,"user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T20:01:12Z","updated_at":"2015-12-29T20:01:12Z","body":"@tunnckoCore thanks for the ideas! I think I put this together using just the `this.cache` object at first and used the methods to make a fluent api. Then I add the `options` to set those things. I don't know why I forgot about using `:` parameters in the `url` instead of building the url dynamically.\r\n\r\nI think we can still use `this.get` because it'll do the \"right\" thing with options passed to it."}}