{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/4","id":233763147,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNzYzMTQ3","html_url":"https://github.com/ktorio/ktor-init-tools/pull/4","diff_url":"https://github.com/ktorio/ktor-init-tools/pull/4.diff","patch_url":"https://github.com/ktorio/ktor-init-tools/pull/4.patch","issue_url":"https://api.github.com/repos/ktorio/ktor-init-tools/issues/4","number":4,"state":"open","locked":false,"title":"Fix generated project compile error: Add imports required for CachingHeaders","user":{"login":"lfielke","id":6062998,"node_id":"MDQ6VXNlcjYwNjI5OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6062998?v=4","gravatar_id":"","url":"https://api.github.com/users/lfielke","html_url":"https://github.com/lfielke","followers_url":"https://api.github.com/users/lfielke/followers","following_url":"https://api.github.com/users/lfielke/following{/other_user}","gists_url":"https://api.github.com/users/lfielke/gists{/gist_id}","starred_url":"https://api.github.com/users/lfielke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfielke/subscriptions","organizations_url":"https://api.github.com/users/lfielke/orgs","repos_url":"https://api.github.com/users/lfielke/repos","events_url":"https://api.github.com/users/lfielke/events{/privacy}","received_events_url":"https://api.github.com/users/lfielke/received_events","type":"User","site_admin":false},"body":"Ticking the CachingHeaders feature on https://start.ktor.io currently produces a project that fails to compile (eg using `./gradlew assemble`) with these errors:\r\n\r\n```\r\ne: /home/user/ktor-demo/src/Application.kt: (17, 17): Unresolved reference: ContentType\r\ne: /home/user/ktor-demo/src/Application.kt: (17, 41): Unresolved reference: CachingOptions\r\ne: /home/user/ktor-demo/src/Application.kt: (17, 56): Unresolved reference: CacheControl\r\n```\r\n\r\nThis pull request adds the required imports to the generated project to make it successfully build.","created_at":"2018-11-27T02:54:25Z","updated_at":"2018-11-27T02:54:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ktorio/ktor-init-tools/issues/4/comments","statuses_url":"https://api.github.com/repos/ktorio/ktor-init-tools/statuses/bd44ee48df2f318fae3c55ab8c01c37afc0b0b73","head":{"label":"lfielke:fix-missing-cache-imports","ref":"fix-missing-cache-imports","sha":"bd44ee48df2f318fae3c55ab8c01c37afc0b0b73","user":{"login":"lfielke","id":6062998,"node_id":"MDQ6VXNlcjYwNjI5OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6062998?v=4","gravatar_id":"","url":"https://api.github.com/users/lfielke","html_url":"https://github.com/lfielke","followers_url":"https://api.github.com/users/lfielke/followers","following_url":"https://api.github.com/users/lfielke/following{/other_user}","gists_url":"https://api.github.com/users/lfielke/gists{/gist_id}","starred_url":"https://api.github.com/users/lfielke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfielke/subscriptions","organizations_url":"https://api.github.com/users/lfielke/orgs","repos_url":"https://api.github.com/users/lfielke/repos","events_url":"https://api.github.com/users/lfielke/events{/privacy}","received_events_url":"https://api.github.com/users/lfielke/received_events","type":"User","site_admin":false},"repo":{"id":159266254,"node_id":"MDEwOlJlcG9zaXRvcnkxNTkyNjYyNTQ=","name":"ktor-init-tools","full_name":"lfielke/ktor-init-tools","private":false,"owner":{"login":"lfielke","id":6062998,"node_id":"MDQ6VXNlcjYwNjI5OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6062998?v=4","gravatar_id":"","url":"https://api.github.com/users/lfielke","html_url":"https://github.com/lfielke","followers_url":"https://api.github.com/users/lfielke/followers","following_url":"https://api.github.com/users/lfielke/following{/other_user}","gists_url":"https://api.github.com/users/lfielke/gists{/gist_id}","starred_url":"https://api.github.com/users/lfielke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfielke/subscriptions","organizations_url":"https://api.github.com/users/lfielke/orgs","repos_url":"https://api.github.com/users/lfielke/repos","events_url":"https://api.github.com/users/lfielke/events{/privacy}","received_events_url":"https://api.github.com/users/lfielke/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lfielke/ktor-init-tools","description":null,"fork":true,"url":"https://api.github.com/repos/lfielke/ktor-init-tools","forks_url":"https://api.github.com/repos/lfielke/ktor-init-tools/forks","keys_url":"https://api.github.com/repos/lfielke/ktor-init-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfielke/ktor-init-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfielke/ktor-init-tools/teams","hooks_url":"https://api.github.com/repos/lfielke/ktor-init-tools/hooks","issue_events_url":"https://api.github.com/repos/lfielke/ktor-init-tools/issues/events{/number}","events_url":"https://api.github.com/repos/lfielke/ktor-init-tools/events","assignees_url":"https://api.github.com/repos/lfielke/ktor-init-tools/assignees{/user}","branches_url":"https://api.github.com/repos/lfielke/ktor-init-tools/branches{/branch}","tags_url":"https://api.github.com/repos/lfielke/ktor-init-tools/tags","blobs_url":"https://api.github.com/repos/lfielke/ktor-init-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfielke/ktor-init-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfielke/ktor-init-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfielke/ktor-init-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfielke/ktor-init-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/lfielke/ktor-init-tools/languages","stargazers_url":"https://api.github.com/repos/lfielke/ktor-init-tools/stargazers","contributors_url":"https://api.github.com/repos/lfielke/ktor-init-tools/contributors","subscribers_url":"https://api.github.com/repos/lfielke/ktor-init-tools/subscribers","subscription_url":"https://api.github.com/repos/lfielke/ktor-init-tools/subscription","commits_url":"https://api.github.com/repos/lfielke/ktor-init-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfielke/ktor-init-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfielke/ktor-init-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfielke/ktor-init-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfielke/ktor-init-tools/contents/{+path}","compare_url":"https://api.github.com/repos/lfielke/ktor-init-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfielke/ktor-init-tools/merges","archive_url":"https://api.github.com/repos/lfielke/ktor-init-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfielke/ktor-init-tools/downloads","issues_url":"https://api.github.com/repos/lfielke/ktor-init-tools/issues{/number}","pulls_url":"https://api.github.com/repos/lfielke/ktor-init-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/lfielke/ktor-init-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/lfielke/ktor-init-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfielke/ktor-init-tools/labels{/name}","releases_url":"https://api.github.com/repos/lfielke/ktor-init-tools/releases{/id}","deployments_url":"https://api.github.com/repos/lfielke/ktor-init-tools/deployments","created_at":"2018-11-27T02:49:12Z","updated_at":"2018-11-27T02:49:15Z","pushed_at":"2018-11-27T02:49:59Z","git_url":"git://github.com/lfielke/ktor-init-tools.git","ssh_url":"git@github.com:lfielke/ktor-init-tools.git","clone_url":"https://github.com/lfielke/ktor-init-tools.git","svn_url":"https://github.com/lfielke/ktor-init-tools","homepage":"","size":3020,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ktorio:master","ref":"master","sha":"73c2797eccc6e22d22d8a039c4366133215eb82c","user":{"login":"ktorio","id":28214161,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjE0MTYx","avatar_url":"https://avatars3.githubusercontent.com/u/28214161?v=4","gravatar_id":"","url":"https://api.github.com/users/ktorio","html_url":"https://github.com/ktorio","followers_url":"https://api.github.com/users/ktorio/followers","following_url":"https://api.github.com/users/ktorio/following{/other_user}","gists_url":"https://api.github.com/users/ktorio/gists{/gist_id}","starred_url":"https://api.github.com/users/ktorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktorio/subscriptions","organizations_url":"https://api.github.com/users/ktorio/orgs","repos_url":"https://api.github.com/users/ktorio/repos","events_url":"https://api.github.com/users/ktorio/events{/privacy}","received_events_url":"https://api.github.com/users/ktorio/received_events","type":"Organization","site_admin":false},"repo":{"id":123930872,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM5MzA4NzI=","name":"ktor-init-tools","full_name":"ktorio/ktor-init-tools","private":false,"owner":{"login":"ktorio","id":28214161,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjE0MTYx","avatar_url":"https://avatars3.githubusercontent.com/u/28214161?v=4","gravatar_id":"","url":"https://api.github.com/users/ktorio","html_url":"https://github.com/ktorio","followers_url":"https://api.github.com/users/ktorio/followers","following_url":"https://api.github.com/users/ktorio/following{/other_user}","gists_url":"https://api.github.com/users/ktorio/gists{/gist_id}","starred_url":"https://api.github.com/users/ktorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktorio/subscriptions","organizations_url":"https://api.github.com/users/ktorio/orgs","repos_url":"https://api.github.com/users/ktorio/repos","events_url":"https://api.github.com/users/ktorio/events{/privacy}","received_events_url":"https://api.github.com/users/ktorio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ktorio/ktor-init-tools","description":null,"fork":false,"url":"https://api.github.com/repos/ktorio/ktor-init-tools","forks_url":"https://api.github.com/repos/ktorio/ktor-init-tools/forks","keys_url":"https://api.github.com/repos/ktorio/ktor-init-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ktorio/ktor-init-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ktorio/ktor-init-tools/teams","hooks_url":"https://api.github.com/repos/ktorio/ktor-init-tools/hooks","issue_events_url":"https://api.github.com/repos/ktorio/ktor-init-tools/issues/events{/number}","events_url":"https://api.github.com/repos/ktorio/ktor-init-tools/events","assignees_url":"https://api.github.com/repos/ktorio/ktor-init-tools/assignees{/user}","branches_url":"https://api.github.com/repos/ktorio/ktor-init-tools/branches{/branch}","tags_url":"https://api.github.com/repos/ktorio/ktor-init-tools/tags","blobs_url":"https://api.github.com/repos/ktorio/ktor-init-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ktorio/ktor-init-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ktorio/ktor-init-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/ktorio/ktor-init-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ktorio/ktor-init-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/ktorio/ktor-init-tools/languages","stargazers_url":"https://api.github.com/repos/ktorio/ktor-init-tools/stargazers","contributors_url":"https://api.github.com/repos/ktorio/ktor-init-tools/contributors","subscribers_url":"https://api.github.com/repos/ktorio/ktor-init-tools/subscribers","subscription_url":"https://api.github.com/repos/ktorio/ktor-init-tools/subscription","commits_url":"https://api.github.com/repos/ktorio/ktor-init-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/ktorio/ktor-init-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/ktorio/ktor-init-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/ktorio/ktor-init-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/ktorio/ktor-init-tools/contents/{+path}","compare_url":"https://api.github.com/repos/ktorio/ktor-init-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ktorio/ktor-init-tools/merges","archive_url":"https://api.github.com/repos/ktorio/ktor-init-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ktorio/ktor-init-tools/downloads","issues_url":"https://api.github.com/repos/ktorio/ktor-init-tools/issues{/number}","pulls_url":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/ktorio/ktor-init-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/ktorio/ktor-init-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ktorio/ktor-init-tools/labels{/name}","releases_url":"https://api.github.com/repos/ktorio/ktor-init-tools/releases{/id}","deployments_url":"https://api.github.com/repos/ktorio/ktor-init-tools/deployments","created_at":"2018-03-05T14:24:26Z","updated_at":"2018-11-24T02:55:55Z","pushed_at":"2018-11-27T02:54:26Z","git_url":"git://github.com/ktorio/ktor-init-tools.git","ssh_url":"git@github.com:ktorio/ktor-init-tools.git","clone_url":"https://github.com/ktorio/ktor-init-tools.git","svn_url":"https://github.com/ktorio/ktor-init-tools","homepage":"","size":3020,"stargazers_count":6,"watchers_count":6,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/4"},"html":{"href":"https://github.com/ktorio/ktor-init-tools/pull/4"},"issue":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/issues/4"},"comments":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ktorio/ktor-init-tools/statuses/bd44ee48df2f318fae3c55ab8c01c37afc0b0b73"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":2,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"lfielke"}}