{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/scala/scala-collection-compat/pulls/7","id":178070928,"html_url":"https://github.com/scala/scala-collection-compat/pull/7","diff_url":"https://github.com/scala/scala-collection-compat/pull/7.diff","patch_url":"https://github.com/scala/scala-collection-compat/pull/7.patch","issue_url":"https://api.github.com/repos/scala/scala-collection-compat/issues/7","number":7,"state":"open","locked":false,"title":"Add an `iterator()` alias to `iterator`","user":{"login":"julienrf","id":332812,"avatar_url":"https://avatars2.githubusercontent.com/u/332812?v=4","gravatar_id":"","url":"https://api.github.com/users/julienrf","html_url":"https://github.com/julienrf","followers_url":"https://api.github.com/users/julienrf/followers","following_url":"https://api.github.com/users/julienrf/following{/other_user}","gists_url":"https://api.github.com/users/julienrf/gists{/gist_id}","starred_url":"https://api.github.com/users/julienrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienrf/subscriptions","organizations_url":"https://api.github.com/users/julienrf/orgs","repos_url":"https://api.github.com/users/julienrf/repos","events_url":"https://api.github.com/users/julienrf/events{/privacy}","received_events_url":"https://api.github.com/users/julienrf/received_events","type":"User","site_admin":false},"body":"We already have a [scalafix rule](https://github.com/scala/collection-strawman/blob/master/scalafix/2.13/rules/src/main/scala/fix/Collectionstrawman_v0.scala#L36-L37) that translates `.iterator` to `.iterator()`. This rule can be applied to all the code bases to make them compatible with 2.13. However, once the rule has been applied, the code won’t be compatible with 2.12 (or previous Scala version) anymore…\r\n\r\nThis PR introduces an `iterator()` extension method for Scala 2.12 so that after the application of the scalafix rule, the code can still compile with 2.12.\r\n\r\nAlso, related discussion: https://github.com/scala/collection-strawman/issues/520","created_at":"2018-03-28T15:09:03Z","updated_at":"2018-03-28T15:09:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scala/scala-collection-compat/pulls/7/commits","review_comments_url":"https://api.github.com/repos/scala/scala-collection-compat/pulls/7/comments","review_comment_url":"https://api.github.com/repos/scala/scala-collection-compat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala/scala-collection-compat/issues/7/comments","statuses_url":"https://api.github.com/repos/scala/scala-collection-compat/statuses/88da007b68ca57e95116bf0b32474e96d51b207d","head":{"label":"julienrf:with-parens","ref":"with-parens","sha":"88da007b68ca57e95116bf0b32474e96d51b207d","user":{"login":"julienrf","id":332812,"avatar_url":"https://avatars2.githubusercontent.com/u/332812?v=4","gravatar_id":"","url":"https://api.github.com/users/julienrf","html_url":"https://github.com/julienrf","followers_url":"https://api.github.com/users/julienrf/followers","following_url":"https://api.github.com/users/julienrf/following{/other_user}","gists_url":"https://api.github.com/users/julienrf/gists{/gist_id}","starred_url":"https://api.github.com/users/julienrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienrf/subscriptions","organizations_url":"https://api.github.com/users/julienrf/orgs","repos_url":"https://api.github.com/users/julienrf/repos","events_url":"https://api.github.com/users/julienrf/events{/privacy}","received_events_url":"https://api.github.com/users/julienrf/received_events","type":"User","site_admin":false},"repo":{"id":127131411,"name":"scala-collection-compat","full_name":"julienrf/scala-collection-compat","owner":{"login":"julienrf","id":332812,"avatar_url":"https://avatars2.githubusercontent.com/u/332812?v=4","gravatar_id":"","url":"https://api.github.com/users/julienrf","html_url":"https://github.com/julienrf","followers_url":"https://api.github.com/users/julienrf/followers","following_url":"https://api.github.com/users/julienrf/following{/other_user}","gists_url":"https://api.github.com/users/julienrf/gists{/gist_id}","starred_url":"https://api.github.com/users/julienrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienrf/subscriptions","organizations_url":"https://api.github.com/users/julienrf/orgs","repos_url":"https://api.github.com/users/julienrf/repos","events_url":"https://api.github.com/users/julienrf/events{/privacy}","received_events_url":"https://api.github.com/users/julienrf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julienrf/scala-collection-compat","description":"Scala 2.13 Collection Compatibility Library","fork":true,"url":"https://api.github.com/repos/julienrf/scala-collection-compat","forks_url":"https://api.github.com/repos/julienrf/scala-collection-compat/forks","keys_url":"https://api.github.com/repos/julienrf/scala-collection-compat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julienrf/scala-collection-compat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julienrf/scala-collection-compat/teams","hooks_url":"https://api.github.com/repos/julienrf/scala-collection-compat/hooks","issue_events_url":"https://api.github.com/repos/julienrf/scala-collection-compat/issues/events{/number}","events_url":"https://api.github.com/repos/julienrf/scala-collection-compat/events","assignees_url":"https://api.github.com/repos/julienrf/scala-collection-compat/assignees{/user}","branches_url":"https://api.github.com/repos/julienrf/scala-collection-compat/branches{/branch}","tags_url":"https://api.github.com/repos/julienrf/scala-collection-compat/tags","blobs_url":"https://api.github.com/repos/julienrf/scala-collection-compat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julienrf/scala-collection-compat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julienrf/scala-collection-compat/git/refs{/sha}","trees_url":"https://api.github.com/repos/julienrf/scala-collection-compat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julienrf/scala-collection-compat/statuses/{sha}","languages_url":"https://api.github.com/repos/julienrf/scala-collection-compat/languages","stargazers_url":"https://api.github.com/repos/julienrf/scala-collection-compat/stargazers","contributors_url":"https://api.github.com/repos/julienrf/scala-collection-compat/contributors","subscribers_url":"https://api.github.com/repos/julienrf/scala-collection-compat/subscribers","subscription_url":"https://api.github.com/repos/julienrf/scala-collection-compat/subscription","commits_url":"https://api.github.com/repos/julienrf/scala-collection-compat/commits{/sha}","git_commits_url":"https://api.github.com/repos/julienrf/scala-collection-compat/git/commits{/sha}","comments_url":"https://api.github.com/repos/julienrf/scala-collection-compat/comments{/number}","issue_comment_url":"https://api.github.com/repos/julienrf/scala-collection-compat/issues/comments{/number}","contents_url":"https://api.github.com/repos/julienrf/scala-collection-compat/contents/{+path}","compare_url":"https://api.github.com/repos/julienrf/scala-collection-compat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julienrf/scala-collection-compat/merges","archive_url":"https://api.github.com/repos/julienrf/scala-collection-compat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julienrf/scala-collection-compat/downloads","issues_url":"https://api.github.com/repos/julienrf/scala-collection-compat/issues{/number}","pulls_url":"https://api.github.com/repos/julienrf/scala-collection-compat/pulls{/number}","milestones_url":"https://api.github.com/repos/julienrf/scala-collection-compat/milestones{/number}","notifications_url":"https://api.github.com/repos/julienrf/scala-collection-compat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julienrf/scala-collection-compat/labels{/name}","releases_url":"https://api.github.com/repos/julienrf/scala-collection-compat/releases{/id}","deployments_url":"https://api.github.com/repos/julienrf/scala-collection-compat/deployments","created_at":"2018-03-28T11:40:12Z","updated_at":"2018-03-28T11:40:14Z","pushed_at":"2018-03-28T15:03:24Z","git_url":"git://github.com/julienrf/scala-collection-compat.git","ssh_url":"git@github.com:julienrf/scala-collection-compat.git","clone_url":"https://github.com/julienrf/scala-collection-compat.git","svn_url":"https://github.com/julienrf/scala-collection-compat","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"scala:master","ref":"master","sha":"fcc34253b0f1564be034be7f1b59bf7be0dc16fe","user":{"login":"scala","id":57059,"avatar_url":"https://avatars2.githubusercontent.com/u/57059?v=4","gravatar_id":"","url":"https://api.github.com/users/scala","html_url":"https://github.com/scala","followers_url":"https://api.github.com/users/scala/followers","following_url":"https://api.github.com/users/scala/following{/other_user}","gists_url":"https://api.github.com/users/scala/gists{/gist_id}","starred_url":"https://api.github.com/users/scala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala/subscriptions","organizations_url":"https://api.github.com/users/scala/orgs","repos_url":"https://api.github.com/users/scala/repos","events_url":"https://api.github.com/users/scala/events{/privacy}","received_events_url":"https://api.github.com/users/scala/received_events","type":"Organization","site_admin":false},"repo":{"id":125521135,"name":"scala-collection-compat","full_name":"scala/scala-collection-compat","owner":{"login":"scala","id":57059,"avatar_url":"https://avatars2.githubusercontent.com/u/57059?v=4","gravatar_id":"","url":"https://api.github.com/users/scala","html_url":"https://github.com/scala","followers_url":"https://api.github.com/users/scala/followers","following_url":"https://api.github.com/users/scala/following{/other_user}","gists_url":"https://api.github.com/users/scala/gists{/gist_id}","starred_url":"https://api.github.com/users/scala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala/subscriptions","organizations_url":"https://api.github.com/users/scala/orgs","repos_url":"https://api.github.com/users/scala/repos","events_url":"https://api.github.com/users/scala/events{/privacy}","received_events_url":"https://api.github.com/users/scala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala/scala-collection-compat","description":"Scala 2.13 Collection Compatibility Library","fork":false,"url":"https://api.github.com/repos/scala/scala-collection-compat","forks_url":"https://api.github.com/repos/scala/scala-collection-compat/forks","keys_url":"https://api.github.com/repos/scala/scala-collection-compat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala/scala-collection-compat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala/scala-collection-compat/teams","hooks_url":"https://api.github.com/repos/scala/scala-collection-compat/hooks","issue_events_url":"https://api.github.com/repos/scala/scala-collection-compat/issues/events{/number}","events_url":"https://api.github.com/repos/scala/scala-collection-compat/events","assignees_url":"https://api.github.com/repos/scala/scala-collection-compat/assignees{/user}","branches_url":"https://api.github.com/repos/scala/scala-collection-compat/branches{/branch}","tags_url":"https://api.github.com/repos/scala/scala-collection-compat/tags","blobs_url":"https://api.github.com/repos/scala/scala-collection-compat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala/scala-collection-compat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala/scala-collection-compat/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala/scala-collection-compat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala/scala-collection-compat/statuses/{sha}","languages_url":"https://api.github.com/repos/scala/scala-collection-compat/languages","stargazers_url":"https://api.github.com/repos/scala/scala-collection-compat/stargazers","contributors_url":"https://api.github.com/repos/scala/scala-collection-compat/contributors","subscribers_url":"https://api.github.com/repos/scala/scala-collection-compat/subscribers","subscription_url":"https://api.github.com/repos/scala/scala-collection-compat/subscription","commits_url":"https://api.github.com/repos/scala/scala-collection-compat/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala/scala-collection-compat/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala/scala-collection-compat/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala/scala-collection-compat/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala/scala-collection-compat/contents/{+path}","compare_url":"https://api.github.com/repos/scala/scala-collection-compat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala/scala-collection-compat/merges","archive_url":"https://api.github.com/repos/scala/scala-collection-compat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala/scala-collection-compat/downloads","issues_url":"https://api.github.com/repos/scala/scala-collection-compat/issues{/number}","pulls_url":"https://api.github.com/repos/scala/scala-collection-compat/pulls{/number}","milestones_url":"https://api.github.com/repos/scala/scala-collection-compat/milestones{/number}","notifications_url":"https://api.github.com/repos/scala/scala-collection-compat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala/scala-collection-compat/labels{/name}","releases_url":"https://api.github.com/repos/scala/scala-collection-compat/releases{/id}","deployments_url":"https://api.github.com/repos/scala/scala-collection-compat/deployments","created_at":"2018-03-16T13:39:25Z","updated_at":"2018-03-28T13:33:30Z","pushed_at":"2018-03-28T14:56:48Z","git_url":"git://github.com/scala/scala-collection-compat.git","ssh_url":"git@github.com:scala/scala-collection-compat.git","clone_url":"https://github.com/scala/scala-collection-compat.git","svn_url":"https://github.com/scala/scala-collection-compat","homepage":null,"size":14,"stargazers_count":7,"watchers_count":7,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scala/scala-collection-compat/pulls/7"},"html":{"href":"https://github.com/scala/scala-collection-compat/pull/7"},"issue":{"href":"https://api.github.com/repos/scala/scala-collection-compat/issues/7"},"comments":{"href":"https://api.github.com/repos/scala/scala-collection-compat/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/scala/scala-collection-compat/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/scala/scala-collection-compat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala/scala-collection-compat/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/scala/scala-collection-compat/statuses/88da007b68ca57e95116bf0b32474e96d51b207d"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":18,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"julienrf"}}