payload: {"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/comments/295227631","pull_request_review_id":251608452,"id":295227631,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NTIyNzYzMQ==","diff_hunk":"@@ -11,19 +11,57 @@\n \n import org.apache.commons.logging.Log;\n import org.apache.commons.logging.LogFactory;\n+import org.openmrs.api.AdministrationService;\n+import org.openmrs.api.context.Context;\n import org.openmrs.module.BaseModuleActivator;\n+import org.openmrs.module.ModuleConstants;\n+import org.openmrs.module.ModuleException;\n+import org.openmrs.util.OpenmrsUtil;\n+\n+import java.io.File;\n \n public class SpaActivator extends BaseModuleActivator {\n \n \tprivate final Log log = LogFactory.getLog(getClass());\n+\tprivate final String FRONTENT_DIRECTORY = \"frontend\";","path":"omod/src/main/java/org/openmrs/module/spa/SpaActivator.java","position":16,"original_position":16,"commit_id":"e487f58296569cc7761460d1a26abacfcca4fa83","original_commit_id":"e487f58296569cc7761460d1a26abacfcca4fa83","user":{"login":"dkayiwa","id":1390773,"node_id":"MDQ6VXNlcjEzOTA3NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/1390773?v=4","gravatar_id":"","url":"https://api.github.com/users/dkayiwa","html_url":"https://github.com/dkayiwa","followers_url":"https://api.github.com/users/dkayiwa/followers","following_url":"https://api.github.com/users/dkayiwa/following{/other_user}","gists_url":"https://api.github.com/users/dkayiwa/gists{/gist_id}","starred_url":"https://api.github.com/users/dkayiwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkayiwa/subscriptions","organizations_url":"https://api.github.com/users/dkayiwa/orgs","repos_url":"https://api.github.com/users/dkayiwa/repos","events_url":"https://api.github.com/users/dkayiwa/events{/privacy}","received_events_url":"https://api.github.com/users/dkayiwa/received_events","type":"User","site_admin":false},"body":"Not a big deal though, how about replacing 'frontend' with 'spa'? 😊 ","created_at":"2019-06-19T10:26:53Z","updated_at":"2019-06-19T10:26:53Z","html_url":"https://github.com/openmrs/openmrs-module-spa/pull/2#discussion_r295227631","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/comments/295227631"},"html":{"href":"https://github.com/openmrs/openmrs-module-spa/pull/2#discussion_r295227631"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2","id":289627228,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg5NjI3MjI4","html_url":"https://github.com/openmrs/openmrs-module-spa/pull/2","diff_url":"https://github.com/openmrs/openmrs-module-spa/pull/2.diff","patch_url":"https://github.com/openmrs/openmrs-module-spa/pull/2.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues/2","number":2,"state":"open","locked":false,"title":"Create frontend dir on module load","user":{"login":"ojwanganto","id":2161877,"node_id":"MDQ6VXNlcjIxNjE4Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2161877?v=4","gravatar_id":"","url":"https://api.github.com/users/ojwanganto","html_url":"https://github.com/ojwanganto","followers_url":"https://api.github.com/users/ojwanganto/followers","following_url":"https://api.github.com/users/ojwanganto/following{/other_user}","gists_url":"https://api.github.com/users/ojwanganto/gists{/gist_id}","starred_url":"https://api.github.com/users/ojwanganto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojwanganto/subscriptions","organizations_url":"https://api.github.com/users/ojwanganto/orgs","repos_url":"https://api.github.com/users/ojwanganto/repos","events_url":"https://api.github.com/users/ojwanganto/events{/privacy}","received_events_url":"https://api.github.com/users/ojwanganto/received_events","type":"User","site_admin":false},"body":"There is a need to create a directory in the OpenMRS app directory from where static files for single spa components will be served. The directory should have a default name of  **frontend**. This should be manageable using a global property.\r\n\r\n\r\n\r\n","created_at":"2019-06-19T09:56:34Z","updated_at":"2019-06-19T10:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cde83d9dca78eb74fd9a203ec518fc14370bcb39","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues/2/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/statuses/e487f58296569cc7761460d1a26abacfcca4fa83","head":{"label":"ojwanganto:create-frontend-dir-on-module-load","ref":"create-frontend-dir-on-module-load","sha":"e487f58296569cc7761460d1a26abacfcca4fa83","user":{"login":"ojwanganto","id":2161877,"node_id":"MDQ6VXNlcjIxNjE4Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2161877?v=4","gravatar_id":"","url":"https://api.github.com/users/ojwanganto","html_url":"https://github.com/ojwanganto","followers_url":"https://api.github.com/users/ojwanganto/followers","following_url":"https://api.github.com/users/ojwanganto/following{/other_user}","gists_url":"https://api.github.com/users/ojwanganto/gists{/gist_id}","starred_url":"https://api.github.com/users/ojwanganto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojwanganto/subscriptions","organizations_url":"https://api.github.com/users/ojwanganto/orgs","repos_url":"https://api.github.com/users/ojwanganto/repos","events_url":"https://api.github.com/users/ojwanganto/events{/privacy}","received_events_url":"https://api.github.com/users/ojwanganto/received_events","type":"User","site_admin":false},"repo":{"id":191689071,"node_id":"MDEwOlJlcG9zaXRvcnkxOTE2ODkwNzE=","name":"openmrs-module-spa","full_name":"ojwanganto/openmrs-module-spa","private":false,"owner":{"login":"ojwanganto","id":2161877,"node_id":"MDQ6VXNlcjIxNjE4Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/2161877?v=4","gravatar_id":"","url":"https://api.github.com/users/ojwanganto","html_url":"https://github.com/ojwanganto","followers_url":"https://api.github.com/users/ojwanganto/followers","following_url":"https://api.github.com/users/ojwanganto/following{/other_user}","gists_url":"https://api.github.com/users/ojwanganto/gists{/gist_id}","starred_url":"https://api.github.com/users/ojwanganto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojwanganto/subscriptions","organizations_url":"https://api.github.com/users/ojwanganto/orgs","repos_url":"https://api.github.com/users/ojwanganto/repos","events_url":"https://api.github.com/users/ojwanganto/events{/privacy}","received_events_url":"https://api.github.com/users/ojwanganto/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ojwanganto/openmrs-module-spa","description":"The java module that allows for Tomcat to serve an SPA instead of jsps","fork":true,"url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa","forks_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/forks","keys_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/teams","hooks_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/hooks","issue_events_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/issues/events{/number}","events_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/events","assignees_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/assignees{/user}","branches_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/branches{/branch}","tags_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/tags","blobs_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/git/refs{/sha}","trees_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/statuses/{sha}","languages_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/languages","stargazers_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/stargazers","contributors_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/contributors","subscribers_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/subscribers","subscription_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/subscription","commits_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/commits{/sha}","git_commits_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/git/commits{/sha}","comments_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/comments{/number}","issue_comment_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/issues/comments{/number}","contents_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/contents/{+path}","compare_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/merges","archive_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/downloads","issues_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/issues{/number}","pulls_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/pulls{/number}","milestones_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/milestones{/number}","notifications_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/labels{/name}","releases_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/releases{/id}","deployments_url":"https://api.github.com/repos/ojwanganto/openmrs-module-spa/deployments","created_at":"2019-06-13T04:09:41Z","updated_at":"2019-06-13T04:09:43Z","pushed_at":"2019-06-19T09:50:50Z","git_url":"git://github.com/ojwanganto/openmrs-module-spa.git","ssh_url":"git@github.com:ojwanganto/openmrs-module-spa.git","clone_url":"https://github.com/ojwanganto/openmrs-module-spa.git","svn_url":"https://github.com/ojwanganto/openmrs-module-spa","homepage":"","size":31,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openmrs:master","ref":"master","sha":"8df90c7a4fb9418f868e3a4deaed83371f96a261","user":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":185872820,"node_id":"MDEwOlJlcG9zaXRvcnkxODU4NzI4MjA=","name":"openmrs-module-spa","full_name":"openmrs/openmrs-module-spa","private":false,"owner":{"login":"openmrs","id":860776,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDc3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/860776?v=4","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openmrs/openmrs-module-spa","description":"The java module that allows for Tomcat to serve an SPA instead of jsps","fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-spa","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/releases{/id}","deployments_url":"https://api.github.com/repos/openmrs/openmrs-module-spa/deployments","created_at":"2019-05-09T21:15:37Z","updated_at":"2019-06-02T19:01:14Z","pushed_at":"2019-06-19T09:56:35Z","git_url":"git://github.com/openmrs/openmrs-module-spa.git","ssh_url":"git@github.com:openmrs/openmrs-module-spa.git","clone_url":"https://github.com/openmrs/openmrs-module-spa.git","svn_url":"https://github.com/openmrs/openmrs-module-spa","homepage":"","size":31,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":4,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2"},"html":{"href":"https://github.com/openmrs/openmrs-module-spa/pull/2"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues/2"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-module-spa/statuses/e487f58296569cc7761460d1a26abacfcca4fa83"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"dkayiwa"}}