{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/vektra/mockery/pulls/23","id":38664009,"html_url":"https://github.com/vektra/mockery/pull/23","diff_url":"https://github.com/vektra/mockery/pull/23.diff","patch_url":"https://github.com/vektra/mockery/pull/23.patch","issue_url":"https://api.github.com/repos/vektra/mockery/issues/23","number":23,"state":"open","locked":false,"title":"Fix missing mock when overridden by subpackage","user":{"login":"cam72cam","id":892136,"avatar_url":"https://avatars.githubusercontent.com/u/892136?v=3","gravatar_id":"","url":"https://api.github.com/users/cam72cam","html_url":"https://github.com/cam72cam","followers_url":"https://api.github.com/users/cam72cam/followers","following_url":"https://api.github.com/users/cam72cam/following{/other_user}","gists_url":"https://api.github.com/users/cam72cam/gists{/gist_id}","starred_url":"https://api.github.com/users/cam72cam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cam72cam/subscriptions","organizations_url":"https://api.github.com/users/cam72cam/orgs","repos_url":"https://api.github.com/users/cam72cam/repos","events_url":"https://api.github.com/users/cam72cam/events{/privacy}","received_events_url":"https://api.github.com/users/cam72cam/received_events","type":"User","site_admin":false},"body":"Example:\r\nfoo/interface.go //go:generate mockery -name=Interface -inpkg\r\nfoo/subpkg/interface.go //go:generate mockery -name=Interface -inpkg\r\n\r\ngo generate ./foo/...\r\nonly subpkg/mock_Interface.go was created","created_at":"2015-06-26T16:04:09Z","updated_at":"2015-06-26T16:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vektra/mockery/pulls/23/commits","review_comments_url":"https://api.github.com/repos/vektra/mockery/pulls/23/comments","review_comment_url":"https://api.github.com/repos/vektra/mockery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vektra/mockery/issues/23/comments","statuses_url":"https://api.github.com/repos/vektra/mockery/statuses/4978fe64f68f05ad7bc82d5e12b9a82d7a0e9031","head":{"label":"treetopllc:fix_overwritten_mock","ref":"fix_overwritten_mock","sha":"4978fe64f68f05ad7bc82d5e12b9a82d7a0e9031","user":{"login":"treetopllc","id":764597,"avatar_url":"https://avatars.githubusercontent.com/u/764597?v=3","gravatar_id":"","url":"https://api.github.com/users/treetopllc","html_url":"https://github.com/treetopllc","followers_url":"https://api.github.com/users/treetopllc/followers","following_url":"https://api.github.com/users/treetopllc/following{/other_user}","gists_url":"https://api.github.com/users/treetopllc/gists{/gist_id}","starred_url":"https://api.github.com/users/treetopllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treetopllc/subscriptions","organizations_url":"https://api.github.com/users/treetopllc/orgs","repos_url":"https://api.github.com/users/treetopllc/repos","events_url":"https://api.github.com/users/treetopllc/events{/privacy}","received_events_url":"https://api.github.com/users/treetopllc/received_events","type":"Organization","site_admin":false},"repo":{"id":38120078,"name":"mockery","full_name":"treetopllc/mockery","owner":{"login":"treetopllc","id":764597,"avatar_url":"https://avatars.githubusercontent.com/u/764597?v=3","gravatar_id":"","url":"https://api.github.com/users/treetopllc","html_url":"https://github.com/treetopllc","followers_url":"https://api.github.com/users/treetopllc/followers","following_url":"https://api.github.com/users/treetopllc/following{/other_user}","gists_url":"https://api.github.com/users/treetopllc/gists{/gist_id}","starred_url":"https://api.github.com/users/treetopllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treetopllc/subscriptions","organizations_url":"https://api.github.com/users/treetopllc/orgs","repos_url":"https://api.github.com/users/treetopllc/repos","events_url":"https://api.github.com/users/treetopllc/events{/privacy}","received_events_url":"https://api.github.com/users/treetopllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/treetopllc/mockery","description":"A mock code autogenerator for golang","fork":true,"url":"https://api.github.com/repos/treetopllc/mockery","forks_url":"https://api.github.com/repos/treetopllc/mockery/forks","keys_url":"https://api.github.com/repos/treetopllc/mockery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/treetopllc/mockery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/treetopllc/mockery/teams","hooks_url":"https://api.github.com/repos/treetopllc/mockery/hooks","issue_events_url":"https://api.github.com/repos/treetopllc/mockery/issues/events{/number}","events_url":"https://api.github.com/repos/treetopllc/mockery/events","assignees_url":"https://api.github.com/repos/treetopllc/mockery/assignees{/user}","branches_url":"https://api.github.com/repos/treetopllc/mockery/branches{/branch}","tags_url":"https://api.github.com/repos/treetopllc/mockery/tags","blobs_url":"https://api.github.com/repos/treetopllc/mockery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/treetopllc/mockery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/treetopllc/mockery/git/refs{/sha}","trees_url":"https://api.github.com/repos/treetopllc/mockery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/treetopllc/mockery/statuses/{sha}","languages_url":"https://api.github.com/repos/treetopllc/mockery/languages","stargazers_url":"https://api.github.com/repos/treetopllc/mockery/stargazers","contributors_url":"https://api.github.com/repos/treetopllc/mockery/contributors","subscribers_url":"https://api.github.com/repos/treetopllc/mockery/subscribers","subscription_url":"https://api.github.com/repos/treetopllc/mockery/subscription","commits_url":"https://api.github.com/repos/treetopllc/mockery/commits{/sha}","git_commits_url":"https://api.github.com/repos/treetopllc/mockery/git/commits{/sha}","comments_url":"https://api.github.com/repos/treetopllc/mockery/comments{/number}","issue_comment_url":"https://api.github.com/repos/treetopllc/mockery/issues/comments{/number}","contents_url":"https://api.github.com/repos/treetopllc/mockery/contents/{+path}","compare_url":"https://api.github.com/repos/treetopllc/mockery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/treetopllc/mockery/merges","archive_url":"https://api.github.com/repos/treetopllc/mockery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/treetopllc/mockery/downloads","issues_url":"https://api.github.com/repos/treetopllc/mockery/issues{/number}","pulls_url":"https://api.github.com/repos/treetopllc/mockery/pulls{/number}","milestones_url":"https://api.github.com/repos/treetopllc/mockery/milestones{/number}","notifications_url":"https://api.github.com/repos/treetopllc/mockery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/treetopllc/mockery/labels{/name}","releases_url":"https://api.github.com/repos/treetopllc/mockery/releases{/id}","created_at":"2015-06-26T15:58:29Z","updated_at":"2015-06-26T15:58:30Z","pushed_at":"2015-06-26T16:03:22Z","git_url":"git://github.com/treetopllc/mockery.git","ssh_url":"git@github.com:treetopllc/mockery.git","clone_url":"https://github.com/treetopllc/mockery.git","svn_url":"https://github.com/treetopllc/mockery","homepage":null,"size":287,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vektra:master","ref":"master","sha":"6ea79d152a8c3c6c6847533811fa3bbe191628e9","user":{"login":"vektra","id":5193687,"avatar_url":"https://avatars.githubusercontent.com/u/5193687?v=3","gravatar_id":"","url":"https://api.github.com/users/vektra","html_url":"https://github.com/vektra","followers_url":"https://api.github.com/users/vektra/followers","following_url":"https://api.github.com/users/vektra/following{/other_user}","gists_url":"https://api.github.com/users/vektra/gists{/gist_id}","starred_url":"https://api.github.com/users/vektra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vektra/subscriptions","organizations_url":"https://api.github.com/users/vektra/orgs","repos_url":"https://api.github.com/users/vektra/repos","events_url":"https://api.github.com/users/vektra/events{/privacy}","received_events_url":"https://api.github.com/users/vektra/received_events","type":"Organization","site_admin":false},"repo":{"id":23586998,"name":"mockery","full_name":"vektra/mockery","owner":{"login":"vektra","id":5193687,"avatar_url":"https://avatars.githubusercontent.com/u/5193687?v=3","gravatar_id":"","url":"https://api.github.com/users/vektra","html_url":"https://github.com/vektra","followers_url":"https://api.github.com/users/vektra/followers","following_url":"https://api.github.com/users/vektra/following{/other_user}","gists_url":"https://api.github.com/users/vektra/gists{/gist_id}","starred_url":"https://api.github.com/users/vektra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vektra/subscriptions","organizations_url":"https://api.github.com/users/vektra/orgs","repos_url":"https://api.github.com/users/vektra/repos","events_url":"https://api.github.com/users/vektra/events{/privacy}","received_events_url":"https://api.github.com/users/vektra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vektra/mockery","description":"A mock code autogenerator for golang","fork":false,"url":"https://api.github.com/repos/vektra/mockery","forks_url":"https://api.github.com/repos/vektra/mockery/forks","keys_url":"https://api.github.com/repos/vektra/mockery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vektra/mockery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vektra/mockery/teams","hooks_url":"https://api.github.com/repos/vektra/mockery/hooks","issue_events_url":"https://api.github.com/repos/vektra/mockery/issues/events{/number}","events_url":"https://api.github.com/repos/vektra/mockery/events","assignees_url":"https://api.github.com/repos/vektra/mockery/assignees{/user}","branches_url":"https://api.github.com/repos/vektra/mockery/branches{/branch}","tags_url":"https://api.github.com/repos/vektra/mockery/tags","blobs_url":"https://api.github.com/repos/vektra/mockery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vektra/mockery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vektra/mockery/git/refs{/sha}","trees_url":"https://api.github.com/repos/vektra/mockery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vektra/mockery/statuses/{sha}","languages_url":"https://api.github.com/repos/vektra/mockery/languages","stargazers_url":"https://api.github.com/repos/vektra/mockery/stargazers","contributors_url":"https://api.github.com/repos/vektra/mockery/contributors","subscribers_url":"https://api.github.com/repos/vektra/mockery/subscribers","subscription_url":"https://api.github.com/repos/vektra/mockery/subscription","commits_url":"https://api.github.com/repos/vektra/mockery/commits{/sha}","git_commits_url":"https://api.github.com/repos/vektra/mockery/git/commits{/sha}","comments_url":"https://api.github.com/repos/vektra/mockery/comments{/number}","issue_comment_url":"https://api.github.com/repos/vektra/mockery/issues/comments{/number}","contents_url":"https://api.github.com/repos/vektra/mockery/contents/{+path}","compare_url":"https://api.github.com/repos/vektra/mockery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vektra/mockery/merges","archive_url":"https://api.github.com/repos/vektra/mockery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vektra/mockery/downloads","issues_url":"https://api.github.com/repos/vektra/mockery/issues{/number}","pulls_url":"https://api.github.com/repos/vektra/mockery/pulls{/number}","milestones_url":"https://api.github.com/repos/vektra/mockery/milestones{/number}","notifications_url":"https://api.github.com/repos/vektra/mockery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vektra/mockery/labels{/name}","releases_url":"https://api.github.com/repos/vektra/mockery/releases{/id}","created_at":"2014-09-02T16:49:01Z","updated_at":"2015-06-20T16:19:07Z","pushed_at":"2015-06-26T16:04:09Z","git_url":"git://github.com/vektra/mockery.git","ssh_url":"git@github.com:vektra/mockery.git","clone_url":"https://github.com/vektra/mockery.git","svn_url":"https://github.com/vektra/mockery","homepage":null,"size":287,"stargazers_count":46,"watchers_count":46,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vektra/mockery/pulls/23"},"html":{"href":"https://github.com/vektra/mockery/pull/23"},"issue":{"href":"https://api.github.com/repos/vektra/mockery/issues/23"},"comments":{"href":"https://api.github.com/repos/vektra/mockery/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/vektra/mockery/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/vektra/mockery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vektra/mockery/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/vektra/mockery/statuses/4978fe64f68f05ad7bc82d5e12b9a82d7a0e9031"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}