{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/2778","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/2778/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/2778/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/2778/events","html_url":"https://github.com/Homebrew/brew/pull/2778","id":235390247,"number":2778,"title":"refactor: DRY up redundant formulations of {#user}/homebrew-{#repo}","user":{"login":"jasonkarns","id":119972,"avatar_url":"https://avatars1.githubusercontent.com/u/119972?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkarns","html_url":"https://github.com/jasonkarns","followers_url":"https://api.github.com/users/jasonkarns/followers","following_url":"https://api.github.com/users/jasonkarns/following{/other_user}","gists_url":"https://api.github.com/users/jasonkarns/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkarns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkarns/subscriptions","organizations_url":"https://api.github.com/users/jasonkarns/orgs","repos_url":"https://api.github.com/users/jasonkarns/repos","events_url":"https://api.github.com/users/jasonkarns/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkarns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-12T23:03:04Z","updated_at":"2017-06-15T20:44:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/2778","html_url":"https://github.com/Homebrew/brew/pull/2778","diff_url":"https://github.com/Homebrew/brew/pull/2778.diff","patch_url":"https://github.com/Homebrew/brew/pull/2778.patch"},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/.github/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same change?\r\n- [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n- [ ] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/homebrew/pull/49031).\r\n- [x] Have you successfully run `brew tests` with your changes locally?\r\n\r\n-----\r\n\r\nMinor refactor to dry-up the redundant formulations of `{user}/homebrew-{repo}`. This coalesces the logic for how the `{#user}/homebrew-{#repo}` formulation is defined into a single location.\r\n\r\nOpen to better attribute names than `full_name`.\r\n\r\nNo tests yet included because I'm not sure if the `full_name` attribute should even be public. It's publicly-surfaceable information, but currently has no uses outside of the Tap itself.\r\n\r\nIf this tweak is welcome, the one last duplicate reference would be `GitHub.private_repo?(user, \"homebrew-#{repo}\")` at https://github.com/jasonkarns/brew/blob/dae9b9a8332f442036193c966095d06e4e6e7e68/Library/Homebrew/tap.rb#L522. More than happy to include that change in this PR."},"comment":{"url":"https://api.github.com/repos/Homebrew/brew/issues/comments/308860586","html_url":"https://github.com/Homebrew/brew/pull/2778#issuecomment-308860586","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/2778","id":308860586,"user":{"login":"jasonkarns","id":119972,"avatar_url":"https://avatars1.githubusercontent.com/u/119972?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkarns","html_url":"https://github.com/jasonkarns","followers_url":"https://api.github.com/users/jasonkarns/followers","following_url":"https://api.github.com/users/jasonkarns/following{/other_user}","gists_url":"https://api.github.com/users/jasonkarns/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkarns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkarns/subscriptions","organizations_url":"https://api.github.com/users/jasonkarns/orgs","repos_url":"https://api.github.com/users/jasonkarns/repos","events_url":"https://api.github.com/users/jasonkarns/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkarns/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T20:44:31Z","updated_at":"2017-06-15T20:44:31Z","body":"@reitermarkus much better (and doesn't introduce potential confusion with Formula's `full_name`). Probably need to squash these commits soon?"}}
{"actor":{"display_login":"jasonkarns"}}