{"action":"created","comment":{"url":"https://api.github.com/repos/bitrise-io/envman/pulls/comments/35751535","id":35751535,"diff_hunk":"@@ -0,0 +1,306 @@\n+package envman\n+\n+import (\n+\t\"errors\"\n+\t\"io/ioutil\"\n+\t\"os\"\n+\t\"strconv\"\n+\t\"strings\"\n+\n+\tlog \"github.com/Sirupsen/logrus\"\n+\t\"github.com/bitrise-io/envman/models\"\n+\t\"github.com/bitrise-io/go-pathutil/pathutil\"\n+\t\"github.com/bitrise-io/goinp/goinp\"\n+\t\"gopkg.in/yaml.v2\"\n+)\n+\n+var (\n+\t// CurrentEnvStoreFilePath ...\n+\tCurrentEnvStoreFilePath string\n+\n+\t// ToolMode ...\n+\tToolMode bool\n+)\n+\n+type envsYMLModel struct {\n+\tEnvs []models.EnvironmentItemModel `yaml:\"environments\"`","path":"envman/util.go","position":26,"original_position":26,"commit_id":"a73905466a2e64ec59bc0419da4f34a1b9b9e4ef","original_commit_id":"a73905466a2e64ec59bc0419da4f34a1b9b9e4ef","user":{"login":"viktorbenei","id":430618,"avatar_url":"https://avatars.githubusercontent.com/u/430618?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorbenei","html_url":"https://github.com/viktorbenei","followers_url":"https://api.github.com/users/viktorbenei/followers","following_url":"https://api.github.com/users/viktorbenei/following{/other_user}","gists_url":"https://api.github.com/users/viktorbenei/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorbenei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorbenei/subscriptions","organizations_url":"https://api.github.com/users/viktorbenei/orgs","repos_url":"https://api.github.com/users/viktorbenei/repos","events_url":"https://api.github.com/users/viktorbenei/events{/privacy}","received_events_url":"https://api.github.com/users/viktorbenei/received_events","type":"User","site_admin":false},"body":"envs","created_at":"2015-07-29T12:06:45Z","updated_at":"2015-07-29T12:06:45Z","html_url":"https://github.com/bitrise-io/envman/pull/36#discussion_r35751535","pull_request_url":"https://api.github.com/repos/bitrise-io/envman/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/bitrise-io/envman/pulls/comments/35751535"},"html":{"href":"https://github.com/bitrise-io/envman/pull/36#discussion_r35751535"},"pull_request":{"href":"https://api.github.com/repos/bitrise-io/envman/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/bitrise-io/envman/pulls/36","id":41115065,"html_url":"https://github.com/bitrise-io/envman/pull/36","diff_url":"https://github.com/bitrise-io/envman/pull/36.diff","patch_url":"https://github.com/bitrise-io/envman/pull/36.patch","issue_url":"https://api.github.com/repos/bitrise-io/envman/issues/36","number":36,"state":"open","locked":false,"title":"New models","user":{"login":"gkiki90","id":12427060,"avatar_url":"https://avatars.githubusercontent.com/u/12427060?v=3","gravatar_id":"","url":"https://api.github.com/users/gkiki90","html_url":"https://github.com/gkiki90","followers_url":"https://api.github.com/users/gkiki90/followers","following_url":"https://api.github.com/users/gkiki90/following{/other_user}","gists_url":"https://api.github.com/users/gkiki90/gists{/gist_id}","starred_url":"https://api.github.com/users/gkiki90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkiki90/subscriptions","organizations_url":"https://api.github.com/users/gkiki90/orgs","repos_url":"https://api.github.com/users/gkiki90/repos","events_url":"https://api.github.com/users/gkiki90/events{/privacy}","received_events_url":"https://api.github.com/users/gkiki90/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-29T12:01:54Z","updated_at":"2015-07-29T12:06:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30c1086179387546509ff2e79cdf83296399b599","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitrise-io/envman/pulls/36/commits","review_comments_url":"https://api.github.com/repos/bitrise-io/envman/pulls/36/comments","review_comment_url":"https://api.github.com/repos/bitrise-io/envman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitrise-io/envman/issues/36/comments","statuses_url":"https://api.github.com/repos/bitrise-io/envman/statuses/a73905466a2e64ec59bc0419da4f34a1b9b9e4ef","head":{"label":"gkiki90:new_models","ref":"new_models","sha":"a73905466a2e64ec59bc0419da4f34a1b9b9e4ef","user":{"login":"gkiki90","id":12427060,"avatar_url":"https://avatars.githubusercontent.com/u/12427060?v=3","gravatar_id":"","url":"https://api.github.com/users/gkiki90","html_url":"https://github.com/gkiki90","followers_url":"https://api.github.com/users/gkiki90/followers","following_url":"https://api.github.com/users/gkiki90/following{/other_user}","gists_url":"https://api.github.com/users/gkiki90/gists{/gist_id}","starred_url":"https://api.github.com/users/gkiki90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkiki90/subscriptions","organizations_url":"https://api.github.com/users/gkiki90/orgs","repos_url":"https://api.github.com/users/gkiki90/repos","events_url":"https://api.github.com/users/gkiki90/events{/privacy}","received_events_url":"https://api.github.com/users/gkiki90/received_events","type":"User","site_admin":false},"repo":{"id":36940971,"name":"envman","full_name":"gkiki90/envman","owner":{"login":"gkiki90","id":12427060,"avatar_url":"https://avatars.githubusercontent.com/u/12427060?v=3","gravatar_id":"","url":"https://api.github.com/users/gkiki90","html_url":"https://github.com/gkiki90","followers_url":"https://api.github.com/users/gkiki90/followers","following_url":"https://api.github.com/users/gkiki90/following{/other_user}","gists_url":"https://api.github.com/users/gkiki90/gists{/gist_id}","starred_url":"https://api.github.com/users/gkiki90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkiki90/subscriptions","organizations_url":"https://api.github.com/users/gkiki90/orgs","repos_url":"https://api.github.com/users/gkiki90/repos","events_url":"https://api.github.com/users/gkiki90/events{/privacy}","received_events_url":"https://api.github.com/users/gkiki90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gkiki90/envman","description":"Environment variable manager","fork":true,"url":"https://api.github.com/repos/gkiki90/envman","forks_url":"https://api.github.com/repos/gkiki90/envman/forks","keys_url":"https://api.github.com/repos/gkiki90/envman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gkiki90/envman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gkiki90/envman/teams","hooks_url":"https://api.github.com/repos/gkiki90/envman/hooks","issue_events_url":"https://api.github.com/repos/gkiki90/envman/issues/events{/number}","events_url":"https://api.github.com/repos/gkiki90/envman/events","assignees_url":"https://api.github.com/repos/gkiki90/envman/assignees{/user}","branches_url":"https://api.github.com/repos/gkiki90/envman/branches{/branch}","tags_url":"https://api.github.com/repos/gkiki90/envman/tags","blobs_url":"https://api.github.com/repos/gkiki90/envman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gkiki90/envman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gkiki90/envman/git/refs{/sha}","trees_url":"https://api.github.com/repos/gkiki90/envman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gkiki90/envman/statuses/{sha}","languages_url":"https://api.github.com/repos/gkiki90/envman/languages","stargazers_url":"https://api.github.com/repos/gkiki90/envman/stargazers","contributors_url":"https://api.github.com/repos/gkiki90/envman/contributors","subscribers_url":"https://api.github.com/repos/gkiki90/envman/subscribers","subscription_url":"https://api.github.com/repos/gkiki90/envman/subscription","commits_url":"https://api.github.com/repos/gkiki90/envman/commits{/sha}","git_commits_url":"https://api.github.com/repos/gkiki90/envman/git/commits{/sha}","comments_url":"https://api.github.com/repos/gkiki90/envman/comments{/number}","issue_comment_url":"https://api.github.com/repos/gkiki90/envman/issues/comments{/number}","contents_url":"https://api.github.com/repos/gkiki90/envman/contents/{+path}","compare_url":"https://api.github.com/repos/gkiki90/envman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gkiki90/envman/merges","archive_url":"https://api.github.com/repos/gkiki90/envman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gkiki90/envman/downloads","issues_url":"https://api.github.com/repos/gkiki90/envman/issues{/number}","pulls_url":"https://api.github.com/repos/gkiki90/envman/pulls{/number}","milestones_url":"https://api.github.com/repos/gkiki90/envman/milestones{/number}","notifications_url":"https://api.github.com/repos/gkiki90/envman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gkiki90/envman/labels{/name}","releases_url":"https://api.github.com/repos/gkiki90/envman/releases{/id}","created_at":"2015-06-05T15:44:37Z","updated_at":"2015-06-05T15:44:37Z","pushed_at":"2015-07-29T12:01:31Z","git_url":"git://github.com/gkiki90/envman.git","ssh_url":"git@github.com:gkiki90/envman.git","clone_url":"https://github.com/gkiki90/envman.git","svn_url":"https://github.com/gkiki90/envman","homepage":null,"size":462,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bitrise-io:master","ref":"master","sha":"dbd3a06a10fff600758c1e08917c3622b6235203","user":{"login":"bitrise-io","id":7174390,"avatar_url":"https://avatars.githubusercontent.com/u/7174390?v=3","gravatar_id":"","url":"https://api.github.com/users/bitrise-io","html_url":"https://github.com/bitrise-io","followers_url":"https://api.github.com/users/bitrise-io/followers","following_url":"https://api.github.com/users/bitrise-io/following{/other_user}","gists_url":"https://api.github.com/users/bitrise-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bitrise-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitrise-io/subscriptions","organizations_url":"https://api.github.com/users/bitrise-io/orgs","repos_url":"https://api.github.com/users/bitrise-io/repos","events_url":"https://api.github.com/users/bitrise-io/events{/privacy}","received_events_url":"https://api.github.com/users/bitrise-io/received_events","type":"Organization","site_admin":false},"repo":{"id":36938965,"name":"envman","full_name":"bitrise-io/envman","owner":{"login":"bitrise-io","id":7174390,"avatar_url":"https://avatars.githubusercontent.com/u/7174390?v=3","gravatar_id":"","url":"https://api.github.com/users/bitrise-io","html_url":"https://github.com/bitrise-io","followers_url":"https://api.github.com/users/bitrise-io/followers","following_url":"https://api.github.com/users/bitrise-io/following{/other_user}","gists_url":"https://api.github.com/users/bitrise-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bitrise-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitrise-io/subscriptions","organizations_url":"https://api.github.com/users/bitrise-io/orgs","repos_url":"https://api.github.com/users/bitrise-io/repos","events_url":"https://api.github.com/users/bitrise-io/events{/privacy}","received_events_url":"https://api.github.com/users/bitrise-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitrise-io/envman","description":"Environment variable manager","fork":false,"url":"https://api.github.com/repos/bitrise-io/envman","forks_url":"https://api.github.com/repos/bitrise-io/envman/forks","keys_url":"https://api.github.com/repos/bitrise-io/envman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitrise-io/envman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitrise-io/envman/teams","hooks_url":"https://api.github.com/repos/bitrise-io/envman/hooks","issue_events_url":"https://api.github.com/repos/bitrise-io/envman/issues/events{/number}","events_url":"https://api.github.com/repos/bitrise-io/envman/events","assignees_url":"https://api.github.com/repos/bitrise-io/envman/assignees{/user}","branches_url":"https://api.github.com/repos/bitrise-io/envman/branches{/branch}","tags_url":"https://api.github.com/repos/bitrise-io/envman/tags","blobs_url":"https://api.github.com/repos/bitrise-io/envman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitrise-io/envman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitrise-io/envman/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitrise-io/envman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitrise-io/envman/statuses/{sha}","languages_url":"https://api.github.com/repos/bitrise-io/envman/languages","stargazers_url":"https://api.github.com/repos/bitrise-io/envman/stargazers","contributors_url":"https://api.github.com/repos/bitrise-io/envman/contributors","subscribers_url":"https://api.github.com/repos/bitrise-io/envman/subscribers","subscription_url":"https://api.github.com/repos/bitrise-io/envman/subscription","commits_url":"https://api.github.com/repos/bitrise-io/envman/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitrise-io/envman/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitrise-io/envman/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitrise-io/envman/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitrise-io/envman/contents/{+path}","compare_url":"https://api.github.com/repos/bitrise-io/envman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitrise-io/envman/merges","archive_url":"https://api.github.com/repos/bitrise-io/envman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitrise-io/envman/downloads","issues_url":"https://api.github.com/repos/bitrise-io/envman/issues{/number}","pulls_url":"https://api.github.com/repos/bitrise-io/envman/pulls{/number}","milestones_url":"https://api.github.com/repos/bitrise-io/envman/milestones{/number}","notifications_url":"https://api.github.com/repos/bitrise-io/envman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitrise-io/envman/labels{/name}","releases_url":"https://api.github.com/repos/bitrise-io/envman/releases{/id}","created_at":"2015-06-05T15:02:28Z","updated_at":"2015-07-10T10:55:19Z","pushed_at":"2015-07-29T12:01:55Z","git_url":"git://github.com/bitrise-io/envman.git","ssh_url":"git@github.com:bitrise-io/envman.git","clone_url":"https://github.com/bitrise-io/envman.git","svn_url":"https://github.com/bitrise-io/envman","homepage":null,"size":690,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitrise-io/envman/pulls/36"},"html":{"href":"https://github.com/bitrise-io/envman/pull/36"},"issue":{"href":"https://api.github.com/repos/bitrise-io/envman/issues/36"},"comments":{"href":"https://api.github.com/repos/bitrise-io/envman/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/bitrise-io/envman/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/bitrise-io/envman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitrise-io/envman/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/bitrise-io/envman/statuses/a73905466a2e64ec59bc0419da4f34a1b9b9e4ef"}}}}