{"action":"created","comment":{"url":"https://api.github.com/repos/walter-cd/walter/pulls/comments/40497054","id":40497054,"diff_hunk":"@@ -76,6 +78,50 @@ pipeline:\n     command: echo \"hello, world, command_stage_3\"\n ```\n \n+HCL (all files with .hcl prefix are assumed to be of HCL format)\n+```\n+//The pipeline\n+pipeline {\n+  stage {\n+    name = \"command_stage_1\"\n+    type = \"command\"\n+    command = \"echo 'hello, world'\"\n+  }\n+  stage {\n+    name = \"command_stage_2\"\n+    type = \"command\"\n+    command = \"echo 'hello, world, command_stage_2'\"\n+  }\n+  stage {\n+    name = \"command_stage_3\"\n+    type = \"command\"\n+    command = \"echo 'hello, world, command_stage_3'\"\n+  }\n+}\n+```\n+\n+JSON\n+```json\n+{\n+  \"pipeline\":{\n+    \"stage\" :{\n+      \"name\":\"command_stage_1\",\n+      \"type\":\"command\",\n+      \"command\":\"echo 'hello, world'\"\n+    },\n+    \"stage\":{","path":"README.md","position":51,"original_position":51,"commit_id":"073f6f283153c378af0da00d80406ccf779fec8b","original_commit_id":"073f6f283153c378af0da00d80406ccf779fec8b","user":{"login":"jacec","id":1622958,"avatar_url":"https://avatars.githubusercontent.com/u/1622958?v=3","gravatar_id":"","url":"https://api.github.com/users/jacec","html_url":"https://github.com/jacec","followers_url":"https://api.github.com/users/jacec/followers","following_url":"https://api.github.com/users/jacec/following{/other_user}","gists_url":"https://api.github.com/users/jacec/gists{/gist_id}","starred_url":"https://api.github.com/users/jacec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacec/subscriptions","organizations_url":"https://api.github.com/users/jacec/orgs","repos_url":"https://api.github.com/users/jacec/repos","events_url":"https://api.github.com/users/jacec/events{/privacy}","received_events_url":"https://api.github.com/users/jacec/received_events","type":"User","site_admin":false},"body":"Good point, interestingly the HCL lib accepts it and parses correctly, but in real terms javascript would parse this and assume the state of the last key. Maybe we could change the top level object to ```stages``` and have an array under that. I can change it, but what are your thoughts?","created_at":"2015-09-26T18:54:58Z","updated_at":"2015-09-26T18:54:58Z","html_url":"https://github.com/walter-cd/walter/pull/128#discussion_r40497054","pull_request_url":"https://api.github.com/repos/walter-cd/walter/pulls/128","_links":{"self":{"href":"https://api.github.com/repos/walter-cd/walter/pulls/comments/40497054"},"html":{"href":"https://github.com/walter-cd/walter/pull/128#discussion_r40497054"},"pull_request":{"href":"https://api.github.com/repos/walter-cd/walter/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/walter-cd/walter/pulls/128","id":42991218,"html_url":"https://github.com/walter-cd/walter/pull/128","diff_url":"https://github.com/walter-cd/walter/pull/128.diff","patch_url":"https://github.com/walter-cd/walter/pull/128.patch","issue_url":"https://api.github.com/repos/walter-cd/walter/issues/128","number":128,"state":"open","locked":false,"title":"Enhancement to support HCL and JSON configuration file formats","user":{"login":"jacec","id":1622958,"avatar_url":"https://avatars.githubusercontent.com/u/1622958?v=3","gravatar_id":"","url":"https://api.github.com/users/jacec","html_url":"https://github.com/jacec","followers_url":"https://api.github.com/users/jacec/followers","following_url":"https://api.github.com/users/jacec/following{/other_user}","gists_url":"https://api.github.com/users/jacec/gists{/gist_id}","starred_url":"https://api.github.com/users/jacec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacec/subscriptions","organizations_url":"https://api.github.com/users/jacec/orgs","repos_url":"https://api.github.com/users/jacec/repos","events_url":"https://api.github.com/users/jacec/events{/privacy}","received_events_url":"https://api.github.com/users/jacec/received_events","type":"User","site_admin":false},"body":"Pull request adding support for HCL and JSON configuration as discussed in #127\r\n\r\nNote: HCL and JSON configuration is converted to YAML and existing parsing code is therefore unchanged. See [HCL](https://github.com/hashicorp/hcl) for more information.\r\n\r\nhclconfig.go added \r\nhclconfig_test.go added\r\nReadme updated to reflect configuration language options.\r\nminor modification to walter that now assumes files with a suffix of \".hcl\" or \".json\" are config files in those formats. ALL other suffixes are assumed to be YAML and thus this shouldn't break any existing usage.\r\nAdded HCL and JSON test files\r\n\r\nbuild and all tests complete successfully.","created_at":"2015-08-20T23:47:44Z","updated_at":"2015-09-26T18:54:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d321cedb7af7526e12a1fcc42890590b197913cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/walter-cd/walter/pulls/128/commits","review_comments_url":"https://api.github.com/repos/walter-cd/walter/pulls/128/comments","review_comment_url":"https://api.github.com/repos/walter-cd/walter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/walter-cd/walter/issues/128/comments","statuses_url":"https://api.github.com/repos/walter-cd/walter/statuses/073f6f283153c378af0da00d80406ccf779fec8b","head":{"label":"jacec:jacec-hcl","ref":"jacec-hcl","sha":"073f6f283153c378af0da00d80406ccf779fec8b","user":{"login":"jacec","id":1622958,"avatar_url":"https://avatars.githubusercontent.com/u/1622958?v=3","gravatar_id":"","url":"https://api.github.com/users/jacec","html_url":"https://github.com/jacec","followers_url":"https://api.github.com/users/jacec/followers","following_url":"https://api.github.com/users/jacec/following{/other_user}","gists_url":"https://api.github.com/users/jacec/gists{/gist_id}","starred_url":"https://api.github.com/users/jacec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacec/subscriptions","organizations_url":"https://api.github.com/users/jacec/orgs","repos_url":"https://api.github.com/users/jacec/repos","events_url":"https://api.github.com/users/jacec/events{/privacy}","received_events_url":"https://api.github.com/users/jacec/received_events","type":"User","site_admin":false},"repo":{"id":40672211,"name":"walter","full_name":"jacec/walter","owner":{"login":"jacec","id":1622958,"avatar_url":"https://avatars.githubusercontent.com/u/1622958?v=3","gravatar_id":"","url":"https://api.github.com/users/jacec","html_url":"https://github.com/jacec","followers_url":"https://api.github.com/users/jacec/followers","following_url":"https://api.github.com/users/jacec/following{/other_user}","gists_url":"https://api.github.com/users/jacec/gists{/gist_id}","starred_url":"https://api.github.com/users/jacec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacec/subscriptions","organizations_url":"https://api.github.com/users/jacec/orgs","repos_url":"https://api.github.com/users/jacec/repos","events_url":"https://api.github.com/users/jacec/events{/privacy}","received_events_url":"https://api.github.com/users/jacec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacec/walter","description":"Tiny deployment pipeline","fork":true,"url":"https://api.github.com/repos/jacec/walter","forks_url":"https://api.github.com/repos/jacec/walter/forks","keys_url":"https://api.github.com/repos/jacec/walter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacec/walter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacec/walter/teams","hooks_url":"https://api.github.com/repos/jacec/walter/hooks","issue_events_url":"https://api.github.com/repos/jacec/walter/issues/events{/number}","events_url":"https://api.github.com/repos/jacec/walter/events","assignees_url":"https://api.github.com/repos/jacec/walter/assignees{/user}","branches_url":"https://api.github.com/repos/jacec/walter/branches{/branch}","tags_url":"https://api.github.com/repos/jacec/walter/tags","blobs_url":"https://api.github.com/repos/jacec/walter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacec/walter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacec/walter/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacec/walter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacec/walter/statuses/{sha}","languages_url":"https://api.github.com/repos/jacec/walter/languages","stargazers_url":"https://api.github.com/repos/jacec/walter/stargazers","contributors_url":"https://api.github.com/repos/jacec/walter/contributors","subscribers_url":"https://api.github.com/repos/jacec/walter/subscribers","subscription_url":"https://api.github.com/repos/jacec/walter/subscription","commits_url":"https://api.github.com/repos/jacec/walter/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacec/walter/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacec/walter/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacec/walter/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacec/walter/contents/{+path}","compare_url":"https://api.github.com/repos/jacec/walter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacec/walter/merges","archive_url":"https://api.github.com/repos/jacec/walter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacec/walter/downloads","issues_url":"https://api.github.com/repos/jacec/walter/issues{/number}","pulls_url":"https://api.github.com/repos/jacec/walter/pulls{/number}","milestones_url":"https://api.github.com/repos/jacec/walter/milestones{/number}","notifications_url":"https://api.github.com/repos/jacec/walter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacec/walter/labels{/name}","releases_url":"https://api.github.com/repos/jacec/walter/releases{/id}","created_at":"2015-08-13T17:23:52Z","updated_at":"2015-09-06T05:11:43Z","pushed_at":"2015-08-23T18:44:48Z","git_url":"git://github.com/jacec/walter.git","ssh_url":"git@github.com:jacec/walter.git","clone_url":"https://github.com/jacec/walter.git","svn_url":"https://github.com/jacec/walter","homepage":"http://ainoya.io/walter","size":403,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"walter-cd:master","ref":"master","sha":"1753962d83c167bf0bbed3f70698a73468152f5e","user":{"login":"walter-cd","id":8925782,"avatar_url":"https://avatars.githubusercontent.com/u/8925782?v=3","gravatar_id":"","url":"https://api.github.com/users/walter-cd","html_url":"https://github.com/walter-cd","followers_url":"https://api.github.com/users/walter-cd/followers","following_url":"https://api.github.com/users/walter-cd/following{/other_user}","gists_url":"https://api.github.com/users/walter-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/walter-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walter-cd/subscriptions","organizations_url":"https://api.github.com/users/walter-cd/orgs","repos_url":"https://api.github.com/users/walter-cd/repos","events_url":"https://api.github.com/users/walter-cd/events{/privacy}","received_events_url":"https://api.github.com/users/walter-cd/received_events","type":"Organization","site_admin":false},"repo":{"id":23059832,"name":"walter","full_name":"walter-cd/walter","owner":{"login":"walter-cd","id":8925782,"avatar_url":"https://avatars.githubusercontent.com/u/8925782?v=3","gravatar_id":"","url":"https://api.github.com/users/walter-cd","html_url":"https://github.com/walter-cd","followers_url":"https://api.github.com/users/walter-cd/followers","following_url":"https://api.github.com/users/walter-cd/following{/other_user}","gists_url":"https://api.github.com/users/walter-cd/gists{/gist_id}","starred_url":"https://api.github.com/users/walter-cd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walter-cd/subscriptions","organizations_url":"https://api.github.com/users/walter-cd/orgs","repos_url":"https://api.github.com/users/walter-cd/repos","events_url":"https://api.github.com/users/walter-cd/events{/privacy}","received_events_url":"https://api.github.com/users/walter-cd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/walter-cd/walter","description":"Tiny deployment pipeline","fork":false,"url":"https://api.github.com/repos/walter-cd/walter","forks_url":"https://api.github.com/repos/walter-cd/walter/forks","keys_url":"https://api.github.com/repos/walter-cd/walter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walter-cd/walter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walter-cd/walter/teams","hooks_url":"https://api.github.com/repos/walter-cd/walter/hooks","issue_events_url":"https://api.github.com/repos/walter-cd/walter/issues/events{/number}","events_url":"https://api.github.com/repos/walter-cd/walter/events","assignees_url":"https://api.github.com/repos/walter-cd/walter/assignees{/user}","branches_url":"https://api.github.com/repos/walter-cd/walter/branches{/branch}","tags_url":"https://api.github.com/repos/walter-cd/walter/tags","blobs_url":"https://api.github.com/repos/walter-cd/walter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walter-cd/walter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walter-cd/walter/git/refs{/sha}","trees_url":"https://api.github.com/repos/walter-cd/walter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walter-cd/walter/statuses/{sha}","languages_url":"https://api.github.com/repos/walter-cd/walter/languages","stargazers_url":"https://api.github.com/repos/walter-cd/walter/stargazers","contributors_url":"https://api.github.com/repos/walter-cd/walter/contributors","subscribers_url":"https://api.github.com/repos/walter-cd/walter/subscribers","subscription_url":"https://api.github.com/repos/walter-cd/walter/subscription","commits_url":"https://api.github.com/repos/walter-cd/walter/commits{/sha}","git_commits_url":"https://api.github.com/repos/walter-cd/walter/git/commits{/sha}","comments_url":"https://api.github.com/repos/walter-cd/walter/comments{/number}","issue_comment_url":"https://api.github.com/repos/walter-cd/walter/issues/comments{/number}","contents_url":"https://api.github.com/repos/walter-cd/walter/contents/{+path}","compare_url":"https://api.github.com/repos/walter-cd/walter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walter-cd/walter/merges","archive_url":"https://api.github.com/repos/walter-cd/walter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walter-cd/walter/downloads","issues_url":"https://api.github.com/repos/walter-cd/walter/issues{/number}","pulls_url":"https://api.github.com/repos/walter-cd/walter/pulls{/number}","milestones_url":"https://api.github.com/repos/walter-cd/walter/milestones{/number}","notifications_url":"https://api.github.com/repos/walter-cd/walter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walter-cd/walter/labels{/name}","releases_url":"https://api.github.com/repos/walter-cd/walter/releases{/id}","created_at":"2014-08-18T05:33:21Z","updated_at":"2015-09-26T16:27:12Z","pushed_at":"2015-09-25T04:10:53Z","git_url":"git://github.com/walter-cd/walter.git","ssh_url":"git@github.com:walter-cd/walter.git","clone_url":"https://github.com/walter-cd/walter.git","svn_url":"https://github.com/walter-cd/walter","homepage":"http://ainoya.io/walter","size":1231,"stargazers_count":248,"watchers_count":248,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":24,"forks":16,"open_issues":24,"watchers":248,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/walter-cd/walter/pulls/128"},"html":{"href":"https://github.com/walter-cd/walter/pull/128"},"issue":{"href":"https://api.github.com/repos/walter-cd/walter/issues/128"},"comments":{"href":"https://api.github.com/repos/walter-cd/walter/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/walter-cd/walter/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/walter-cd/walter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/walter-cd/walter/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/walter-cd/walter/statuses/073f6f283153c378af0da00d80406ccf779fec8b"}}}}