{"action":"created","issue":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/2024","labels_url":"https://api.github.com/repos/pantsbuild/pants/issues/2024/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pants/issues/2024/comments","events_url":"https://api.github.com/repos/pantsbuild/pants/issues/2024/events","html_url":"https://github.com/pantsbuild/pants/issues/2024","id":101986392,"number":2024,"title":"Conversion between Targets and their BUILD aliases.","user":{"login":"gmalmquist","id":3391199,"avatar_url":"https://avatars.githubusercontent.com/u/3391199?v=3","gravatar_id":"","url":"https://api.github.com/users/gmalmquist","html_url":"https://github.com/gmalmquist","followers_url":"https://api.github.com/users/gmalmquist/followers","following_url":"https://api.github.com/users/gmalmquist/following{/other_user}","gists_url":"https://api.github.com/users/gmalmquist/gists{/gist_id}","starred_url":"https://api.github.com/users/gmalmquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmalmquist/subscriptions","organizations_url":"https://api.github.com/users/gmalmquist/orgs","repos_url":"https://api.github.com/users/gmalmquist/repos","events_url":"https://api.github.com/users/gmalmquist/events{/privacy}","received_events_url":"https://api.github.com/users/gmalmquist/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pantsbuild/pants/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/pantsbuild/pants/labels/in-progress","name":"in-progress","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"jsirois","id":157586,"avatar_url":"https://avatars.githubusercontent.com/u/157586?v=3","gravatar_id":"","url":"https://api.github.com/users/jsirois","html_url":"https://github.com/jsirois","followers_url":"https://api.github.com/users/jsirois/followers","following_url":"https://api.github.com/users/jsirois/following{/other_user}","gists_url":"https://api.github.com/users/jsirois/gists{/gist_id}","starred_url":"https://api.github.com/users/jsirois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsirois/subscriptions","organizations_url":"https://api.github.com/users/jsirois/orgs","repos_url":"https://api.github.com/users/jsirois/repos","events_url":"https://api.github.com/users/jsirois/events{/privacy}","received_events_url":"https://api.github.com/users/jsirois/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-08-19T20:05:05Z","updated_at":"2015-08-31T16:29:30Z","closed_at":null,"body":"There should be an easy way to do both:\r\n\r\n1) Given a Target type, lookup what BUILD aliases map to it.\r\n2) Given a BUILD file alias, lookup what Target type it corresponds to.\r\n\r\nThe motivation for this is allowing users to specify the names of BUILD file aliases (such as `java_library`) as options, which can be read and understood properly by tasks, subsystems, et cetera, rather than having to use internal names like `JavaLibrary`."},"comment":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/comments/136421453","html_url":"https://github.com/pantsbuild/pants/issues/2024#issuecomment-136421453","issue_url":"https://api.github.com/repos/pantsbuild/pants/issues/2024","id":136421453,"user":{"login":"jsirois","id":157586,"avatar_url":"https://avatars.githubusercontent.com/u/157586?v=3","gravatar_id":"","url":"https://api.github.com/users/jsirois","html_url":"https://github.com/jsirois","followers_url":"https://api.github.com/users/jsirois/followers","following_url":"https://api.github.com/users/jsirois/following{/other_user}","gists_url":"https://api.github.com/users/jsirois/gists{/gist_id}","starred_url":"https://api.github.com/users/jsirois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsirois/subscriptions","organizations_url":"https://api.github.com/users/jsirois/orgs","repos_url":"https://api.github.com/users/jsirois/repos","events_url":"https://api.github.com/users/jsirois/events{/privacy}","received_events_url":"https://api.github.com/users/jsirois/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T16:29:30Z","updated_at":"2015-08-31T16:29:30Z","body":"OK - the solution for 1 above is in master @ https://github.com/pantsbuild/pants/commit/ad9f8480c8e08b95d6c217ec4a126bd93b7f376a\r\n\r\nDo you have a concrete use case for 2 above @gmalmquist?  If not I'll close this."}}