{"action":"created","issue":{"url":"https://api.github.com/repos/bigcompany/hook.io/issues/110","labels_url":"https://api.github.com/repos/bigcompany/hook.io/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/bigcompany/hook.io/issues/110/comments","events_url":"https://api.github.com/repos/bigcompany/hook.io/issues/110/events","html_url":"https://github.com/bigcompany/hook.io/issues/110","id":101528850,"number":110,"title":"Better ways to determine Hook source code entry point?","user":{"login":"joshgillies","id":319694,"avatar_url":"https://avatars.githubusercontent.com/u/319694?v=3","gravatar_id":"","url":"https://api.github.com/users/joshgillies","html_url":"https://github.com/joshgillies","followers_url":"https://api.github.com/users/joshgillies/followers","following_url":"https://api.github.com/users/joshgillies/following{/other_user}","gists_url":"https://api.github.com/users/joshgillies/gists{/gist_id}","starred_url":"https://api.github.com/users/joshgillies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshgillies/subscriptions","organizations_url":"https://api.github.com/users/joshgillies/orgs","repos_url":"https://api.github.com/users/joshgillies/repos","events_url":"https://api.github.com/users/joshgillies/events{/privacy}","received_events_url":"https://api.github.com/users/joshgillies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-17T23:13:02Z","updated_at":"2015-08-18T04:14:37Z","closed_at":null,"body":"Basically I came across this: https://github.com/bigcompany/hook.io/blob/master/lib/resources/hook/fetchHookSourceCodeFromGithub.js#L72\r\n\r\nAnd now wonder whether it could be an option to employ a more Node-like solution to Hook entry point resolution?\r\n\r\nWith the goal to not breaking all existing Hooks we treat the \"assume first file is the source code\" rule as the fallback case for code resolution, relying on the existence of a package.json, or index.js as the first port of call?\r\n\r\nWould something like this be achievable with the GitHub Gist API?\r\n\r\nThe motivation for this is to open up the ability to more adequately develop, test and deploy Hooks in a similar fashion to how I currently develop modules."},"comment":{"url":"https://api.github.com/repos/bigcompany/hook.io/issues/comments/132068151","html_url":"https://github.com/bigcompany/hook.io/issues/110#issuecomment-132068151","issue_url":"https://api.github.com/repos/bigcompany/hook.io/issues/110","id":132068151,"user":{"login":"Marak","id":70011,"avatar_url":"https://avatars.githubusercontent.com/u/70011?v=3","gravatar_id":"","url":"https://api.github.com/users/Marak","html_url":"https://github.com/Marak","followers_url":"https://api.github.com/users/Marak/followers","following_url":"https://api.github.com/users/Marak/following{/other_user}","gists_url":"https://api.github.com/users/Marak/gists{/gist_id}","starred_url":"https://api.github.com/users/Marak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marak/subscriptions","organizations_url":"https://api.github.com/users/Marak/orgs","repos_url":"https://api.github.com/users/Marak/repos","events_url":"https://api.github.com/users/Marak/events{/privacy}","received_events_url":"https://api.github.com/users/Marak/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T04:14:37Z","updated_at":"2015-08-18T04:14:37Z","body":"Related issues: #95, #63, #17 \r\n\r\nThanks for the feedback. I agree with what you are saying.\r\n\r\nI already have a good start on the `hook` cli tool. We can use this to bootstrap local development and provide scaffolding. We can also have the web app perform a gui wizard.\r\n\r\nThese are just the tools. We'll also need the standard / best practices defined.\r\n\r\nDo you have a wish list for features or specifications of services?\r\n\r\nI'm not trying to re-invent too much here. Using `package.json` format might suffice to describe the manifest of a service. We could create an additional manifest format, I'm not sure.\r\n\r\n\r\n"}}