{"action":"created","comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/226322632","pull_request_review_id":166116575,"id":226322632,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjMyMjYzMg==","diff_hunk":"@@ -1,3 +1,40 @@\n-#!/bin/sh\n-cp $SNAP/bin/Caddyfile  $SNAP_DATA/Caddyfile\n-echo \"Replace $SNAP_DATA/Caddyfile with your own to customize reverse proxy\" \n+#!/bin/bash\n+\n+# Config options for Caddyfile\n+options=\"protocol siteurl port\"\n+\n+create_caddyfile(){\n+# Copy template to config Caddyfile\n+cp $SNAP/bin/Caddyfile $SNAP_DATA/Caddyfile\n+\n+}\n+\n+update_caddyfile(){\n+\n+# Config file path for Caddyfile\n+Caddyfile=$SNAP_DATA/Caddyfile\n+\n+# replace an option inside the config file. \n+refresh_opt_in_config() {","path":".snapcraft/resources/initcaddy","position":21,"original_position":21,"commit_id":"7e35a1fbfc13d734022ef34fded17828311c7e7c","original_commit_id":"7e35a1fbfc13d734022ef34fded17828311c7e7c","user":{"login":"LuluGO","id":15150876,"node_id":"MDQ6VXNlcjE1MTUwODc2","avatar_url":"https://avatars3.githubusercontent.com/u/15150876?v=4","gravatar_id":"","url":"https://api.github.com/users/LuluGO","html_url":"https://github.com/LuluGO","followers_url":"https://api.github.com/users/LuluGO/followers","following_url":"https://api.github.com/users/LuluGO/following{/other_user}","gists_url":"https://api.github.com/users/LuluGO/gists{/gist_id}","starred_url":"https://api.github.com/users/LuluGO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuluGO/subscriptions","organizations_url":"https://api.github.com/users/LuluGO/orgs","repos_url":"https://api.github.com/users/LuluGO/repos","events_url":"https://api.github.com/users/LuluGO/events{/privacy}","received_events_url":"https://api.github.com/users/LuluGO/received_events","type":"User","site_admin":false},"body":"True, I change it","created_at":"2018-10-18T14:15:23Z","updated_at":"2018-10-18T14:15:24Z","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/12351#discussion_r226322632","pull_request_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/226322632"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/12351#discussion_r226322632"},"pull_request":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351"}},"in_reply_to_id":225991798},"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351","id":223624326,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNjI0MzI2","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/12351","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/12351.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/12351.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12351","number":12351,"state":"open","locked":false,"title":"[NEW] Config hooks for snap","user":{"login":"LuluGO","id":15150876,"node_id":"MDQ6VXNlcjE1MTUwODc2","avatar_url":"https://avatars3.githubusercontent.com/u/15150876?v=4","gravatar_id":"","url":"https://api.github.com/users/LuluGO","html_url":"https://github.com/LuluGO","followers_url":"https://api.github.com/users/LuluGO/followers","following_url":"https://api.github.com/users/LuluGO/following{/other_user}","gists_url":"https://api.github.com/users/LuluGO/gists{/gist_id}","starred_url":"https://api.github.com/users/LuluGO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuluGO/subscriptions","organizations_url":"https://api.github.com/users/LuluGO/orgs","repos_url":"https://api.github.com/users/LuluGO/repos","events_url":"https://api.github.com/users/LuluGO/events{/privacy}","received_events_url":"https://api.github.com/users/LuluGO/received_events","type":"User","site_admin":false},"body":"Added snap folder with hooks to configure ROOT_URL, PORT, MONGO_URL, and other options. See snap/hooks/configure and resources/startRocketChat\r\nStill need to change regex expressions, and initcaddy script that fails to execute.","created_at":"2018-10-17T14:21:44Z","updated_at":"2018-10-18T14:15:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e415af4f560af9a849d8462412aed4a11bdc0fc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":220530747,"node_id":"MDU6TGFiZWwyMjA1MzA3NDc=","url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/stat:%20in%20progress","name":"stat: in progress","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12351/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/7e35a1fbfc13d734022ef34fded17828311c7e7c","head":{"label":"RocketChat:snap-hooks","ref":"snap-hooks","sha":"7e35a1fbfc13d734022ef34fded17828311c7e7c","user":{"login":"RocketChat","id":12508788,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTA4Nzg4","avatar_url":"https://avatars1.githubusercontent.com/u/12508788?v=4","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"node_id":"MDEwOlJlcG9zaXRvcnkzNTg2NjY5NA==","name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","private":false,"owner":{"login":"RocketChat","id":12508788,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTA4Nzg4","avatar_url":"https://avatars1.githubusercontent.com/u/12508788?v=4","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2018-10-18T13:56:06Z","pushed_at":"2018-10-18T14:07:41Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":79203,"stargazers_count":20219,"watchers_count":20219,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4308,"mirror_url":null,"archived":false,"open_issues_count":2168,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4308,"open_issues":2168,"watchers":20219,"default_branch":"develop"}},"base":{"label":"RocketChat:develop","ref":"develop","sha":"9ac5b552ed7e9da4cfe57550ba50c17dad29ef92","user":{"login":"RocketChat","id":12508788,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTA4Nzg4","avatar_url":"https://avatars1.githubusercontent.com/u/12508788?v=4","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"node_id":"MDEwOlJlcG9zaXRvcnkzNTg2NjY5NA==","name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","private":false,"owner":{"login":"RocketChat","id":12508788,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTA4Nzg4","avatar_url":"https://avatars1.githubusercontent.com/u/12508788?v=4","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2018-10-18T13:56:06Z","pushed_at":"2018-10-18T14:07:41Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":79203,"stargazers_count":20219,"watchers_count":20219,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4308,"mirror_url":null,"archived":false,"open_issues_count":2168,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4308,"open_issues":2168,"watchers":20219,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/12351"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12351"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/12351/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/12351/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/7e35a1fbfc13d734022ef34fded17828311c7e7c"}},"author_association":"NONE"}}
{"actor":{"display_login":"LuluGO"}}