{"action":"closed","number":293,"pull_request":{"url":"https://api.github.com/repos/netguru/people/pulls/293","id":108154491,"html_url":"https://github.com/netguru/people/pull/293","diff_url":"https://github.com/netguru/people/pull/293.diff","patch_url":"https://github.com/netguru/people/pull/293.patch","issue_url":"https://api.github.com/repos/netguru/people/issues/293","number":293,"state":"closed","locked":false,"title":"set primary_role when new primary position is set","user":{"login":"DariuszMusielak","id":3763916,"avatar_url":"https://avatars.githubusercontent.com/u/3763916?v=3","gravatar_id":"","url":"https://api.github.com/users/DariuszMusielak","html_url":"https://github.com/DariuszMusielak","followers_url":"https://api.github.com/users/DariuszMusielak/followers","following_url":"https://api.github.com/users/DariuszMusielak/following{/other_user}","gists_url":"https://api.github.com/users/DariuszMusielak/gists{/gist_id}","starred_url":"https://api.github.com/users/DariuszMusielak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DariuszMusielak/subscriptions","organizations_url":"https://api.github.com/users/DariuszMusielak/orgs","repos_url":"https://api.github.com/users/DariuszMusielak/repos","events_url":"https://api.github.com/users/DariuszMusielak/events{/privacy}","received_events_url":"https://api.github.com/users/DariuszMusielak/received_events","type":"User","site_admin":false},"body":"# Ticket\r\nhttps://netguru.atlassian.net/browse/PEOPLE-186\r\n\r\n# Description\r\n- update main primary_role when new primary position is created \r\n\r\n### Before merge checklist\r\n- [ ] CircleCI is passing\r\n- [ ] Proper labels are set\r\n\r\n","created_at":"2017-02-27T16:47:35Z","updated_at":"2017-02-27T16:56:15Z","closed_at":"2017-02-27T16:56:15Z","merged_at":"2017-02-27T16:56:14Z","merge_commit_sha":"9bf9523933a8bc5157efcb9edf05e98ccaa078a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/netguru/people/pulls/293/commits","review_comments_url":"https://api.github.com/repos/netguru/people/pulls/293/comments","review_comment_url":"https://api.github.com/repos/netguru/people/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/people/issues/293/comments","statuses_url":"https://api.github.com/repos/netguru/people/statuses/d3cc5da08e1a5b8c61ab9f31f5b0dc07d841039d","head":{"label":"netguru:PEOPLE-186-update-role-if-position-is-primary","ref":"PEOPLE-186-update-role-if-position-is-primary","sha":"d3cc5da08e1a5b8c61ab9f31f5b0dc07d841039d","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":14857326,"name":"people","full_name":"netguru/people","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/people","description":"PeopleApp: easily manage people within the projects!","fork":false,"url":"https://api.github.com/repos/netguru/people","forks_url":"https://api.github.com/repos/netguru/people/forks","keys_url":"https://api.github.com/repos/netguru/people/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/people/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/people/teams","hooks_url":"https://api.github.com/repos/netguru/people/hooks","issue_events_url":"https://api.github.com/repos/netguru/people/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/people/events","assignees_url":"https://api.github.com/repos/netguru/people/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/people/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/people/tags","blobs_url":"https://api.github.com/repos/netguru/people/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/people/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/people/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/people/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/people/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/people/languages","stargazers_url":"https://api.github.com/repos/netguru/people/stargazers","contributors_url":"https://api.github.com/repos/netguru/people/contributors","subscribers_url":"https://api.github.com/repos/netguru/people/subscribers","subscription_url":"https://api.github.com/repos/netguru/people/subscription","commits_url":"https://api.github.com/repos/netguru/people/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/people/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/people/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/people/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/people/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/people/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/people/merges","archive_url":"https://api.github.com/repos/netguru/people/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/people/downloads","issues_url":"https://api.github.com/repos/netguru/people/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/people/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/people/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/people/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/people/labels{/name}","releases_url":"https://api.github.com/repos/netguru/people/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/people/deployments","created_at":"2013-12-02T08:55:29Z","updated_at":"2017-02-24T16:12:41Z","pushed_at":"2017-02-27T16:56:14Z","git_url":"git://github.com/netguru/people.git","ssh_url":"git@github.com:netguru/people.git","clone_url":"https://github.com/netguru/people.git","svn_url":"https://github.com/netguru/people","homepage":"https://netguru.co/opensource","size":5001,"stargazers_count":47,"watchers_count":47,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":2,"forks":25,"open_issues":2,"watchers":47,"default_branch":"master"}},"base":{"label":"netguru:master","ref":"master","sha":"d41ccbebbca709250b026a206aa05deeee946ff7","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":14857326,"name":"people","full_name":"netguru/people","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/people","description":"PeopleApp: easily manage people within the projects!","fork":false,"url":"https://api.github.com/repos/netguru/people","forks_url":"https://api.github.com/repos/netguru/people/forks","keys_url":"https://api.github.com/repos/netguru/people/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/people/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/people/teams","hooks_url":"https://api.github.com/repos/netguru/people/hooks","issue_events_url":"https://api.github.com/repos/netguru/people/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/people/events","assignees_url":"https://api.github.com/repos/netguru/people/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/people/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/people/tags","blobs_url":"https://api.github.com/repos/netguru/people/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/people/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/people/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/people/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/people/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/people/languages","stargazers_url":"https://api.github.com/repos/netguru/people/stargazers","contributors_url":"https://api.github.com/repos/netguru/people/contributors","subscribers_url":"https://api.github.com/repos/netguru/people/subscribers","subscription_url":"https://api.github.com/repos/netguru/people/subscription","commits_url":"https://api.github.com/repos/netguru/people/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/people/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/people/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/people/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/people/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/people/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/people/merges","archive_url":"https://api.github.com/repos/netguru/people/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/people/downloads","issues_url":"https://api.github.com/repos/netguru/people/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/people/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/people/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/people/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/people/labels{/name}","releases_url":"https://api.github.com/repos/netguru/people/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/people/deployments","created_at":"2013-12-02T08:55:29Z","updated_at":"2017-02-24T16:12:41Z","pushed_at":"2017-02-27T16:56:14Z","git_url":"git://github.com/netguru/people.git","ssh_url":"git@github.com:netguru/people.git","clone_url":"https://github.com/netguru/people.git","svn_url":"https://github.com/netguru/people","homepage":"https://netguru.co/opensource","size":5001,"stargazers_count":47,"watchers_count":47,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":2,"forks":25,"open_issues":2,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/people/pulls/293"},"html":{"href":"https://github.com/netguru/people/pull/293"},"issue":{"href":"https://api.github.com/repos/netguru/people/issues/293"},"comments":{"href":"https://api.github.com/repos/netguru/people/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/people/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/people/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/people/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/people/statuses/d3cc5da08e1a5b8c61ab9f31f5b0dc07d841039d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DariuszMusielak","id":3763916,"avatar_url":"https://avatars.githubusercontent.com/u/3763916?v=3","gravatar_id":"","url":"https://api.github.com/users/DariuszMusielak","html_url":"https://github.com/DariuszMusielak","followers_url":"https://api.github.com/users/DariuszMusielak/followers","following_url":"https://api.github.com/users/DariuszMusielak/following{/other_user}","gists_url":"https://api.github.com/users/DariuszMusielak/gists{/gist_id}","starred_url":"https://api.github.com/users/DariuszMusielak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DariuszMusielak/subscriptions","organizations_url":"https://api.github.com/users/DariuszMusielak/orgs","repos_url":"https://api.github.com/users/DariuszMusielak/repos","events_url":"https://api.github.com/users/DariuszMusielak/events{/privacy}","received_events_url":"https://api.github.com/users/DariuszMusielak/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":16,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"DariuszMusielak"}}