{"action":"created","comment":{"url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/comments/132011929","pull_request_review_id":55048410,"id":132011929,"diff_hunk":"@@ -9,11 +9,28 @@ const emitSuccess = message => console.log(green(` ✔ Sucesso: ${message}`));\n const emitError = message => console.log(red(` ✗ Erro: ${message}`));\n \n function cli(args) {\n-    gemidao(args)\n-        .then(() => {\n-            emitSuccess(args.sms ? 'sms enviado!' : 'chamada efetuada!');\n-        })\n-        .catch(pipe(prop('message'), emitError));\n+    if(args.bidirecional){\n+      send(args);\n+      var temp = args.de;\n+      args.de = args.para;\n+      args.para = temp;\n+      send(args);","path":"src/cli.js","position":14,"original_position":14,"commit_id":"8903c490b4255fb59fe0224c97f794bf72a7de26","original_commit_id":"8903c490b4255fb59fe0224c97f794bf72a7de26","user":{"login":"haskellcamargo","id":7553006,"avatar_url":"https://avatars0.githubusercontent.com/u/7553006?v=4","gravatar_id":"","url":"https://api.github.com/users/haskellcamargo","html_url":"https://github.com/haskellcamargo","followers_url":"https://api.github.com/users/haskellcamargo/followers","following_url":"https://api.github.com/users/haskellcamargo/following{/other_user}","gists_url":"https://api.github.com/users/haskellcamargo/gists{/gist_id}","starred_url":"https://api.github.com/users/haskellcamargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskellcamargo/subscriptions","organizations_url":"https://api.github.com/users/haskellcamargo/orgs","repos_url":"https://api.github.com/users/haskellcamargo/repos","events_url":"https://api.github.com/users/haskellcamargo/events{/privacy}","received_events_url":"https://api.github.com/users/haskellcamargo/received_events","type":"User","site_admin":false},"body":"Pela minha configuração do linter atual, até o `let` vai ser barrado. Ele vai permitir somente `const`, e vai bloquear reatribuição/mutabilidade (paradigma funcional).","created_at":"2017-08-08T19:42:02Z","updated_at":"2017-08-08T19:42:02Z","html_url":"https://github.com/haskellcamargo/gemidao-do-zap/pull/18#discussion_r132011929","pull_request_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/comments/132011929"},"html":{"href":"https://github.com/haskellcamargo/gemidao-do-zap/pull/18#discussion_r132011929"},"pull_request":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18","id":134739937,"html_url":"https://github.com/haskellcamargo/gemidao-do-zap/pull/18","diff_url":"https://github.com/haskellcamargo/gemidao-do-zap/pull/18.diff","patch_url":"https://github.com/haskellcamargo/gemidao-do-zap/pull/18.patch","issue_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues/18","number":18,"state":"open","locked":false,"title":"Add bidirecional call/sms send","user":{"login":"walteraa","id":5852041,"avatar_url":"https://avatars1.githubusercontent.com/u/5852041?v=4","gravatar_id":"","url":"https://api.github.com/users/walteraa","html_url":"https://github.com/walteraa","followers_url":"https://api.github.com/users/walteraa/followers","following_url":"https://api.github.com/users/walteraa/following{/other_user}","gists_url":"https://api.github.com/users/walteraa/gists{/gist_id}","starred_url":"https://api.github.com/users/walteraa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walteraa/subscriptions","organizations_url":"https://api.github.com/users/walteraa/orgs","repos_url":"https://api.github.com/users/walteraa/repos","events_url":"https://api.github.com/users/walteraa/events{/privacy}","received_events_url":"https://api.github.com/users/walteraa/received_events","type":"User","site_admin":false},"body":"Adiciona a flag `--bidirecional` para fazer chamada para ambos os números.\r\n`gemidao-do-zap --de=x --para=y --token=t --bidirecional`\r\n\r\nResolve a issue #16 ","created_at":"2017-08-08T19:30:02Z","updated_at":"2017-08-08T19:42:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1632c7f7d384cddce2046e4d33ec6ecac1eeb38e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18/commits","review_comments_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18/comments","review_comment_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues/18/comments","statuses_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/statuses/8903c490b4255fb59fe0224c97f794bf72a7de26","head":{"label":"walteraa:chamada_bidirecional","ref":"chamada_bidirecional","sha":"8903c490b4255fb59fe0224c97f794bf72a7de26","user":{"login":"walteraa","id":5852041,"avatar_url":"https://avatars1.githubusercontent.com/u/5852041?v=4","gravatar_id":"","url":"https://api.github.com/users/walteraa","html_url":"https://github.com/walteraa","followers_url":"https://api.github.com/users/walteraa/followers","following_url":"https://api.github.com/users/walteraa/following{/other_user}","gists_url":"https://api.github.com/users/walteraa/gists{/gist_id}","starred_url":"https://api.github.com/users/walteraa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walteraa/subscriptions","organizations_url":"https://api.github.com/users/walteraa/orgs","repos_url":"https://api.github.com/users/walteraa/repos","events_url":"https://api.github.com/users/walteraa/events{/privacy}","received_events_url":"https://api.github.com/users/walteraa/received_events","type":"User","site_admin":false},"repo":{"id":99723142,"name":"gemidao-do-zap","full_name":"walteraa/gemidao-do-zap","owner":{"login":"walteraa","id":5852041,"avatar_url":"https://avatars1.githubusercontent.com/u/5852041?v=4","gravatar_id":"","url":"https://api.github.com/users/walteraa","html_url":"https://github.com/walteraa","followers_url":"https://api.github.com/users/walteraa/followers","following_url":"https://api.github.com/users/walteraa/following{/other_user}","gists_url":"https://api.github.com/users/walteraa/gists{/gist_id}","starred_url":"https://api.github.com/users/walteraa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walteraa/subscriptions","organizations_url":"https://api.github.com/users/walteraa/orgs","repos_url":"https://api.github.com/users/walteraa/repos","events_url":"https://api.github.com/users/walteraa/events{/privacy}","received_events_url":"https://api.github.com/users/walteraa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/walteraa/gemidao-do-zap","description":"Uma aplicação de linha de comando que liga para alguém tocando o gemidão do Zap","fork":true,"url":"https://api.github.com/repos/walteraa/gemidao-do-zap","forks_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/forks","keys_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/teams","hooks_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/hooks","issue_events_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/issues/events{/number}","events_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/events","assignees_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/assignees{/user}","branches_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/branches{/branch}","tags_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/tags","blobs_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/git/refs{/sha}","trees_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/statuses/{sha}","languages_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/languages","stargazers_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/stargazers","contributors_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/contributors","subscribers_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/subscribers","subscription_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/subscription","commits_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/commits{/sha}","git_commits_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/git/commits{/sha}","comments_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/comments{/number}","issue_comment_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/issues/comments{/number}","contents_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/contents/{+path}","compare_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/merges","archive_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/downloads","issues_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/issues{/number}","pulls_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/pulls{/number}","milestones_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/milestones{/number}","notifications_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/labels{/name}","releases_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/releases{/id}","deployments_url":"https://api.github.com/repos/walteraa/gemidao-do-zap/deployments","created_at":"2017-08-08T18:17:30Z","updated_at":"2017-08-08T18:17:32Z","pushed_at":"2017-08-08T19:27:51Z","git_url":"git://github.com/walteraa/gemidao-do-zap.git","ssh_url":"git@github.com:walteraa/gemidao-do-zap.git","clone_url":"https://github.com/walteraa/gemidao-do-zap.git","svn_url":"https://github.com/walteraa/gemidao-do-zap","homepage":null,"size":722,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"haskellcamargo:master","ref":"master","sha":"4891ba489f00fa03eb8e00c0fa35937a3b2f5d2f","user":{"login":"haskellcamargo","id":7553006,"avatar_url":"https://avatars0.githubusercontent.com/u/7553006?v=4","gravatar_id":"","url":"https://api.github.com/users/haskellcamargo","html_url":"https://github.com/haskellcamargo","followers_url":"https://api.github.com/users/haskellcamargo/followers","following_url":"https://api.github.com/users/haskellcamargo/following{/other_user}","gists_url":"https://api.github.com/users/haskellcamargo/gists{/gist_id}","starred_url":"https://api.github.com/users/haskellcamargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskellcamargo/subscriptions","organizations_url":"https://api.github.com/users/haskellcamargo/orgs","repos_url":"https://api.github.com/users/haskellcamargo/repos","events_url":"https://api.github.com/users/haskellcamargo/events{/privacy}","received_events_url":"https://api.github.com/users/haskellcamargo/received_events","type":"User","site_admin":false},"repo":{"id":99598462,"name":"gemidao-do-zap","full_name":"haskellcamargo/gemidao-do-zap","owner":{"login":"haskellcamargo","id":7553006,"avatar_url":"https://avatars0.githubusercontent.com/u/7553006?v=4","gravatar_id":"","url":"https://api.github.com/users/haskellcamargo","html_url":"https://github.com/haskellcamargo","followers_url":"https://api.github.com/users/haskellcamargo/followers","following_url":"https://api.github.com/users/haskellcamargo/following{/other_user}","gists_url":"https://api.github.com/users/haskellcamargo/gists{/gist_id}","starred_url":"https://api.github.com/users/haskellcamargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskellcamargo/subscriptions","organizations_url":"https://api.github.com/users/haskellcamargo/orgs","repos_url":"https://api.github.com/users/haskellcamargo/repos","events_url":"https://api.github.com/users/haskellcamargo/events{/privacy}","received_events_url":"https://api.github.com/users/haskellcamargo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haskellcamargo/gemidao-do-zap","description":"Uma aplicação de linha de comando que liga para alguém tocando o gemidão do Zap","fork":false,"url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap","forks_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/forks","keys_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/teams","hooks_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/hooks","issue_events_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues/events{/number}","events_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/events","assignees_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/assignees{/user}","branches_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/branches{/branch}","tags_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/tags","blobs_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/git/refs{/sha}","trees_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/statuses/{sha}","languages_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/languages","stargazers_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/stargazers","contributors_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/contributors","subscribers_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/subscribers","subscription_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/subscription","commits_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/commits{/sha}","git_commits_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/git/commits{/sha}","comments_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/comments{/number}","issue_comment_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues/comments{/number}","contents_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/contents/{+path}","compare_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/merges","archive_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/downloads","issues_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues{/number}","pulls_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls{/number}","milestones_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/milestones{/number}","notifications_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/labels{/name}","releases_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/releases{/id}","deployments_url":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/deployments","created_at":"2017-08-07T16:35:02Z","updated_at":"2017-08-08T19:39:05Z","pushed_at":"2017-08-08T19:39:10Z","git_url":"git://github.com/haskellcamargo/gemidao-do-zap.git","ssh_url":"git@github.com:haskellcamargo/gemidao-do-zap.git","clone_url":"https://github.com/haskellcamargo/gemidao-do-zap.git","svn_url":"https://github.com/haskellcamargo/gemidao-do-zap","homepage":null,"size":722,"stargazers_count":519,"watchers_count":519,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":11,"forks":41,"open_issues":11,"watchers":519,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18"},"html":{"href":"https://github.com/haskellcamargo/gemidao-do-zap/pull/18"},"issue":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues/18"},"comments":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/haskellcamargo/gemidao-do-zap/statuses/8903c490b4255fb59fe0224c97f794bf72a7de26"}}}}
{"actor":{"display_login":"haskellcamargo"}}