{"action":"created","issue":{"url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/315","repository_url":"https://api.github.com/repos/BohemianCoding/SketchAPI","labels_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/315/comments","events_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/315/events","html_url":"https://github.com/BohemianCoding/SketchAPI/issues/315","id":392924838,"node_id":"MDU6SXNzdWUzOTI5MjQ4Mzg=","number":315,"title":"Clean up getInputFromUser example","user":{"login":"KevinGutowski","id":4199296,"node_id":"MDQ6VXNlcjQxOTkyOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4199296?v=4","gravatar_id":"","url":"https://api.github.com/users/KevinGutowski","html_url":"https://github.com/KevinGutowski","followers_url":"https://api.github.com/users/KevinGutowski/followers","following_url":"https://api.github.com/users/KevinGutowski/following{/other_user}","gists_url":"https://api.github.com/users/KevinGutowski/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGutowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGutowski/subscriptions","organizations_url":"https://api.github.com/users/KevinGutowski/orgs","repos_url":"https://api.github.com/users/KevinGutowski/repos","events_url":"https://api.github.com/users/KevinGutowski/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGutowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-20T07:37:19Z","updated_at":"2018-12-21T01:45:08Z","closed_at":"2018-12-20T08:28:15Z","author_association":"CONTRIBUTOR","body":"Current Example:\r\n```\r\nUI.getInputFromUser(\"What's your favorite design tool?\", {\r\n  type: UI.INPUT_TYPE.selection\r\n  possibleValues: ['Sketch']\r\n}, (err, value) => {\r\n  if (err) {\r\n    // most likely the user canceled the input\r\n    return\r\n  }\r\n})\r\n```\r\nCorrected Example:\r\n```\r\nUI.getInputFromUser(\"What's your favorite design tool?\", {\r\n  type: UI.INPUT_TYPE.selection,\r\n  possibleValues: ['Sketch', 'Paper']\r\n}, (err, value) => {\r\n  if (err) {\r\n    // most likely the user canceled the input\r\n    return\r\n  }\r\n})\r\n```\r\n\r\nThe corrected example adds a missing comma and demonstrates that there can be other possible values other than Sketch 😂.\r\n\r\nOne other small thing while I am commenting on this..\r\n<img width=\"532\" alt=\"screen shot 2018-12-19 at 11 30 54 pm\" src=\"https://user-images.githubusercontent.com/4199296/50270378-2f27a700-03e6-11e9-9472-59a8010bd74b.png\">\r\nIt feels like the input could be just a bit taller? Also, I think a NSPopUpButton that pulls down would look nicer but thats just my 2 cents."},"comment":{"url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/comments/449209273","html_url":"https://github.com/BohemianCoding/SketchAPI/issues/315#issuecomment-449209273","issue_url":"https://api.github.com/repos/BohemianCoding/SketchAPI/issues/315","id":449209273,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTIwOTI3Mw==","user":{"login":"KevinGutowski","id":4199296,"node_id":"MDQ6VXNlcjQxOTkyOTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4199296?v=4","gravatar_id":"","url":"https://api.github.com/users/KevinGutowski","html_url":"https://github.com/KevinGutowski","followers_url":"https://api.github.com/users/KevinGutowski/followers","following_url":"https://api.github.com/users/KevinGutowski/following{/other_user}","gists_url":"https://api.github.com/users/KevinGutowski/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGutowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGutowski/subscriptions","organizations_url":"https://api.github.com/users/KevinGutowski/orgs","repos_url":"https://api.github.com/users/KevinGutowski/repos","events_url":"https://api.github.com/users/KevinGutowski/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGutowski/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T01:45:08Z","updated_at":"2018-12-21T01:45:08Z","author_association":"CONTRIBUTOR","body":"Is there a way to target just the beta version when messing with the API?\r\n\r\n`defaults write com.bohemiancoding.sketch3 SketchAPILocation \"/path/to/your/SketchAPI.js\"`\r\n\r\nI was thinking it could be this?\r\ndefaults write com.bohemiancoding.sketch3beta SketchAPILocation \"/path/to/your/SketchAPI.js\""}}
{"actor":{"display_login":"KevinGutowski"}}