{"action":"created","issue":{"url":"https://api.github.com/repos/DamonOehlman/versionit/issues/2","repository_url":"https://api.github.com/repos/DamonOehlman/versionit","labels_url":"https://api.github.com/repos/DamonOehlman/versionit/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/DamonOehlman/versionit/issues/2/comments","events_url":"https://api.github.com/repos/DamonOehlman/versionit/issues/2/events","html_url":"https://github.com/DamonOehlman/versionit/pull/2","id":191025013,"number":2,"title":"JS files starting with #! fails esprima parse, skip the first line accordingly","user":{"login":"mvniekerk","id":1570687,"avatar_url":"https://avatars.githubusercontent.com/u/1570687?v=3","gravatar_id":"","url":"https://api.github.com/users/mvniekerk","html_url":"https://github.com/mvniekerk","followers_url":"https://api.github.com/users/mvniekerk/followers","following_url":"https://api.github.com/users/mvniekerk/following{/other_user}","gists_url":"https://api.github.com/users/mvniekerk/gists{/gist_id}","starred_url":"https://api.github.com/users/mvniekerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvniekerk/subscriptions","organizations_url":"https://api.github.com/users/mvniekerk/orgs","repos_url":"https://api.github.com/users/mvniekerk/repos","events_url":"https://api.github.com/users/mvniekerk/events{/privacy}","received_events_url":"https://api.github.com/users/mvniekerk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-22T14:41:06Z","updated_at":"2016-11-25T06:33:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DamonOehlman/versionit/pulls/2","html_url":"https://github.com/DamonOehlman/versionit/pull/2","diff_url":"https://github.com/DamonOehlman/versionit/pull/2.diff","patch_url":"https://github.com/DamonOehlman/versionit/pull/2.patch"},"body":"In the case of bin js files (used in runnable scripts) the first line is usually the bang operator #!\r\nSuch a line will not be parsed by esprima - causing a fault when trying to get the metadata from a file (and stopping the whole process as a result of the exception).\r\n\r\nThis fixes it - it removes a bang started js file's first line and have the rest of it being parsed."},"comment":{"url":"https://api.github.com/repos/DamonOehlman/versionit/issues/comments/262889678","html_url":"https://github.com/DamonOehlman/versionit/pull/2#issuecomment-262889678","issue_url":"https://api.github.com/repos/DamonOehlman/versionit/issues/2","id":262889678,"user":{"login":"mvniekerk","id":1570687,"avatar_url":"https://avatars.githubusercontent.com/u/1570687?v=3","gravatar_id":"","url":"https://api.github.com/users/mvniekerk","html_url":"https://github.com/mvniekerk","followers_url":"https://api.github.com/users/mvniekerk/followers","following_url":"https://api.github.com/users/mvniekerk/following{/other_user}","gists_url":"https://api.github.com/users/mvniekerk/gists{/gist_id}","starred_url":"https://api.github.com/users/mvniekerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvniekerk/subscriptions","organizations_url":"https://api.github.com/users/mvniekerk/orgs","repos_url":"https://api.github.com/users/mvniekerk/repos","events_url":"https://api.github.com/users/mvniekerk/events{/privacy}","received_events_url":"https://api.github.com/users/mvniekerk/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T06:33:17Z","updated_at":"2016-11-25T06:33:17Z","body":"Cool Damon, will fix!"}}
{"actor":{"display_login":"mvniekerk"}}