{"action":"created","comment":{"url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/comments/221724172","pull_request_review_id":160444248,"id":221724172,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTcyNDE3Mg==","diff_hunk":"@@ -114,10 +114,10 @@ enum SwiftIdentifier {\n   static func prefixWithUnderscoreIfNeeded(string: String,\n                                            forbiddenChars exceptions: String = \"\") -> String {\n \n-    let (head, _) = identifierCharacterSets(exceptions: exceptions)\n+    guard let firstChar = string.unicodeScalars.first,\n+      !string.isEmpty else { return \"\" }","path":"Sources/StencilSwiftKit/SwiftIdentifier.swift","position":6,"original_position":6,"commit_id":"3fc3f51e4ec28a767c543f517d6fea656a670dc9","original_commit_id":"3fc3f51e4ec28a767c543f517d6fea656a670dc9","user":{"login":"djbe","id":641356,"node_id":"MDQ6VXNlcjY0MTM1Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/641356?v=4","gravatar_id":"","url":"https://api.github.com/users/djbe","html_url":"https://github.com/djbe","followers_url":"https://api.github.com/users/djbe/followers","following_url":"https://api.github.com/users/djbe/following{/other_user}","gists_url":"https://api.github.com/users/djbe/gists{/gist_id}","starred_url":"https://api.github.com/users/djbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbe/subscriptions","organizations_url":"https://api.github.com/users/djbe/orgs","repos_url":"https://api.github.com/users/djbe/repos","events_url":"https://api.github.com/users/djbe/events{/privacy}","received_events_url":"https://api.github.com/users/djbe/received_events","type":"User","site_admin":false},"body":"Which Xcode version?","created_at":"2018-10-01T19:14:41Z","updated_at":"2018-10-01T19:14:42Z","html_url":"https://github.com/SwiftGen/StencilSwiftKit/pull/105#discussion_r221724172","pull_request_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/comments/221724172"},"html":{"href":"https://github.com/SwiftGen/StencilSwiftKit/pull/105#discussion_r221724172"},"pull_request":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105"}},"in_reply_to_id":221678522},"pull_request":{"url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105","id":219431901,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NDMxOTAx","html_url":"https://github.com/SwiftGen/StencilSwiftKit/pull/105","diff_url":"https://github.com/SwiftGen/StencilSwiftKit/pull/105.diff","patch_url":"https://github.com/SwiftGen/StencilSwiftKit/pull/105.patch","issue_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/105","number":105,"state":"open","locked":false,"title":"Fix `swiftIdentifier` crash with empty strings","user":{"login":"djbe","id":641356,"node_id":"MDQ6VXNlcjY0MTM1Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/641356?v=4","gravatar_id":"","url":"https://api.github.com/users/djbe","html_url":"https://github.com/djbe","followers_url":"https://api.github.com/users/djbe/followers","following_url":"https://api.github.com/users/djbe/following{/other_user}","gists_url":"https://api.github.com/users/djbe/gists{/gist_id}","starred_url":"https://api.github.com/users/djbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djbe/subscriptions","organizations_url":"https://api.github.com/users/djbe/orgs","repos_url":"https://api.github.com/users/djbe/repos","events_url":"https://api.github.com/users/djbe/events{/privacy}","received_events_url":"https://api.github.com/users/djbe/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/SwiftGen/SwiftGen/issues/528.","created_at":"2018-10-01T16:08:35Z","updated_at":"2018-10-01T19:14:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6997b81e0bd43fbb695e66514017eebf8bad0952","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":523735079,"node_id":"MDU6TGFiZWw1MjM3MzUwNzk=","url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/labels/type:%20bug/fix","name":"type: bug/fix","color":"ee0701","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105/commits","review_comments_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105/comments","review_comment_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/105/comments","statuses_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/statuses/3fc3f51e4ec28a767c543f517d6fea656a670dc9","head":{"label":"SwiftGen:fix/swift-identifier","ref":"fix/swift-identifier","sha":"3fc3f51e4ec28a767c543f517d6fea656a670dc9","user":{"login":"SwiftGen","id":24867377,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODY3Mzc3","avatar_url":"https://avatars3.githubusercontent.com/u/24867377?v=4","gravatar_id":"","url":"https://api.github.com/users/SwiftGen","html_url":"https://github.com/SwiftGen","followers_url":"https://api.github.com/users/SwiftGen/followers","following_url":"https://api.github.com/users/SwiftGen/following{/other_user}","gists_url":"https://api.github.com/users/SwiftGen/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftGen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftGen/subscriptions","organizations_url":"https://api.github.com/users/SwiftGen/orgs","repos_url":"https://api.github.com/users/SwiftGen/repos","events_url":"https://api.github.com/users/SwiftGen/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftGen/received_events","type":"Organization","site_admin":false},"repo":{"id":77799742,"node_id":"MDEwOlJlcG9zaXRvcnk3Nzc5OTc0Mg==","name":"StencilSwiftKit","full_name":"SwiftGen/StencilSwiftKit","private":false,"owner":{"login":"SwiftGen","id":24867377,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODY3Mzc3","avatar_url":"https://avatars3.githubusercontent.com/u/24867377?v=4","gravatar_id":"","url":"https://api.github.com/users/SwiftGen","html_url":"https://github.com/SwiftGen","followers_url":"https://api.github.com/users/SwiftGen/followers","following_url":"https://api.github.com/users/SwiftGen/following{/other_user}","gists_url":"https://api.github.com/users/SwiftGen/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftGen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftGen/subscriptions","organizations_url":"https://api.github.com/users/SwiftGen/orgs","repos_url":"https://api.github.com/users/SwiftGen/repos","events_url":"https://api.github.com/users/SwiftGen/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftGen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SwiftGen/StencilSwiftKit","description":"A framework bringing additional nodes & filters to Stencil dedicated to Swift code generation","fork":false,"url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit","forks_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/forks","keys_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/teams","hooks_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/hooks","issue_events_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/events","assignees_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/tags","blobs_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/languages","stargazers_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/stargazers","contributors_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/contributors","subscribers_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/subscribers","subscription_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/subscription","commits_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/merges","archive_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/downloads","issues_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/labels{/name}","releases_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/releases{/id}","deployments_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/deployments","created_at":"2017-01-01T22:40:30Z","updated_at":"2018-09-28T07:33:39Z","pushed_at":"2018-10-01T16:09:21Z","git_url":"git://github.com/SwiftGen/StencilSwiftKit.git","ssh_url":"git@github.com:SwiftGen/StencilSwiftKit.git","clone_url":"https://github.com/SwiftGen/StencilSwiftKit.git","svn_url":"https://github.com/SwiftGen/StencilSwiftKit","homepage":null,"size":13405,"stargazers_count":86,"watchers_count":86,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":7,"watchers":86,"default_branch":"master"}},"base":{"label":"SwiftGen:master","ref":"master","sha":"b321df2b0df49b4a0079771fec41946e481db358","user":{"login":"SwiftGen","id":24867377,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODY3Mzc3","avatar_url":"https://avatars3.githubusercontent.com/u/24867377?v=4","gravatar_id":"","url":"https://api.github.com/users/SwiftGen","html_url":"https://github.com/SwiftGen","followers_url":"https://api.github.com/users/SwiftGen/followers","following_url":"https://api.github.com/users/SwiftGen/following{/other_user}","gists_url":"https://api.github.com/users/SwiftGen/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftGen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftGen/subscriptions","organizations_url":"https://api.github.com/users/SwiftGen/orgs","repos_url":"https://api.github.com/users/SwiftGen/repos","events_url":"https://api.github.com/users/SwiftGen/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftGen/received_events","type":"Organization","site_admin":false},"repo":{"id":77799742,"node_id":"MDEwOlJlcG9zaXRvcnk3Nzc5OTc0Mg==","name":"StencilSwiftKit","full_name":"SwiftGen/StencilSwiftKit","private":false,"owner":{"login":"SwiftGen","id":24867377,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODY3Mzc3","avatar_url":"https://avatars3.githubusercontent.com/u/24867377?v=4","gravatar_id":"","url":"https://api.github.com/users/SwiftGen","html_url":"https://github.com/SwiftGen","followers_url":"https://api.github.com/users/SwiftGen/followers","following_url":"https://api.github.com/users/SwiftGen/following{/other_user}","gists_url":"https://api.github.com/users/SwiftGen/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftGen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftGen/subscriptions","organizations_url":"https://api.github.com/users/SwiftGen/orgs","repos_url":"https://api.github.com/users/SwiftGen/repos","events_url":"https://api.github.com/users/SwiftGen/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftGen/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SwiftGen/StencilSwiftKit","description":"A framework bringing additional nodes & filters to Stencil dedicated to Swift code generation","fork":false,"url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit","forks_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/forks","keys_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/teams","hooks_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/hooks","issue_events_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/events","assignees_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/tags","blobs_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/languages","stargazers_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/stargazers","contributors_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/contributors","subscribers_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/subscribers","subscription_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/subscription","commits_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/merges","archive_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/downloads","issues_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/labels{/name}","releases_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/releases{/id}","deployments_url":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/deployments","created_at":"2017-01-01T22:40:30Z","updated_at":"2018-09-28T07:33:39Z","pushed_at":"2018-10-01T16:09:21Z","git_url":"git://github.com/SwiftGen/StencilSwiftKit.git","ssh_url":"git@github.com:SwiftGen/StencilSwiftKit.git","clone_url":"https://github.com/SwiftGen/StencilSwiftKit.git","svn_url":"https://github.com/SwiftGen/StencilSwiftKit","homepage":null,"size":13405,"stargazers_count":86,"watchers_count":86,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":7,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105"},"html":{"href":"https://github.com/SwiftGen/StencilSwiftKit/pull/105"},"issue":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/105"},"comments":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/SwiftGen/StencilSwiftKit/statuses/3fc3f51e4ec28a767c543f517d6fea656a670dc9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"djbe"}}