{"action":"opened","number":231,"pull_request":{"url":"https://api.github.com/repos/rom-rb/rom/pulls/231","id":35752611,"html_url":"https://github.com/rom-rb/rom/pull/231","diff_url":"https://github.com/rom-rb/rom/pull/231.diff","patch_url":"https://github.com/rom-rb/rom/pull/231.patch","issue_url":"https://api.github.com/repos/rom-rb/rom/issues/231","number":231,"state":"open","locked":false,"title":"Allow grouping attributes with the name of existing field:","user":{"login":"nepalez","id":1526628,"avatar_url":"https://avatars.githubusercontent.com/u/1526628?v=3","gravatar_id":"","url":"https://api.github.com/users/nepalez","html_url":"https://github.com/nepalez","followers_url":"https://api.github.com/users/nepalez/followers","following_url":"https://api.github.com/users/nepalez/following{/other_user}","gists_url":"https://api.github.com/users/nepalez/gists{/gist_id}","starred_url":"https://api.github.com/users/nepalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nepalez/subscriptions","organizations_url":"https://api.github.com/users/nepalez/orgs","repos_url":"https://api.github.com/users/nepalez/repos","events_url":"https://api.github.com/users/nepalez/events{/privacy}","received_events_url":"https://api.github.com/users/nepalez/received_events","type":"User","site_admin":false},"body":"This is a fix for the case a group has just the same name as one of its fields.\r\n\r\n```ruby\r\nclass UsersMapper < ROM::Mapper\r\n  group agenda: [:agenda]\r\nend\r\n```\r\n\r\nBadly needs for somebody to review it!","created_at":"2015-05-19T17:06:33Z","updated_at":"2015-05-19T17:06:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rom-rb/rom/pulls/231/commits","review_comments_url":"https://api.github.com/repos/rom-rb/rom/pulls/231/comments","review_comment_url":"https://api.github.com/repos/rom-rb/rom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rom-rb/rom/issues/231/comments","statuses_url":"https://api.github.com/repos/rom-rb/rom/statuses/18d9ce4b656e8535b18f8e3eeddc20a2132ddb7e","head":{"label":"nepalez:group-with-the-existing-name","ref":"group-with-the-existing-name","sha":"18d9ce4b656e8535b18f8e3eeddc20a2132ddb7e","user":{"login":"nepalez","id":1526628,"avatar_url":"https://avatars.githubusercontent.com/u/1526628?v=3","gravatar_id":"","url":"https://api.github.com/users/nepalez","html_url":"https://github.com/nepalez","followers_url":"https://api.github.com/users/nepalez/followers","following_url":"https://api.github.com/users/nepalez/following{/other_user}","gists_url":"https://api.github.com/users/nepalez/gists{/gist_id}","starred_url":"https://api.github.com/users/nepalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nepalez/subscriptions","organizations_url":"https://api.github.com/users/nepalez/orgs","repos_url":"https://api.github.com/users/nepalez/repos","events_url":"https://api.github.com/users/nepalez/events{/privacy}","received_events_url":"https://api.github.com/users/nepalez/received_events","type":"User","site_admin":false},"repo":{"id":35697372,"name":"rom","full_name":"nepalez/rom","owner":{"login":"nepalez","id":1526628,"avatar_url":"https://avatars.githubusercontent.com/u/1526628?v=3","gravatar_id":"","url":"https://api.github.com/users/nepalez","html_url":"https://github.com/nepalez","followers_url":"https://api.github.com/users/nepalez/followers","following_url":"https://api.github.com/users/nepalez/following{/other_user}","gists_url":"https://api.github.com/users/nepalez/gists{/gist_id}","starred_url":"https://api.github.com/users/nepalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nepalez/subscriptions","organizations_url":"https://api.github.com/users/nepalez/orgs","repos_url":"https://api.github.com/users/nepalez/repos","events_url":"https://api.github.com/users/nepalez/events{/privacy}","received_events_url":"https://api.github.com/users/nepalez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nepalez/rom","description":"Data mapping and persistence toolkit for Ruby","fork":true,"url":"https://api.github.com/repos/nepalez/rom","forks_url":"https://api.github.com/repos/nepalez/rom/forks","keys_url":"https://api.github.com/repos/nepalez/rom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nepalez/rom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nepalez/rom/teams","hooks_url":"https://api.github.com/repos/nepalez/rom/hooks","issue_events_url":"https://api.github.com/repos/nepalez/rom/issues/events{/number}","events_url":"https://api.github.com/repos/nepalez/rom/events","assignees_url":"https://api.github.com/repos/nepalez/rom/assignees{/user}","branches_url":"https://api.github.com/repos/nepalez/rom/branches{/branch}","tags_url":"https://api.github.com/repos/nepalez/rom/tags","blobs_url":"https://api.github.com/repos/nepalez/rom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nepalez/rom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nepalez/rom/git/refs{/sha}","trees_url":"https://api.github.com/repos/nepalez/rom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nepalez/rom/statuses/{sha}","languages_url":"https://api.github.com/repos/nepalez/rom/languages","stargazers_url":"https://api.github.com/repos/nepalez/rom/stargazers","contributors_url":"https://api.github.com/repos/nepalez/rom/contributors","subscribers_url":"https://api.github.com/repos/nepalez/rom/subscribers","subscription_url":"https://api.github.com/repos/nepalez/rom/subscription","commits_url":"https://api.github.com/repos/nepalez/rom/commits{/sha}","git_commits_url":"https://api.github.com/repos/nepalez/rom/git/commits{/sha}","comments_url":"https://api.github.com/repos/nepalez/rom/comments{/number}","issue_comment_url":"https://api.github.com/repos/nepalez/rom/issues/comments{/number}","contents_url":"https://api.github.com/repos/nepalez/rom/contents/{+path}","compare_url":"https://api.github.com/repos/nepalez/rom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nepalez/rom/merges","archive_url":"https://api.github.com/repos/nepalez/rom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nepalez/rom/downloads","issues_url":"https://api.github.com/repos/nepalez/rom/issues{/number}","pulls_url":"https://api.github.com/repos/nepalez/rom/pulls{/number}","milestones_url":"https://api.github.com/repos/nepalez/rom/milestones{/number}","notifications_url":"https://api.github.com/repos/nepalez/rom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nepalez/rom/labels{/name}","releases_url":"https://api.github.com/repos/nepalez/rom/releases{/id}","created_at":"2015-05-15T21:20:45Z","updated_at":"2015-05-15T21:20:45Z","pushed_at":"2015-05-19T16:54:30Z","git_url":"git://github.com/nepalez/rom.git","ssh_url":"git@github.com:nepalez/rom.git","clone_url":"https://github.com/nepalez/rom.git","svn_url":"https://github.com/nepalez/rom","homepage":"http://rom-rb.org","size":4168,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rom-rb:master","ref":"master","sha":"715b22f03de9b8ec42edf39792182e8a317de680","user":{"login":"rom-rb","id":4589832,"avatar_url":"https://avatars.githubusercontent.com/u/4589832?v=3","gravatar_id":"","url":"https://api.github.com/users/rom-rb","html_url":"https://github.com/rom-rb","followers_url":"https://api.github.com/users/rom-rb/followers","following_url":"https://api.github.com/users/rom-rb/following{/other_user}","gists_url":"https://api.github.com/users/rom-rb/gists{/gist_id}","starred_url":"https://api.github.com/users/rom-rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom-rb/subscriptions","organizations_url":"https://api.github.com/users/rom-rb/orgs","repos_url":"https://api.github.com/users/rom-rb/repos","events_url":"https://api.github.com/users/rom-rb/events{/privacy}","received_events_url":"https://api.github.com/users/rom-rb/received_events","type":"Organization","site_admin":false},"repo":{"id":10707658,"name":"rom","full_name":"rom-rb/rom","owner":{"login":"rom-rb","id":4589832,"avatar_url":"https://avatars.githubusercontent.com/u/4589832?v=3","gravatar_id":"","url":"https://api.github.com/users/rom-rb","html_url":"https://github.com/rom-rb","followers_url":"https://api.github.com/users/rom-rb/followers","following_url":"https://api.github.com/users/rom-rb/following{/other_user}","gists_url":"https://api.github.com/users/rom-rb/gists{/gist_id}","starred_url":"https://api.github.com/users/rom-rb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom-rb/subscriptions","organizations_url":"https://api.github.com/users/rom-rb/orgs","repos_url":"https://api.github.com/users/rom-rb/repos","events_url":"https://api.github.com/users/rom-rb/events{/privacy}","received_events_url":"https://api.github.com/users/rom-rb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rom-rb/rom","description":"Data mapping and persistence toolkit for Ruby","fork":false,"url":"https://api.github.com/repos/rom-rb/rom","forks_url":"https://api.github.com/repos/rom-rb/rom/forks","keys_url":"https://api.github.com/repos/rom-rb/rom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rom-rb/rom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rom-rb/rom/teams","hooks_url":"https://api.github.com/repos/rom-rb/rom/hooks","issue_events_url":"https://api.github.com/repos/rom-rb/rom/issues/events{/number}","events_url":"https://api.github.com/repos/rom-rb/rom/events","assignees_url":"https://api.github.com/repos/rom-rb/rom/assignees{/user}","branches_url":"https://api.github.com/repos/rom-rb/rom/branches{/branch}","tags_url":"https://api.github.com/repos/rom-rb/rom/tags","blobs_url":"https://api.github.com/repos/rom-rb/rom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rom-rb/rom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rom-rb/rom/git/refs{/sha}","trees_url":"https://api.github.com/repos/rom-rb/rom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rom-rb/rom/statuses/{sha}","languages_url":"https://api.github.com/repos/rom-rb/rom/languages","stargazers_url":"https://api.github.com/repos/rom-rb/rom/stargazers","contributors_url":"https://api.github.com/repos/rom-rb/rom/contributors","subscribers_url":"https://api.github.com/repos/rom-rb/rom/subscribers","subscription_url":"https://api.github.com/repos/rom-rb/rom/subscription","commits_url":"https://api.github.com/repos/rom-rb/rom/commits{/sha}","git_commits_url":"https://api.github.com/repos/rom-rb/rom/git/commits{/sha}","comments_url":"https://api.github.com/repos/rom-rb/rom/comments{/number}","issue_comment_url":"https://api.github.com/repos/rom-rb/rom/issues/comments{/number}","contents_url":"https://api.github.com/repos/rom-rb/rom/contents/{+path}","compare_url":"https://api.github.com/repos/rom-rb/rom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rom-rb/rom/merges","archive_url":"https://api.github.com/repos/rom-rb/rom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rom-rb/rom/downloads","issues_url":"https://api.github.com/repos/rom-rb/rom/issues{/number}","pulls_url":"https://api.github.com/repos/rom-rb/rom/pulls{/number}","milestones_url":"https://api.github.com/repos/rom-rb/rom/milestones{/number}","notifications_url":"https://api.github.com/repos/rom-rb/rom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rom-rb/rom/labels{/name}","releases_url":"https://api.github.com/repos/rom-rb/rom/releases{/id}","created_at":"2013-06-15T14:59:58Z","updated_at":"2015-05-19T14:42:27Z","pushed_at":"2015-05-19T17:06:33Z","git_url":"git://github.com/rom-rb/rom.git","ssh_url":"git@github.com:rom-rb/rom.git","clone_url":"https://github.com/rom-rb/rom.git","svn_url":"https://github.com/rom-rb/rom","homepage":"http://rom-rb.org","size":9283,"stargazers_count":806,"watchers_count":806,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":37,"forks":59,"open_issues":37,"watchers":806,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rom-rb/rom/pulls/231"},"html":{"href":"https://github.com/rom-rb/rom/pull/231"},"issue":{"href":"https://api.github.com/repos/rom-rb/rom/issues/231"},"comments":{"href":"https://api.github.com/repos/rom-rb/rom/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/rom-rb/rom/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/rom-rb/rom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rom-rb/rom/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/rom-rb/rom/statuses/18d9ce4b656e8535b18f8e3eeddc20a2132ddb7e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":2,"changed_files":2}}