{"action":"opened","issue":{"url":"https://api.github.com/repos/elm/compiler/issues/1868","repository_url":"https://api.github.com/repos/elm/compiler","labels_url":"https://api.github.com/repos/elm/compiler/issues/1868/labels{/name}","comments_url":"https://api.github.com/repos/elm/compiler/issues/1868/comments","events_url":"https://api.github.com/repos/elm/compiler/issues/1868/events","html_url":"https://github.com/elm/compiler/issues/1868","id":390596723,"node_id":"MDU6SXNzdWUzOTA1OTY3MjM=","number":1868,"title":"Dependency with numeric GitHub owner produces invalid JavaScript variable name","user":{"login":"BurntCaramel","id":2635733,"node_id":"MDQ6VXNlcjI2MzU3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/2635733?v=4","gravatar_id":"","url":"https://api.github.com/users/BurntCaramel","html_url":"https://github.com/BurntCaramel","followers_url":"https://api.github.com/users/BurntCaramel/followers","following_url":"https://api.github.com/users/BurntCaramel/following{/other_user}","gists_url":"https://api.github.com/users/BurntCaramel/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntCaramel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntCaramel/subscriptions","organizations_url":"https://api.github.com/users/BurntCaramel/orgs","repos_url":"https://api.github.com/users/BurntCaramel/repos","events_url":"https://api.github.com/users/BurntCaramel/events{/privacy}","received_events_url":"https://api.github.com/users/BurntCaramel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T09:47:50Z","updated_at":"2018-12-13T09:47:50Z","closed_at":null,"author_association":"NONE","body":"Example: https://ellie-app.com/48NmnW2HchVa1\r\n\r\nWhen a dependency has a GitHub owner that starts with a number, e.g. `1602/json-value`:\r\n\r\n```json\r\n\"dependencies\": {\r\n        \"direct\": {\r\n            \"1602/json-value\": \"3.0.1\",\r\n…\r\n```\r\n\r\nThen the produced JavaScript variable that is based on that GitHub owner name starts with a number too, which is not valid for JavaScript. \r\n\r\n```js\r\n…\r\n\r\nvar 1602$json_value$Json$Value$BoolValue = function (a) {\r\n\treturn {$: 'BoolValue', a: a};\r\n};\r\n\r\n…\r\n```"}}
{"actor":{"display_login":"BurntCaramel"}}