{"action":"closed","number":372,"pull_request":{"url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/372","id":229774286,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5Nzc0Mjg2","html_url":"https://github.com/bazelbuild/bazel-gazelle/pull/372","diff_url":"https://github.com/bazelbuild/bazel-gazelle/pull/372.diff","patch_url":"https://github.com/bazelbuild/bazel-gazelle/pull/372.patch","issue_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues/372","number":372,"state":"closed","locked":false,"title":"language/go: add special cases for rules_go and gazelle imports","user":{"login":"jayconrod","id":164791,"node_id":"MDQ6VXNlcjE2NDc5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/164791?v=4","gravatar_id":"","url":"https://api.github.com/users/jayconrod","html_url":"https://github.com/jayconrod","followers_url":"https://api.github.com/users/jayconrod/followers","following_url":"https://api.github.com/users/jayconrod/following{/other_user}","gists_url":"https://api.github.com/users/jayconrod/gists{/gist_id}","starred_url":"https://api.github.com/users/jayconrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayconrod/subscriptions","organizations_url":"https://api.github.com/users/jayconrod/orgs","repos_url":"https://api.github.com/users/jayconrod/repos","events_url":"https://api.github.com/users/jayconrod/events{/privacy}","received_events_url":"https://api.github.com/users/jayconrod/received_events","type":"User","site_admin":false},"body":"rules_go and bazel-gazelle both have workspace names that don't follow\r\nnormal naming conventions. Both are typically declared with\r\nhttp_archive instead of go_repository. When libraries from these\r\nrepositories are imported, Gazelle will fail to generate correct\r\nlabels.\r\n\r\nThis change adds special cases for these repositories in language/go.\r\n\r\nFixes #363","created_at":"2018-11-09T18:04:11Z","updated_at":"2018-11-09T18:12:41Z","closed_at":"2018-11-09T18:12:41Z","merged_at":"2018-11-09T18:12:41Z","merge_commit_sha":"5fdb596647d7199aecd0386c8b5ddddb887e6703","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ianthehat","id":858832,"node_id":"MDQ6VXNlcjg1ODgzMg==","avatar_url":"https://avatars0.githubusercontent.com/u/858832?v=4","gravatar_id":"","url":"https://api.github.com/users/ianthehat","html_url":"https://github.com/ianthehat","followers_url":"https://api.github.com/users/ianthehat/followers","following_url":"https://api.github.com/users/ianthehat/following{/other_user}","gists_url":"https://api.github.com/users/ianthehat/gists{/gist_id}","starred_url":"https://api.github.com/users/ianthehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianthehat/subscriptions","organizations_url":"https://api.github.com/users/ianthehat/orgs","repos_url":"https://api.github.com/users/ianthehat/repos","events_url":"https://api.github.com/users/ianthehat/events{/privacy}","received_events_url":"https://api.github.com/users/ianthehat/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/372/commits","review_comments_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/372/comments","review_comment_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues/372/comments","statuses_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/statuses/ff391bbacb520143628933089bd36eb64cb94676","head":{"label":"jayconrod:gazelle-special-cases","ref":"gazelle-special-cases","sha":"ff391bbacb520143628933089bd36eb64cb94676","user":{"login":"jayconrod","id":164791,"node_id":"MDQ6VXNlcjE2NDc5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/164791?v=4","gravatar_id":"","url":"https://api.github.com/users/jayconrod","html_url":"https://github.com/jayconrod","followers_url":"https://api.github.com/users/jayconrod/followers","following_url":"https://api.github.com/users/jayconrod/following{/other_user}","gists_url":"https://api.github.com/users/jayconrod/gists{/gist_id}","starred_url":"https://api.github.com/users/jayconrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayconrod/subscriptions","organizations_url":"https://api.github.com/users/jayconrod/orgs","repos_url":"https://api.github.com/users/jayconrod/repos","events_url":"https://api.github.com/users/jayconrod/events{/privacy}","received_events_url":"https://api.github.com/users/jayconrod/received_events","type":"User","site_admin":false},"repo":{"id":112659940,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI2NTk5NDA=","name":"bazel-gazelle","full_name":"jayconrod/bazel-gazelle","private":false,"owner":{"login":"jayconrod","id":164791,"node_id":"MDQ6VXNlcjE2NDc5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/164791?v=4","gravatar_id":"","url":"https://api.github.com/users/jayconrod","html_url":"https://github.com/jayconrod","followers_url":"https://api.github.com/users/jayconrod/followers","following_url":"https://api.github.com/users/jayconrod/following{/other_user}","gists_url":"https://api.github.com/users/jayconrod/gists{/gist_id}","starred_url":"https://api.github.com/users/jayconrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayconrod/subscriptions","organizations_url":"https://api.github.com/users/jayconrod/orgs","repos_url":"https://api.github.com/users/jayconrod/repos","events_url":"https://api.github.com/users/jayconrod/events{/privacy}","received_events_url":"https://api.github.com/users/jayconrod/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jayconrod/bazel-gazelle","description":null,"fork":true,"url":"https://api.github.com/repos/jayconrod/bazel-gazelle","forks_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/forks","keys_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/teams","hooks_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/hooks","issue_events_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/issues/events{/number}","events_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/events","assignees_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/assignees{/user}","branches_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/branches{/branch}","tags_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/tags","blobs_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/git/refs{/sha}","trees_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/statuses/{sha}","languages_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/languages","stargazers_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/stargazers","contributors_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/contributors","subscribers_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/subscribers","subscription_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/subscription","commits_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/commits{/sha}","git_commits_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/git/commits{/sha}","comments_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/comments{/number}","issue_comment_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/issues/comments{/number}","contents_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/contents/{+path}","compare_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/merges","archive_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/downloads","issues_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/issues{/number}","pulls_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/pulls{/number}","milestones_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/milestones{/number}","notifications_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/labels{/name}","releases_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/releases{/id}","deployments_url":"https://api.github.com/repos/jayconrod/bazel-gazelle/deployments","created_at":"2017-11-30T20:59:53Z","updated_at":"2018-04-04T17:51:04Z","pushed_at":"2018-11-09T18:12:32Z","git_url":"git://github.com/jayconrod/bazel-gazelle.git","ssh_url":"git@github.com:jayconrod/bazel-gazelle.git","clone_url":"https://github.com/jayconrod/bazel-gazelle.git","svn_url":"https://github.com/jayconrod/bazel-gazelle","homepage":null,"size":2674,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bazelbuild:master","ref":"master","sha":"7b1e3c6eb5447c6647955fc93c012635f274f0f0","user":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"repo":{"id":112655189,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI2NTUxODk=","name":"bazel-gazelle","full_name":"bazelbuild/bazel-gazelle","private":false,"owner":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bazelbuild/bazel-gazelle","description":"Gazelle is a Bazel build file generator for Go projects.","fork":false,"url":"https://api.github.com/repos/bazelbuild/bazel-gazelle","forks_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/forks","keys_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/teams","hooks_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/hooks","issue_events_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues/events{/number}","events_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/events","assignees_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/assignees{/user}","branches_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/branches{/branch}","tags_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/tags","blobs_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/statuses/{sha}","languages_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/languages","stargazers_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/stargazers","contributors_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/contributors","subscribers_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/subscribers","subscription_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/subscription","commits_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/contents/{+path}","compare_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/merges","archive_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/downloads","issues_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues{/number}","pulls_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls{/number}","milestones_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/milestones{/number}","notifications_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/labels{/name}","releases_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/releases{/id}","deployments_url":"https://api.github.com/repos/bazelbuild/bazel-gazelle/deployments","created_at":"2017-11-30T20:08:09Z","updated_at":"2018-11-09T18:12:29Z","pushed_at":"2018-11-09T18:12:41Z","git_url":"git://github.com/bazelbuild/bazel-gazelle.git","ssh_url":"git@github.com:bazelbuild/bazel-gazelle.git","clone_url":"https://github.com/bazelbuild/bazel-gazelle.git","svn_url":"https://github.com/bazelbuild/bazel-gazelle","homepage":"","size":2078,"stargazers_count":105,"watchers_count":105,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":83,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":50,"open_issues":83,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/372"},"html":{"href":"https://github.com/bazelbuild/bazel-gazelle/pull/372"},"issue":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues/372"},"comments":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/issues/372/comments"},"review_comments":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/372/comments"},"review_comment":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/pulls/372/commits"},"statuses":{"href":"https://api.github.com/repos/bazelbuild/bazel-gazelle/statuses/ff391bbacb520143628933089bd36eb64cb94676"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jayconrod","id":164791,"node_id":"MDQ6VXNlcjE2NDc5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/164791?v=4","gravatar_id":"","url":"https://api.github.com/users/jayconrod","html_url":"https://github.com/jayconrod","followers_url":"https://api.github.com/users/jayconrod/followers","following_url":"https://api.github.com/users/jayconrod/following{/other_user}","gists_url":"https://api.github.com/users/jayconrod/gists{/gist_id}","starred_url":"https://api.github.com/users/jayconrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayconrod/subscriptions","organizations_url":"https://api.github.com/users/jayconrod/orgs","repos_url":"https://api.github.com/users/jayconrod/repos","events_url":"https://api.github.com/users/jayconrod/events{/privacy}","received_events_url":"https://api.github.com/users/jayconrod/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":32,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"jayconrod"}}