{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1785","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1785/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1785/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1785/events","html_url":"https://github.com/bazelbuild/bazel/issues/1785","id":177632467,"number":1785,"title":"Feature request: allow attr.label() and attr.label_list() to accept files.","user":{"login":"ahyangyi","id":700956,"avatar_url":"https://avatars.githubusercontent.com/u/700956?v=3","gravatar_id":"","url":"https://api.github.com/users/ahyangyi","html_url":"https://github.com/ahyangyi","followers_url":"https://api.github.com/users/ahyangyi/followers","following_url":"https://api.github.com/users/ahyangyi/following{/other_user}","gists_url":"https://api.github.com/users/ahyangyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ahyangyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahyangyi/subscriptions","organizations_url":"https://api.github.com/users/ahyangyi/orgs","repos_url":"https://api.github.com/users/ahyangyi/repos","events_url":"https://api.github.com/users/ahyangyi/events{/privacy}","received_events_url":"https://api.github.com/users/ahyangyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-18T06:13:21Z","updated_at":"2016-09-19T14:07:26Z","closed_at":null,"body":"This seems to be the case of almost all built-in rules.\r\n\r\nWherever one can use a label, one can also use a file which is placed under the same directory to the `BUIL`D file, or in some sub-directory of it. The behavior is also well-defined: a file would behave like a `filegroup` label with exactly one file in it.\r\n\r\nBut when writing my own rules, I can't seem to emulate the behavior, which soon becomes annoying for people using Bazel.\r\n\r\nHaving a more consistent interface here would ease my adoption of Bazel a lot. Thanks."},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/248003048","html_url":"https://github.com/bazelbuild/bazel/issues/1785#issuecomment-248003048","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1785","id":248003048,"user":{"login":"laszlocsomor","id":10532244,"avatar_url":"https://avatars.githubusercontent.com/u/10532244?v=3","gravatar_id":"","url":"https://api.github.com/users/laszlocsomor","html_url":"https://github.com/laszlocsomor","followers_url":"https://api.github.com/users/laszlocsomor/followers","following_url":"https://api.github.com/users/laszlocsomor/following{/other_user}","gists_url":"https://api.github.com/users/laszlocsomor/gists{/gist_id}","starred_url":"https://api.github.com/users/laszlocsomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laszlocsomor/subscriptions","organizations_url":"https://api.github.com/users/laszlocsomor/orgs","repos_url":"https://api.github.com/users/laszlocsomor/repos","events_url":"https://api.github.com/users/laszlocsomor/events{/privacy}","received_events_url":"https://api.github.com/users/laszlocsomor/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T14:07:26Z","updated_at":"2016-09-19T14:07:26Z","body":"Closing because this is working as intended."}}
{"actor":{"display_login":"laszlocsomor"}}