{"action":"created","issue":{"url":"https://api.github.com/repos/VladRassokhin/intellij-hcl/issues/50","repository_url":"https://api.github.com/repos/VladRassokhin/intellij-hcl","labels_url":"https://api.github.com/repos/VladRassokhin/intellij-hcl/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/VladRassokhin/intellij-hcl/issues/50/comments","events_url":"https://api.github.com/repos/VladRassokhin/intellij-hcl/issues/50/events","html_url":"https://github.com/VladRassokhin/intellij-hcl/issues/50","id":184466758,"number":50,"title":"Support refactoring \"Extract variable\"","user":{"login":"ringods","id":77923,"avatar_url":"https://avatars.githubusercontent.com/u/77923?v=3","gravatar_id":"","url":"https://api.github.com/users/ringods","html_url":"https://github.com/ringods","followers_url":"https://api.github.com/users/ringods/followers","following_url":"https://api.github.com/users/ringods/following{/other_user}","gists_url":"https://api.github.com/users/ringods/gists{/gist_id}","starred_url":"https://api.github.com/users/ringods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ringods/subscriptions","organizations_url":"https://api.github.com/users/ringods/orgs","repos_url":"https://api.github.com/users/ringods/repos","events_url":"https://api.github.com/users/ringods/events{/privacy}","received_events_url":"https://api.github.com/users/ringods/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-21T11:50:03Z","updated_at":"2016-12-05T20:46:08Z","closed_at":null,"body":"In Intellij, for languages like Java, you have refactoring support. This might become very handy in the HCL plugin too to support Terraform refactorings.\n\nThe first refactoring I would like to see supported is to replace a constant value with a variable, given the constant value as a `default` value.\n\nOn top of that, the existence of a file `variables.tf` seems to be best practice although it is not necessarily needed. But if we follow best practices, the refactoring \"Extract variable\" should put the variable in the `variables.tf` file and create this file when it doesn't exist yet.\n"},"comment":{"url":"https://api.github.com/repos/VladRassokhin/intellij-hcl/issues/comments/264971923","html_url":"https://github.com/VladRassokhin/intellij-hcl/issues/50#issuecomment-264971923","issue_url":"https://api.github.com/repos/VladRassokhin/intellij-hcl/issues/50","id":264971923,"user":{"login":"VladRassokhin","id":552079,"avatar_url":"https://avatars.githubusercontent.com/u/552079?v=3","gravatar_id":"","url":"https://api.github.com/users/VladRassokhin","html_url":"https://github.com/VladRassokhin","followers_url":"https://api.github.com/users/VladRassokhin/followers","following_url":"https://api.github.com/users/VladRassokhin/following{/other_user}","gists_url":"https://api.github.com/users/VladRassokhin/gists{/gist_id}","starred_url":"https://api.github.com/users/VladRassokhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladRassokhin/subscriptions","organizations_url":"https://api.github.com/users/VladRassokhin/orgs","repos_url":"https://api.github.com/users/VladRassokhin/repos","events_url":"https://api.github.com/users/VladRassokhin/events{/privacy}","received_events_url":"https://api.github.com/users/VladRassokhin/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T20:46:08Z","updated_at":"2016-12-05T20:46:08Z","body":"@ringods Could you please provides some sample configs with before/after state?"}}
{"actor":{"display_login":"VladRassokhin"}}