{"action":"closed","number":51,"pull_request":{"url":"https://api.github.com/repos/zhyu/nadia/pulls/51","id":156027270,"html_url":"https://github.com/zhyu/nadia/pull/51","diff_url":"https://github.com/zhyu/nadia/pull/51.diff","patch_url":"https://github.com/zhyu/nadia/pull/51.patch","issue_url":"https://api.github.com/repos/zhyu/nadia/issues/51","number":51,"state":"closed","locked":false,"title":"add behaviour for mocking","user":{"login":"ayrat555","id":6567687,"avatar_url":"https://avatars0.githubusercontent.com/u/6567687?v=4","gravatar_id":"","url":"https://api.github.com/users/ayrat555","html_url":"https://github.com/ayrat555","followers_url":"https://api.github.com/users/ayrat555/followers","following_url":"https://api.github.com/users/ayrat555/following{/other_user}","gists_url":"https://api.github.com/users/ayrat555/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrat555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrat555/subscriptions","organizations_url":"https://api.github.com/users/ayrat555/orgs","repos_url":"https://api.github.com/users/ayrat555/repos","events_url":"https://api.github.com/users/ayrat555/events{/privacy}","received_events_url":"https://api.github.com/users/ayrat555/received_events","type":"User","site_admin":false},"body":"I add the user api behaviour for mocking with Plataformatec's [mox](https://github.com/plataformatec/mox)\r\n\r\nfrom Jose Valim\r\n> One of the guidelines in Elixir is that every time you you generate a function in the user code it should be to abide to some behaviour, so yes, you need behaviours.","created_at":"2017-12-02T19:24:50Z","updated_at":"2018-03-05T05:07:50Z","closed_at":"2018-03-05T05:07:50Z","merged_at":"2018-03-05T05:07:50Z","merge_commit_sha":"153d117f8e370731f5caad78ab95c2d0c285a1ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zhyu/nadia/pulls/51/commits","review_comments_url":"https://api.github.com/repos/zhyu/nadia/pulls/51/comments","review_comment_url":"https://api.github.com/repos/zhyu/nadia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zhyu/nadia/issues/51/comments","statuses_url":"https://api.github.com/repos/zhyu/nadia/statuses/5ae565867174f38eafa79d75ef1cc6e4c067916c","head":{"label":"ayrat555:add-behaviour","ref":"add-behaviour","sha":"5ae565867174f38eafa79d75ef1cc6e4c067916c","user":{"login":"ayrat555","id":6567687,"avatar_url":"https://avatars0.githubusercontent.com/u/6567687?v=4","gravatar_id":"","url":"https://api.github.com/users/ayrat555","html_url":"https://github.com/ayrat555","followers_url":"https://api.github.com/users/ayrat555/followers","following_url":"https://api.github.com/users/ayrat555/following{/other_user}","gists_url":"https://api.github.com/users/ayrat555/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrat555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrat555/subscriptions","organizations_url":"https://api.github.com/users/ayrat555/orgs","repos_url":"https://api.github.com/users/ayrat555/repos","events_url":"https://api.github.com/users/ayrat555/events{/privacy}","received_events_url":"https://api.github.com/users/ayrat555/received_events","type":"User","site_admin":false},"repo":{"id":112868678,"name":"nadia","full_name":"ayrat555/nadia","owner":{"login":"ayrat555","id":6567687,"avatar_url":"https://avatars0.githubusercontent.com/u/6567687?v=4","gravatar_id":"","url":"https://api.github.com/users/ayrat555","html_url":"https://github.com/ayrat555","followers_url":"https://api.github.com/users/ayrat555/followers","following_url":"https://api.github.com/users/ayrat555/following{/other_user}","gists_url":"https://api.github.com/users/ayrat555/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrat555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrat555/subscriptions","organizations_url":"https://api.github.com/users/ayrat555/orgs","repos_url":"https://api.github.com/users/ayrat555/repos","events_url":"https://api.github.com/users/ayrat555/events{/privacy}","received_events_url":"https://api.github.com/users/ayrat555/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayrat555/nadia","description":"Telegram Bot API Wrapper written in Elixir","fork":true,"url":"https://api.github.com/repos/ayrat555/nadia","forks_url":"https://api.github.com/repos/ayrat555/nadia/forks","keys_url":"https://api.github.com/repos/ayrat555/nadia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayrat555/nadia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayrat555/nadia/teams","hooks_url":"https://api.github.com/repos/ayrat555/nadia/hooks","issue_events_url":"https://api.github.com/repos/ayrat555/nadia/issues/events{/number}","events_url":"https://api.github.com/repos/ayrat555/nadia/events","assignees_url":"https://api.github.com/repos/ayrat555/nadia/assignees{/user}","branches_url":"https://api.github.com/repos/ayrat555/nadia/branches{/branch}","tags_url":"https://api.github.com/repos/ayrat555/nadia/tags","blobs_url":"https://api.github.com/repos/ayrat555/nadia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayrat555/nadia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayrat555/nadia/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayrat555/nadia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayrat555/nadia/statuses/{sha}","languages_url":"https://api.github.com/repos/ayrat555/nadia/languages","stargazers_url":"https://api.github.com/repos/ayrat555/nadia/stargazers","contributors_url":"https://api.github.com/repos/ayrat555/nadia/contributors","subscribers_url":"https://api.github.com/repos/ayrat555/nadia/subscribers","subscription_url":"https://api.github.com/repos/ayrat555/nadia/subscription","commits_url":"https://api.github.com/repos/ayrat555/nadia/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayrat555/nadia/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayrat555/nadia/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayrat555/nadia/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayrat555/nadia/contents/{+path}","compare_url":"https://api.github.com/repos/ayrat555/nadia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayrat555/nadia/merges","archive_url":"https://api.github.com/repos/ayrat555/nadia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayrat555/nadia/downloads","issues_url":"https://api.github.com/repos/ayrat555/nadia/issues{/number}","pulls_url":"https://api.github.com/repos/ayrat555/nadia/pulls{/number}","milestones_url":"https://api.github.com/repos/ayrat555/nadia/milestones{/number}","notifications_url":"https://api.github.com/repos/ayrat555/nadia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayrat555/nadia/labels{/name}","releases_url":"https://api.github.com/repos/ayrat555/nadia/releases{/id}","deployments_url":"https://api.github.com/repos/ayrat555/nadia/deployments","created_at":"2017-12-02T19:01:26Z","updated_at":"2017-12-02T19:01:28Z","pushed_at":"2017-12-02T19:45:51Z","git_url":"git://github.com/ayrat555/nadia.git","ssh_url":"git@github.com:ayrat555/nadia.git","clone_url":"https://github.com/ayrat555/nadia.git","svn_url":"https://github.com/ayrat555/nadia","homepage":null,"size":124,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"zhyu:master","ref":"master","sha":"c74bad6eb033fe3b54e402be49d60ef8da779a27","user":{"login":"zhyu","id":1728523,"avatar_url":"https://avatars1.githubusercontent.com/u/1728523?v=4","gravatar_id":"","url":"https://api.github.com/users/zhyu","html_url":"https://github.com/zhyu","followers_url":"https://api.github.com/users/zhyu/followers","following_url":"https://api.github.com/users/zhyu/following{/other_user}","gists_url":"https://api.github.com/users/zhyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhyu/subscriptions","organizations_url":"https://api.github.com/users/zhyu/orgs","repos_url":"https://api.github.com/users/zhyu/repos","events_url":"https://api.github.com/users/zhyu/events{/privacy}","received_events_url":"https://api.github.com/users/zhyu/received_events","type":"User","site_admin":false},"repo":{"id":40744380,"name":"nadia","full_name":"zhyu/nadia","owner":{"login":"zhyu","id":1728523,"avatar_url":"https://avatars1.githubusercontent.com/u/1728523?v=4","gravatar_id":"","url":"https://api.github.com/users/zhyu","html_url":"https://github.com/zhyu","followers_url":"https://api.github.com/users/zhyu/followers","following_url":"https://api.github.com/users/zhyu/following{/other_user}","gists_url":"https://api.github.com/users/zhyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhyu/subscriptions","organizations_url":"https://api.github.com/users/zhyu/orgs","repos_url":"https://api.github.com/users/zhyu/repos","events_url":"https://api.github.com/users/zhyu/events{/privacy}","received_events_url":"https://api.github.com/users/zhyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhyu/nadia","description":"Telegram Bot API Wrapper written in Elixir","fork":false,"url":"https://api.github.com/repos/zhyu/nadia","forks_url":"https://api.github.com/repos/zhyu/nadia/forks","keys_url":"https://api.github.com/repos/zhyu/nadia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhyu/nadia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhyu/nadia/teams","hooks_url":"https://api.github.com/repos/zhyu/nadia/hooks","issue_events_url":"https://api.github.com/repos/zhyu/nadia/issues/events{/number}","events_url":"https://api.github.com/repos/zhyu/nadia/events","assignees_url":"https://api.github.com/repos/zhyu/nadia/assignees{/user}","branches_url":"https://api.github.com/repos/zhyu/nadia/branches{/branch}","tags_url":"https://api.github.com/repos/zhyu/nadia/tags","blobs_url":"https://api.github.com/repos/zhyu/nadia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhyu/nadia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhyu/nadia/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhyu/nadia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhyu/nadia/statuses/{sha}","languages_url":"https://api.github.com/repos/zhyu/nadia/languages","stargazers_url":"https://api.github.com/repos/zhyu/nadia/stargazers","contributors_url":"https://api.github.com/repos/zhyu/nadia/contributors","subscribers_url":"https://api.github.com/repos/zhyu/nadia/subscribers","subscription_url":"https://api.github.com/repos/zhyu/nadia/subscription","commits_url":"https://api.github.com/repos/zhyu/nadia/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhyu/nadia/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhyu/nadia/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhyu/nadia/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhyu/nadia/contents/{+path}","compare_url":"https://api.github.com/repos/zhyu/nadia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhyu/nadia/merges","archive_url":"https://api.github.com/repos/zhyu/nadia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhyu/nadia/downloads","issues_url":"https://api.github.com/repos/zhyu/nadia/issues{/number}","pulls_url":"https://api.github.com/repos/zhyu/nadia/pulls{/number}","milestones_url":"https://api.github.com/repos/zhyu/nadia/milestones{/number}","notifications_url":"https://api.github.com/repos/zhyu/nadia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhyu/nadia/labels{/name}","releases_url":"https://api.github.com/repos/zhyu/nadia/releases{/id}","deployments_url":"https://api.github.com/repos/zhyu/nadia/deployments","created_at":"2015-08-15T02:50:36Z","updated_at":"2018-02-25T05:12:00Z","pushed_at":"2018-03-05T05:07:50Z","git_url":"git://github.com/zhyu/nadia.git","ssh_url":"git@github.com:zhyu/nadia.git","clone_url":"https://github.com/zhyu/nadia.git","svn_url":"https://github.com/zhyu/nadia","homepage":null,"size":121,"stargazers_count":164,"watchers_count":164,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":47,"open_issues":13,"watchers":164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/51"},"html":{"href":"https://github.com/zhyu/nadia/pull/51"},"issue":{"href":"https://api.github.com/repos/zhyu/nadia/issues/51"},"comments":{"href":"https://api.github.com/repos/zhyu/nadia/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/zhyu/nadia/statuses/5ae565867174f38eafa79d75ef1cc6e4c067916c"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"zhyu","id":1728523,"avatar_url":"https://avatars1.githubusercontent.com/u/1728523?v=4","gravatar_id":"","url":"https://api.github.com/users/zhyu","html_url":"https://github.com/zhyu","followers_url":"https://api.github.com/users/zhyu/followers","following_url":"https://api.github.com/users/zhyu/following{/other_user}","gists_url":"https://api.github.com/users/zhyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhyu/subscriptions","organizations_url":"https://api.github.com/users/zhyu/orgs","repos_url":"https://api.github.com/users/zhyu/repos","events_url":"https://api.github.com/users/zhyu/events{/privacy}","received_events_url":"https://api.github.com/users/zhyu/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":37,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"zhyu"}}