{"action":"created","comment":{"url":"https://api.github.com/repos/AlexsJones/vortex/pulls/comments/201376262","pull_request_review_id":135865609,"id":201376262,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTM3NjI2Mg==","diff_hunk":"@@ -117,10 +123,20 @@ func (v *Vortex) processTemplate(templatepath, outputpath string) error {\n \n \t// Don't write the file if we have been told to validate only\n \tif !v.strict {\n-\t\tcolor.Green(\"Attempting to write file to %v\", filename)\n-\t\treturn ioutil.WriteFile(filename, writer.Bytes(), 0644)\n+\t\tv.logMessage(\"Attempting to write file to \", filename)\n+\t\tif err := ioutil.WriteFile(filename, writer.Bytes(), 0644); err != nil {\n+\t\t\treturn err\n+\t\t}\n+\t\tv.logMessage(\"Successfully writen to: \", filename)\n+\t\treturn nil\n \t}\n \t// ensure that we have a valid yaml file at the end of it\n-\tcolor.Green(\"Attempting to validate %v\", templatepath)\n+\tv.logMessage(\"Attempting to validate %v\", templatepath)\n \treturn yaml.UnmarshalStrict(writer.Bytes(), map[string]interface{}{})\n }\n+\n+func (v *Vortex) logMessage(args ...interface{}) {\n+\tif v.debug {\n+\t\tlog.Info(args)","path":"processor/processor.go","position":88,"original_position":88,"commit_id":"2a8125f6e7ec3effbaca92aefa18ca714340cbd4","original_commit_id":"2a8125f6e7ec3effbaca92aefa18ca714340cbd4","user":{"login":"MovieStoreGuy","id":30928402,"node_id":"MDQ6VXNlcjMwOTI4NDAy","avatar_url":"https://avatars2.githubusercontent.com/u/30928402?v=4","gravatar_id":"","url":"https://api.github.com/users/MovieStoreGuy","html_url":"https://github.com/MovieStoreGuy","followers_url":"https://api.github.com/users/MovieStoreGuy/followers","following_url":"https://api.github.com/users/MovieStoreGuy/following{/other_user}","gists_url":"https://api.github.com/users/MovieStoreGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/MovieStoreGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovieStoreGuy/subscriptions","organizations_url":"https://api.github.com/users/MovieStoreGuy/orgs","repos_url":"https://api.github.com/users/MovieStoreGuy/repos","events_url":"https://api.github.com/users/MovieStoreGuy/events{/privacy}","received_events_url":"https://api.github.com/users/MovieStoreGuy/received_events","type":"User","site_admin":false},"body":"'args' will need to be changed to `args...` as there is a slight difference.","created_at":"2018-07-10T14:56:56Z","updated_at":"2018-07-10T14:56:56Z","html_url":"https://github.com/AlexsJones/vortex/pull/12#discussion_r201376262","pull_request_url":"https://api.github.com/repos/AlexsJones/vortex/pulls/12","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AlexsJones/vortex/pulls/comments/201376262"},"html":{"href":"https://github.com/AlexsJones/vortex/pull/12#discussion_r201376262"},"pull_request":{"href":"https://api.github.com/repos/AlexsJones/vortex/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/AlexsJones/vortex/pulls/12","id":200380814,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMzgwODE0","html_url":"https://github.com/AlexsJones/vortex/pull/12","diff_url":"https://github.com/AlexsJones/vortex/pull/12.diff","patch_url":"https://github.com/AlexsJones/vortex/pull/12.patch","issue_url":"https://api.github.com/repos/AlexsJones/vortex/issues/12","number":12,"state":"open","locked":false,"title":"Fix/logging","user":{"login":"erleene","id":17433676,"node_id":"MDQ6VXNlcjE3NDMzNjc2","avatar_url":"https://avatars2.githubusercontent.com/u/17433676?v=4","gravatar_id":"","url":"https://api.github.com/users/erleene","html_url":"https://github.com/erleene","followers_url":"https://api.github.com/users/erleene/followers","following_url":"https://api.github.com/users/erleene/following{/other_user}","gists_url":"https://api.github.com/users/erleene/gists{/gist_id}","starred_url":"https://api.github.com/users/erleene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erleene/subscriptions","organizations_url":"https://api.github.com/users/erleene/orgs","repos_url":"https://api.github.com/users/erleene/repos","events_url":"https://api.github.com/users/erleene/events{/privacy}","received_events_url":"https://api.github.com/users/erleene/received_events","type":"User","site_admin":false},"body":"logging is enabled when verbose mode is set","created_at":"2018-07-10T12:34:58Z","updated_at":"2018-07-10T14:56:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b89058aa8ca8e4e13a374eb5ef0575d8500b18a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlexsJones/vortex/pulls/12/commits","review_comments_url":"https://api.github.com/repos/AlexsJones/vortex/pulls/12/comments","review_comment_url":"https://api.github.com/repos/AlexsJones/vortex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexsJones/vortex/issues/12/comments","statuses_url":"https://api.github.com/repos/AlexsJones/vortex/statuses/2a8125f6e7ec3effbaca92aefa18ca714340cbd4","head":{"label":"erleene:fix/logging","ref":"fix/logging","sha":"2a8125f6e7ec3effbaca92aefa18ca714340cbd4","user":{"login":"erleene","id":17433676,"node_id":"MDQ6VXNlcjE3NDMzNjc2","avatar_url":"https://avatars2.githubusercontent.com/u/17433676?v=4","gravatar_id":"","url":"https://api.github.com/users/erleene","html_url":"https://github.com/erleene","followers_url":"https://api.github.com/users/erleene/followers","following_url":"https://api.github.com/users/erleene/following{/other_user}","gists_url":"https://api.github.com/users/erleene/gists{/gist_id}","starred_url":"https://api.github.com/users/erleene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erleene/subscriptions","organizations_url":"https://api.github.com/users/erleene/orgs","repos_url":"https://api.github.com/users/erleene/repos","events_url":"https://api.github.com/users/erleene/events{/privacy}","received_events_url":"https://api.github.com/users/erleene/received_events","type":"User","site_admin":false},"repo":{"id":128766150,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg3NjYxNTA=","name":"vortex","full_name":"erleene/vortex","owner":{"login":"erleene","id":17433676,"node_id":"MDQ6VXNlcjE3NDMzNjc2","avatar_url":"https://avatars2.githubusercontent.com/u/17433676?v=4","gravatar_id":"","url":"https://api.github.com/users/erleene","html_url":"https://github.com/erleene","followers_url":"https://api.github.com/users/erleene/followers","following_url":"https://api.github.com/users/erleene/following{/other_user}","gists_url":"https://api.github.com/users/erleene/gists{/gist_id}","starred_url":"https://api.github.com/users/erleene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erleene/subscriptions","organizations_url":"https://api.github.com/users/erleene/orgs","repos_url":"https://api.github.com/users/erleene/repos","events_url":"https://api.github.com/users/erleene/events{/privacy}","received_events_url":"https://api.github.com/users/erleene/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erleene/vortex","description":"A stupidly simple template/variable file combiner written in Go","fork":true,"url":"https://api.github.com/repos/erleene/vortex","forks_url":"https://api.github.com/repos/erleene/vortex/forks","keys_url":"https://api.github.com/repos/erleene/vortex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erleene/vortex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erleene/vortex/teams","hooks_url":"https://api.github.com/repos/erleene/vortex/hooks","issue_events_url":"https://api.github.com/repos/erleene/vortex/issues/events{/number}","events_url":"https://api.github.com/repos/erleene/vortex/events","assignees_url":"https://api.github.com/repos/erleene/vortex/assignees{/user}","branches_url":"https://api.github.com/repos/erleene/vortex/branches{/branch}","tags_url":"https://api.github.com/repos/erleene/vortex/tags","blobs_url":"https://api.github.com/repos/erleene/vortex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erleene/vortex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erleene/vortex/git/refs{/sha}","trees_url":"https://api.github.com/repos/erleene/vortex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erleene/vortex/statuses/{sha}","languages_url":"https://api.github.com/repos/erleene/vortex/languages","stargazers_url":"https://api.github.com/repos/erleene/vortex/stargazers","contributors_url":"https://api.github.com/repos/erleene/vortex/contributors","subscribers_url":"https://api.github.com/repos/erleene/vortex/subscribers","subscription_url":"https://api.github.com/repos/erleene/vortex/subscription","commits_url":"https://api.github.com/repos/erleene/vortex/commits{/sha}","git_commits_url":"https://api.github.com/repos/erleene/vortex/git/commits{/sha}","comments_url":"https://api.github.com/repos/erleene/vortex/comments{/number}","issue_comment_url":"https://api.github.com/repos/erleene/vortex/issues/comments{/number}","contents_url":"https://api.github.com/repos/erleene/vortex/contents/{+path}","compare_url":"https://api.github.com/repos/erleene/vortex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erleene/vortex/merges","archive_url":"https://api.github.com/repos/erleene/vortex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erleene/vortex/downloads","issues_url":"https://api.github.com/repos/erleene/vortex/issues{/number}","pulls_url":"https://api.github.com/repos/erleene/vortex/pulls{/number}","milestones_url":"https://api.github.com/repos/erleene/vortex/milestones{/number}","notifications_url":"https://api.github.com/repos/erleene/vortex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erleene/vortex/labels{/name}","releases_url":"https://api.github.com/repos/erleene/vortex/releases{/id}","deployments_url":"https://api.github.com/repos/erleene/vortex/deployments","created_at":"2018-04-09T12:10:52Z","updated_at":"2018-07-10T09:13:28Z","pushed_at":"2018-07-10T14:45:17Z","git_url":"git://github.com/erleene/vortex.git","ssh_url":"git@github.com:erleene/vortex.git","clone_url":"https://github.com/erleene/vortex.git","svn_url":"https://github.com/erleene/vortex","homepage":"","size":1410,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AlexsJones:master","ref":"master","sha":"fb4c975f083103d7bc4393405492645ef88c8e68","user":{"login":"AlexsJones","id":1235925,"node_id":"MDQ6VXNlcjEyMzU5MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1235925?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsJones","html_url":"https://github.com/AlexsJones","followers_url":"https://api.github.com/users/AlexsJones/followers","following_url":"https://api.github.com/users/AlexsJones/following{/other_user}","gists_url":"https://api.github.com/users/AlexsJones/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsJones/subscriptions","organizations_url":"https://api.github.com/users/AlexsJones/orgs","repos_url":"https://api.github.com/users/AlexsJones/repos","events_url":"https://api.github.com/users/AlexsJones/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsJones/received_events","type":"User","site_admin":false},"repo":{"id":104920100,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ5MjAxMDA=","name":"vortex","full_name":"AlexsJones/vortex","owner":{"login":"AlexsJones","id":1235925,"node_id":"MDQ6VXNlcjEyMzU5MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1235925?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsJones","html_url":"https://github.com/AlexsJones","followers_url":"https://api.github.com/users/AlexsJones/followers","following_url":"https://api.github.com/users/AlexsJones/following{/other_user}","gists_url":"https://api.github.com/users/AlexsJones/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsJones/subscriptions","organizations_url":"https://api.github.com/users/AlexsJones/orgs","repos_url":"https://api.github.com/users/AlexsJones/repos","events_url":"https://api.github.com/users/AlexsJones/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsJones/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexsJones/vortex","description":"The light weight version of helm. KISS Kubernetes interpolation. ","fork":false,"url":"https://api.github.com/repos/AlexsJones/vortex","forks_url":"https://api.github.com/repos/AlexsJones/vortex/forks","keys_url":"https://api.github.com/repos/AlexsJones/vortex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexsJones/vortex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexsJones/vortex/teams","hooks_url":"https://api.github.com/repos/AlexsJones/vortex/hooks","issue_events_url":"https://api.github.com/repos/AlexsJones/vortex/issues/events{/number}","events_url":"https://api.github.com/repos/AlexsJones/vortex/events","assignees_url":"https://api.github.com/repos/AlexsJones/vortex/assignees{/user}","branches_url":"https://api.github.com/repos/AlexsJones/vortex/branches{/branch}","tags_url":"https://api.github.com/repos/AlexsJones/vortex/tags","blobs_url":"https://api.github.com/repos/AlexsJones/vortex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexsJones/vortex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexsJones/vortex/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexsJones/vortex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexsJones/vortex/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexsJones/vortex/languages","stargazers_url":"https://api.github.com/repos/AlexsJones/vortex/stargazers","contributors_url":"https://api.github.com/repos/AlexsJones/vortex/contributors","subscribers_url":"https://api.github.com/repos/AlexsJones/vortex/subscribers","subscription_url":"https://api.github.com/repos/AlexsJones/vortex/subscription","commits_url":"https://api.github.com/repos/AlexsJones/vortex/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexsJones/vortex/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexsJones/vortex/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexsJones/vortex/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexsJones/vortex/contents/{+path}","compare_url":"https://api.github.com/repos/AlexsJones/vortex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexsJones/vortex/merges","archive_url":"https://api.github.com/repos/AlexsJones/vortex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexsJones/vortex/downloads","issues_url":"https://api.github.com/repos/AlexsJones/vortex/issues{/number}","pulls_url":"https://api.github.com/repos/AlexsJones/vortex/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexsJones/vortex/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexsJones/vortex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexsJones/vortex/labels{/name}","releases_url":"https://api.github.com/repos/AlexsJones/vortex/releases{/id}","deployments_url":"https://api.github.com/repos/AlexsJones/vortex/deployments","created_at":"2017-09-26T17:59:23Z","updated_at":"2018-07-04T21:06:19Z","pushed_at":"2018-07-10T14:45:18Z","git_url":"git://github.com/AlexsJones/vortex.git","ssh_url":"git@github.com:AlexsJones/vortex.git","clone_url":"https://github.com/AlexsJones/vortex.git","svn_url":"https://github.com/AlexsJones/vortex","homepage":"","size":1404,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AlexsJones/vortex/pulls/12"},"html":{"href":"https://github.com/AlexsJones/vortex/pull/12"},"issue":{"href":"https://api.github.com/repos/AlexsJones/vortex/issues/12"},"comments":{"href":"https://api.github.com/repos/AlexsJones/vortex/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexsJones/vortex/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexsJones/vortex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexsJones/vortex/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/AlexsJones/vortex/statuses/2a8125f6e7ec3effbaca92aefa18ca714340cbd4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"MovieStoreGuy"}}