{"action":"created","issue":{"url":"https://api.github.com/repos/CloudyKit/jet/issues/93","repository_url":"https://api.github.com/repos/CloudyKit/jet","labels_url":"https://api.github.com/repos/CloudyKit/jet/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/CloudyKit/jet/issues/93/comments","events_url":"https://api.github.com/repos/CloudyKit/jet/issues/93/events","html_url":"https://github.com/CloudyKit/jet/pull/93","id":338217442,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MjA0MDM1","number":93,"title":"Fix inconsistency with add operator, Added switch/case, Added default block values, Filter block with format function","user":{"login":"maxime1907","id":19607336,"node_id":"MDQ6VXNlcjE5NjA3MzM2","avatar_url":"https://avatars3.githubusercontent.com/u/19607336?v=4","gravatar_id":"","url":"https://api.github.com/users/maxime1907","html_url":"https://github.com/maxime1907","followers_url":"https://api.github.com/users/maxime1907/followers","following_url":"https://api.github.com/users/maxime1907/following{/other_user}","gists_url":"https://api.github.com/users/maxime1907/gists{/gist_id}","starred_url":"https://api.github.com/users/maxime1907/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxime1907/subscriptions","organizations_url":"https://api.github.com/users/maxime1907/orgs","repos_url":"https://api.github.com/users/maxime1907/repos","events_url":"https://api.github.com/users/maxime1907/events{/privacy}","received_events_url":"https://api.github.com/users/maxime1907/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-04T10:19:30Z","updated_at":"2018-07-05T04:59:08Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/CloudyKit/jet/pulls/93","html_url":"https://github.com/CloudyKit/jet/pull/93","diff_url":"https://github.com/CloudyKit/jet/pull/93.diff","patch_url":"https://github.com/CloudyKit/jet/pull/93.patch"},"body":"Add:\r\n\"2\" + 1 - output: 3\r\n1 + \"2\" - output: 3\r\n\"2\" + \"2\" - output: 4\r\n\"2\" + \"2z\" - output: 22z\r\n\r\nSwitch/Case with empty case as default :\r\n{{ switch power }}\r\n    {{ case 10 }}\r\n        Value is 10\r\n    {{ end }}\r\n    {{ case }}\r\n        This is default case\r\n    {{ end }}\r\n{{ end }}\r\n\r\nDefault block:\r\n- Example 1:\r\n{{ Size = 10 }}\r\n{{ default }}\r\n    {{ Size = 20 }}\r\n{{ end }}\r\nSize is {{ Size }} cm\r\noutput : Size is 10 cm\r\n\r\n- Example 2:\r\n{{ default }}\r\n    {{ Size = 20 }}\r\n{{ end }}\r\nSize is {{ Size }} cm\r\noutput : Size is 20 cm\r\n\r\nFilter block with format function:\r\n{{ filter format(\"<-- %v -->\") }}\r\n    This is\r\n    formatted text\r\n{{ end }}\r\noutput:\r\n<-- This is -->\r\n<-- formatted text -->"},"comment":{"url":"https://api.github.com/repos/CloudyKit/jet/issues/comments/402606589","html_url":"https://github.com/CloudyKit/jet/pull/93#issuecomment-402606589","issue_url":"https://api.github.com/repos/CloudyKit/jet/issues/93","id":402606589,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjYwNjU4OQ==","user":{"login":"mvrhov","id":450008,"node_id":"MDQ6VXNlcjQ1MDAwOA==","avatar_url":"https://avatars3.githubusercontent.com/u/450008?v=4","gravatar_id":"","url":"https://api.github.com/users/mvrhov","html_url":"https://github.com/mvrhov","followers_url":"https://api.github.com/users/mvrhov/followers","following_url":"https://api.github.com/users/mvrhov/following{/other_user}","gists_url":"https://api.github.com/users/mvrhov/gists{/gist_id}","starred_url":"https://api.github.com/users/mvrhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvrhov/subscriptions","organizations_url":"https://api.github.com/users/mvrhov/orgs","repos_url":"https://api.github.com/users/mvrhov/repos","events_url":"https://api.github.com/users/mvrhov/events{/privacy}","received_events_url":"https://api.github.com/users/mvrhov/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T04:59:08Z","updated_at":"2018-07-05T04:59:08Z","author_association":"NONE","body":"IMO the default shouldn't be a block, but a pipeline \"filter\". "}}
{"actor":{"display_login":"mvrhov"}}