{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/pshon/vcapi/pulls/3","id":54683938,"html_url":"https://github.com/pshon/vcapi/pull/3","diff_url":"https://github.com/pshon/vcapi/pull/3.diff","patch_url":"https://github.com/pshon/vcapi/pull/3.patch","issue_url":"https://api.github.com/repos/pshon/vcapi/issues/3","number":3,"state":"closed","locked":false,"title":"Add method getCompanies to User model","user":{"login":"gregurco","id":4052904,"avatar_url":"https://avatars.githubusercontent.com/u/4052904?v=3","gravatar_id":"","url":"https://api.github.com/users/gregurco","html_url":"https://github.com/gregurco","followers_url":"https://api.github.com/users/gregurco/followers","following_url":"https://api.github.com/users/gregurco/following{/other_user}","gists_url":"https://api.github.com/users/gregurco/gists{/gist_id}","starred_url":"https://api.github.com/users/gregurco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregurco/subscriptions","organizations_url":"https://api.github.com/users/gregurco/orgs","repos_url":"https://api.github.com/users/gregurco/repos","events_url":"https://api.github.com/users/gregurco/events{/privacy}","received_events_url":"https://api.github.com/users/gregurco/received_events","type":"User","site_admin":false},"body":" * Create method to get all user companies\r\n * Add missed properties to Company model\r\n * Refactor Company constructor. It's better to made it dynamic, because incoming object is not persistent and can be consist of different number of properties. Ex: api returns all data, when receives from companies/user_companies.json and it's no need to call Company::getInfo and to create extra request.","created_at":"2015-12-28T21:08:57Z","updated_at":"2015-12-28T21:12:25Z","closed_at":"2015-12-28T21:12:25Z","merged_at":"2015-12-28T21:12:25Z","merge_commit_sha":"0a091b1a450852697147a0504e7de0a3948f131b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pshon/vcapi/pulls/3/commits","review_comments_url":"https://api.github.com/repos/pshon/vcapi/pulls/3/comments","review_comment_url":"https://api.github.com/repos/pshon/vcapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pshon/vcapi/issues/3/comments","statuses_url":"https://api.github.com/repos/pshon/vcapi/statuses/b222ea559788591d477cffe14ade15497b7d774e","head":{"label":"gregurco:master","ref":"master","sha":"b222ea559788591d477cffe14ade15497b7d774e","user":{"login":"gregurco","id":4052904,"avatar_url":"https://avatars.githubusercontent.com/u/4052904?v=3","gravatar_id":"","url":"https://api.github.com/users/gregurco","html_url":"https://github.com/gregurco","followers_url":"https://api.github.com/users/gregurco/followers","following_url":"https://api.github.com/users/gregurco/following{/other_user}","gists_url":"https://api.github.com/users/gregurco/gists{/gist_id}","starred_url":"https://api.github.com/users/gregurco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregurco/subscriptions","organizations_url":"https://api.github.com/users/gregurco/orgs","repos_url":"https://api.github.com/users/gregurco/repos","events_url":"https://api.github.com/users/gregurco/events{/privacy}","received_events_url":"https://api.github.com/users/gregurco/received_events","type":"User","site_admin":false},"repo":{"id":48706598,"name":"vcapi","full_name":"gregurco/vcapi","owner":{"login":"gregurco","id":4052904,"avatar_url":"https://avatars.githubusercontent.com/u/4052904?v=3","gravatar_id":"","url":"https://api.github.com/users/gregurco","html_url":"https://github.com/gregurco","followers_url":"https://api.github.com/users/gregurco/followers","following_url":"https://api.github.com/users/gregurco/following{/other_user}","gists_url":"https://api.github.com/users/gregurco/gists{/gist_id}","starred_url":"https://api.github.com/users/gregurco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregurco/subscriptions","organizations_url":"https://api.github.com/users/gregurco/orgs","repos_url":"https://api.github.com/users/gregurco/repos","events_url":"https://api.github.com/users/gregurco/events{/privacy}","received_events_url":"https://api.github.com/users/gregurco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gregurco/vcapi","description":"Nonofficial VirCities API implementation","fork":true,"url":"https://api.github.com/repos/gregurco/vcapi","forks_url":"https://api.github.com/repos/gregurco/vcapi/forks","keys_url":"https://api.github.com/repos/gregurco/vcapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregurco/vcapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregurco/vcapi/teams","hooks_url":"https://api.github.com/repos/gregurco/vcapi/hooks","issue_events_url":"https://api.github.com/repos/gregurco/vcapi/issues/events{/number}","events_url":"https://api.github.com/repos/gregurco/vcapi/events","assignees_url":"https://api.github.com/repos/gregurco/vcapi/assignees{/user}","branches_url":"https://api.github.com/repos/gregurco/vcapi/branches{/branch}","tags_url":"https://api.github.com/repos/gregurco/vcapi/tags","blobs_url":"https://api.github.com/repos/gregurco/vcapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregurco/vcapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregurco/vcapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregurco/vcapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregurco/vcapi/statuses/{sha}","languages_url":"https://api.github.com/repos/gregurco/vcapi/languages","stargazers_url":"https://api.github.com/repos/gregurco/vcapi/stargazers","contributors_url":"https://api.github.com/repos/gregurco/vcapi/contributors","subscribers_url":"https://api.github.com/repos/gregurco/vcapi/subscribers","subscription_url":"https://api.github.com/repos/gregurco/vcapi/subscription","commits_url":"https://api.github.com/repos/gregurco/vcapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregurco/vcapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregurco/vcapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregurco/vcapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregurco/vcapi/contents/{+path}","compare_url":"https://api.github.com/repos/gregurco/vcapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregurco/vcapi/merges","archive_url":"https://api.github.com/repos/gregurco/vcapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregurco/vcapi/downloads","issues_url":"https://api.github.com/repos/gregurco/vcapi/issues{/number}","pulls_url":"https://api.github.com/repos/gregurco/vcapi/pulls{/number}","milestones_url":"https://api.github.com/repos/gregurco/vcapi/milestones{/number}","notifications_url":"https://api.github.com/repos/gregurco/vcapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregurco/vcapi/labels{/name}","releases_url":"https://api.github.com/repos/gregurco/vcapi/releases{/id}","created_at":"2015-12-28T18:32:53Z","updated_at":"2015-12-28T18:33:08Z","pushed_at":"2015-12-28T21:02:06Z","git_url":"git://github.com/gregurco/vcapi.git","ssh_url":"git@github.com:gregurco/vcapi.git","clone_url":"https://github.com/gregurco/vcapi.git","svn_url":"https://github.com/gregurco/vcapi","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"pshon:master","ref":"master","sha":"9deb85665cb5c04fadf98dc17534b52a1a71c0c0","user":{"login":"pshon","id":1202989,"avatar_url":"https://avatars.githubusercontent.com/u/1202989?v=3","gravatar_id":"","url":"https://api.github.com/users/pshon","html_url":"https://github.com/pshon","followers_url":"https://api.github.com/users/pshon/followers","following_url":"https://api.github.com/users/pshon/following{/other_user}","gists_url":"https://api.github.com/users/pshon/gists{/gist_id}","starred_url":"https://api.github.com/users/pshon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshon/subscriptions","organizations_url":"https://api.github.com/users/pshon/orgs","repos_url":"https://api.github.com/users/pshon/repos","events_url":"https://api.github.com/users/pshon/events{/privacy}","received_events_url":"https://api.github.com/users/pshon/received_events","type":"User","site_admin":false},"repo":{"id":48618249,"name":"vcapi","full_name":"pshon/vcapi","owner":{"login":"pshon","id":1202989,"avatar_url":"https://avatars.githubusercontent.com/u/1202989?v=3","gravatar_id":"","url":"https://api.github.com/users/pshon","html_url":"https://github.com/pshon","followers_url":"https://api.github.com/users/pshon/followers","following_url":"https://api.github.com/users/pshon/following{/other_user}","gists_url":"https://api.github.com/users/pshon/gists{/gist_id}","starred_url":"https://api.github.com/users/pshon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshon/subscriptions","organizations_url":"https://api.github.com/users/pshon/orgs","repos_url":"https://api.github.com/users/pshon/repos","events_url":"https://api.github.com/users/pshon/events{/privacy}","received_events_url":"https://api.github.com/users/pshon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pshon/vcapi","description":"Nonofficial VirCities API implementation","fork":false,"url":"https://api.github.com/repos/pshon/vcapi","forks_url":"https://api.github.com/repos/pshon/vcapi/forks","keys_url":"https://api.github.com/repos/pshon/vcapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pshon/vcapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pshon/vcapi/teams","hooks_url":"https://api.github.com/repos/pshon/vcapi/hooks","issue_events_url":"https://api.github.com/repos/pshon/vcapi/issues/events{/number}","events_url":"https://api.github.com/repos/pshon/vcapi/events","assignees_url":"https://api.github.com/repos/pshon/vcapi/assignees{/user}","branches_url":"https://api.github.com/repos/pshon/vcapi/branches{/branch}","tags_url":"https://api.github.com/repos/pshon/vcapi/tags","blobs_url":"https://api.github.com/repos/pshon/vcapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pshon/vcapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pshon/vcapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/pshon/vcapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pshon/vcapi/statuses/{sha}","languages_url":"https://api.github.com/repos/pshon/vcapi/languages","stargazers_url":"https://api.github.com/repos/pshon/vcapi/stargazers","contributors_url":"https://api.github.com/repos/pshon/vcapi/contributors","subscribers_url":"https://api.github.com/repos/pshon/vcapi/subscribers","subscription_url":"https://api.github.com/repos/pshon/vcapi/subscription","commits_url":"https://api.github.com/repos/pshon/vcapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/pshon/vcapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/pshon/vcapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/pshon/vcapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/pshon/vcapi/contents/{+path}","compare_url":"https://api.github.com/repos/pshon/vcapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pshon/vcapi/merges","archive_url":"https://api.github.com/repos/pshon/vcapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pshon/vcapi/downloads","issues_url":"https://api.github.com/repos/pshon/vcapi/issues{/number}","pulls_url":"https://api.github.com/repos/pshon/vcapi/pulls{/number}","milestones_url":"https://api.github.com/repos/pshon/vcapi/milestones{/number}","notifications_url":"https://api.github.com/repos/pshon/vcapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pshon/vcapi/labels{/name}","releases_url":"https://api.github.com/repos/pshon/vcapi/releases{/id}","created_at":"2015-12-26T17:24:19Z","updated_at":"2015-12-28T19:18:24Z","pushed_at":"2015-12-28T21:12:24Z","git_url":"git://github.com/pshon/vcapi.git","ssh_url":"git@github.com:pshon/vcapi.git","clone_url":"https://github.com/pshon/vcapi.git","svn_url":"https://github.com/pshon/vcapi","homepage":null,"size":29,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pshon/vcapi/pulls/3"},"html":{"href":"https://github.com/pshon/vcapi/pull/3"},"issue":{"href":"https://api.github.com/repos/pshon/vcapi/issues/3"},"comments":{"href":"https://api.github.com/repos/pshon/vcapi/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/pshon/vcapi/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/pshon/vcapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pshon/vcapi/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/pshon/vcapi/statuses/b222ea559788591d477cffe14ade15497b7d774e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"pshon","id":1202989,"avatar_url":"https://avatars.githubusercontent.com/u/1202989?v=3","gravatar_id":"","url":"https://api.github.com/users/pshon","html_url":"https://github.com/pshon","followers_url":"https://api.github.com/users/pshon/followers","following_url":"https://api.github.com/users/pshon/following{/other_user}","gists_url":"https://api.github.com/users/pshon/gists{/gist_id}","starred_url":"https://api.github.com/users/pshon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshon/subscriptions","organizations_url":"https://api.github.com/users/pshon/orgs","repos_url":"https://api.github.com/users/pshon/repos","events_url":"https://api.github.com/users/pshon/events{/privacy}","received_events_url":"https://api.github.com/users/pshon/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":63,"deletions":10,"changed_files":3}}