{"action":"opened","number":367,"pull_request":{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/367","id":199126955,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTI2OTU1","html_url":"https://github.com/carymrobbins/intellij-haskforce/pull/367","diff_url":"https://github.com/carymrobbins/intellij-haskforce/pull/367.diff","patch_url":"https://github.com/carymrobbins/intellij-haskforce/pull/367.patch","issue_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/367","number":367,"state":"open","locked":false,"title":"Fix generated module name when using Create Haskell File action","user":{"login":"carymrobbins","id":3103764,"node_id":"MDQ6VXNlcjMxMDM3NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3103764?v=4","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"body":"This fixes an issue when you use the Create Haskell File action from a subdirectory and use a relative module name. Solved by inferring the module path from the source root. Solution ported from intellij-eta - [CreateEtaFileAction.kt](https://github.com/typelead/intellij-eta/blob/1c18cdd2b5a21215debb21e1680dc52d965aadee/plugin/src/main/kotlin/com/typelead/intellij/plugin/eta/actions/CreateEtaFileAction.kt)","created_at":"2018-07-04T02:52:44Z","updated_at":"2018-07-04T02:52:44Z","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/carymrobbins/intellij-haskforce/pulls/367/commits","review_comments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/367/comments","review_comment_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/367/comments","statuses_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/statuses/505f88f848a7b29db3602f37d17a02a2cfd46ecd","head":{"label":"carymrobbins:create-file-module-name-fix","ref":"create-file-module-name-fix","sha":"505f88f848a7b29db3602f37d17a02a2cfd46ecd","user":{"login":"carymrobbins","id":3103764,"node_id":"MDQ6VXNlcjMxMDM3NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3103764?v=4","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"repo":{"id":15573192,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU3MzE5Mg==","name":"intellij-haskforce","full_name":"carymrobbins/intellij-haskforce","owner":{"login":"carymrobbins","id":3103764,"node_id":"MDQ6VXNlcjMxMDM3NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3103764?v=4","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carymrobbins/intellij-haskforce","description":"Haskell plugin for IntelliJ IDEA","fork":false,"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce","forks_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/forks","keys_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/teams","hooks_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/hooks","issue_events_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/events{/number}","events_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/events","assignees_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/assignees{/user}","branches_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/branches{/branch}","tags_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/tags","blobs_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/refs{/sha}","trees_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/statuses/{sha}","languages_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/languages","stargazers_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/stargazers","contributors_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/contributors","subscribers_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/subscribers","subscription_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/subscription","commits_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/commits{/sha}","git_commits_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/commits{/sha}","comments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/comments{/number}","issue_comment_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/comments{/number}","contents_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/contents/{+path}","compare_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/merges","archive_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/downloads","issues_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues{/number}","pulls_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls{/number}","milestones_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/milestones{/number}","notifications_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/labels{/name}","releases_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/releases{/id}","deployments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/deployments","created_at":"2014-01-02T01:28:54Z","updated_at":"2018-06-25T20:18:30Z","pushed_at":"2018-07-03T20:03:23Z","git_url":"git://github.com/carymrobbins/intellij-haskforce.git","ssh_url":"git@github.com:carymrobbins/intellij-haskforce.git","clone_url":"https://github.com/carymrobbins/intellij-haskforce.git","svn_url":"https://github.com/carymrobbins/intellij-haskforce","homepage":"http://carymrobbins.github.io/intellij-haskforce/","size":32289,"stargazers_count":433,"watchers_count":433,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":98,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":98,"watchers":433,"default_branch":"master"}},"base":{"label":"carymrobbins:master","ref":"master","sha":"ff87d0308db635fcde21d7fb377e29b9a71c1bf5","user":{"login":"carymrobbins","id":3103764,"node_id":"MDQ6VXNlcjMxMDM3NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3103764?v=4","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"repo":{"id":15573192,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU3MzE5Mg==","name":"intellij-haskforce","full_name":"carymrobbins/intellij-haskforce","owner":{"login":"carymrobbins","id":3103764,"node_id":"MDQ6VXNlcjMxMDM3NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3103764?v=4","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carymrobbins/intellij-haskforce","description":"Haskell plugin for IntelliJ IDEA","fork":false,"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce","forks_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/forks","keys_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/teams","hooks_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/hooks","issue_events_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/events{/number}","events_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/events","assignees_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/assignees{/user}","branches_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/branches{/branch}","tags_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/tags","blobs_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/refs{/sha}","trees_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/statuses/{sha}","languages_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/languages","stargazers_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/stargazers","contributors_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/contributors","subscribers_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/subscribers","subscription_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/subscription","commits_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/commits{/sha}","git_commits_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/git/commits{/sha}","comments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/comments{/number}","issue_comment_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/comments{/number}","contents_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/contents/{+path}","compare_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/merges","archive_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/downloads","issues_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues{/number}","pulls_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls{/number}","milestones_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/milestones{/number}","notifications_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/labels{/name}","releases_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/releases{/id}","deployments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/deployments","created_at":"2014-01-02T01:28:54Z","updated_at":"2018-06-25T20:18:30Z","pushed_at":"2018-07-03T20:03:23Z","git_url":"git://github.com/carymrobbins/intellij-haskforce.git","ssh_url":"git@github.com:carymrobbins/intellij-haskforce.git","clone_url":"https://github.com/carymrobbins/intellij-haskforce.git","svn_url":"https://github.com/carymrobbins/intellij-haskforce","homepage":"http://carymrobbins.github.io/intellij-haskforce/","size":32289,"stargazers_count":433,"watchers_count":433,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":98,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":98,"watchers":433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/367"},"html":{"href":"https://github.com/carymrobbins/intellij-haskforce/pull/367"},"issue":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/367"},"comments":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/367/comments"},"review_comments":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/367/comments"},"review_comment":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/pulls/367/commits"},"statuses":{"href":"https://api.github.com/repos/carymrobbins/intellij-haskforce/statuses/505f88f848a7b29db3602f37d17a02a2cfd46ecd"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":93,"deletions":156,"changed_files":2}}
{"actor":{"display_login":"carymrobbins"}}