{"action":"opened","number":286,"pull_request":{"url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/286","id":120676733,"html_url":"https://github.com/pseudomuto/protoc-gen-doc/pull/286","diff_url":"https://github.com/pseudomuto/protoc-gen-doc/pull/286.diff","patch_url":"https://github.com/pseudomuto/protoc-gen-doc/pull/286.patch","issue_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/286","number":286,"state":"open","locked":false,"title":"Add #message_has_fields to only render field table when fields exist","user":{"login":"pseudomuto","id":4748863,"avatar_url":"https://avatars0.githubusercontent.com/u/4748863?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomuto","html_url":"https://github.com/pseudomuto","followers_url":"https://api.github.com/users/pseudomuto/followers","following_url":"https://api.github.com/users/pseudomuto/following{/other_user}","gists_url":"https://api.github.com/users/pseudomuto/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomuto/subscriptions","organizations_url":"https://api.github.com/users/pseudomuto/orgs","repos_url":"https://api.github.com/users/pseudomuto/repos","events_url":"https://api.github.com/users/pseudomuto/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomuto/received_events","type":"User","site_admin":false},"body":"When generating docs for messages without fields, the generator renders an empty table. This looks kind of broken, so I've added message_has_fields so it can be used in a template to decide whether or not to render the table.\r\n\r\nI've updated the templates to check for fields before rendering tables and regenerated the examples.","created_at":"2017-05-15T19:33:22Z","updated_at":"2017-05-15T19:33:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/286/commits","review_comments_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/286/comments","review_comment_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/286/comments","statuses_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/statuses/d2c3203ad956c416ce4a1d53bb33e8ad30ec3582","head":{"label":"pseudomuto:add_message_has_fields","ref":"add_message_has_fields","sha":"d2c3203ad956c416ce4a1d53bb33e8ad30ec3582","user":{"login":"pseudomuto","id":4748863,"avatar_url":"https://avatars0.githubusercontent.com/u/4748863?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomuto","html_url":"https://github.com/pseudomuto","followers_url":"https://api.github.com/users/pseudomuto/followers","following_url":"https://api.github.com/users/pseudomuto/following{/other_user}","gists_url":"https://api.github.com/users/pseudomuto/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomuto/subscriptions","organizations_url":"https://api.github.com/users/pseudomuto/orgs","repos_url":"https://api.github.com/users/pseudomuto/repos","events_url":"https://api.github.com/users/pseudomuto/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomuto/received_events","type":"User","site_admin":false},"repo":{"id":22581723,"name":"protoc-gen-doc","full_name":"pseudomuto/protoc-gen-doc","owner":{"login":"pseudomuto","id":4748863,"avatar_url":"https://avatars0.githubusercontent.com/u/4748863?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomuto","html_url":"https://github.com/pseudomuto","followers_url":"https://api.github.com/users/pseudomuto/followers","following_url":"https://api.github.com/users/pseudomuto/following{/other_user}","gists_url":"https://api.github.com/users/pseudomuto/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomuto/subscriptions","organizations_url":"https://api.github.com/users/pseudomuto/orgs","repos_url":"https://api.github.com/users/pseudomuto/repos","events_url":"https://api.github.com/users/pseudomuto/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomuto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pseudomuto/protoc-gen-doc","description":"Documentation generator plugin for Google Protocol Buffers","fork":false,"url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc","forks_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/forks","keys_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/teams","hooks_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/hooks","issue_events_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/events{/number}","events_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/events","assignees_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/assignees{/user}","branches_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/branches{/branch}","tags_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/tags","blobs_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/statuses/{sha}","languages_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/languages","stargazers_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/stargazers","contributors_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/contributors","subscribers_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/subscribers","subscription_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/subscription","commits_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/contents/{+path}","compare_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/merges","archive_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/downloads","issues_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues{/number}","pulls_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls{/number}","milestones_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/milestones{/number}","notifications_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/labels{/name}","releases_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/releases{/id}","deployments_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/deployments","created_at":"2014-08-03T19:14:42Z","updated_at":"2017-05-15T18:30:48Z","pushed_at":"2017-05-15T19:32:12Z","git_url":"git://github.com/pseudomuto/protoc-gen-doc.git","ssh_url":"git@github.com:pseudomuto/protoc-gen-doc.git","clone_url":"https://github.com/pseudomuto/protoc-gen-doc.git","svn_url":"https://github.com/pseudomuto/protoc-gen-doc","homepage":"","size":507,"stargazers_count":184,"watchers_count":184,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":49,"mirror_url":null,"open_issues_count":16,"forks":49,"open_issues":16,"watchers":184,"default_branch":"master"}},"base":{"label":"pseudomuto:master","ref":"master","sha":"165407cd96fe8739b51544514ea70bcf18f70fb2","user":{"login":"pseudomuto","id":4748863,"avatar_url":"https://avatars0.githubusercontent.com/u/4748863?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomuto","html_url":"https://github.com/pseudomuto","followers_url":"https://api.github.com/users/pseudomuto/followers","following_url":"https://api.github.com/users/pseudomuto/following{/other_user}","gists_url":"https://api.github.com/users/pseudomuto/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomuto/subscriptions","organizations_url":"https://api.github.com/users/pseudomuto/orgs","repos_url":"https://api.github.com/users/pseudomuto/repos","events_url":"https://api.github.com/users/pseudomuto/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomuto/received_events","type":"User","site_admin":false},"repo":{"id":22581723,"name":"protoc-gen-doc","full_name":"pseudomuto/protoc-gen-doc","owner":{"login":"pseudomuto","id":4748863,"avatar_url":"https://avatars0.githubusercontent.com/u/4748863?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomuto","html_url":"https://github.com/pseudomuto","followers_url":"https://api.github.com/users/pseudomuto/followers","following_url":"https://api.github.com/users/pseudomuto/following{/other_user}","gists_url":"https://api.github.com/users/pseudomuto/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomuto/subscriptions","organizations_url":"https://api.github.com/users/pseudomuto/orgs","repos_url":"https://api.github.com/users/pseudomuto/repos","events_url":"https://api.github.com/users/pseudomuto/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomuto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pseudomuto/protoc-gen-doc","description":"Documentation generator plugin for Google Protocol Buffers","fork":false,"url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc","forks_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/forks","keys_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/teams","hooks_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/hooks","issue_events_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/events{/number}","events_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/events","assignees_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/assignees{/user}","branches_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/branches{/branch}","tags_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/tags","blobs_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/statuses/{sha}","languages_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/languages","stargazers_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/stargazers","contributors_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/contributors","subscribers_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/subscribers","subscription_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/subscription","commits_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/contents/{+path}","compare_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/merges","archive_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/downloads","issues_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues{/number}","pulls_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls{/number}","milestones_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/milestones{/number}","notifications_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/labels{/name}","releases_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/releases{/id}","deployments_url":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/deployments","created_at":"2014-08-03T19:14:42Z","updated_at":"2017-05-15T18:30:48Z","pushed_at":"2017-05-15T19:32:12Z","git_url":"git://github.com/pseudomuto/protoc-gen-doc.git","ssh_url":"git@github.com:pseudomuto/protoc-gen-doc.git","clone_url":"https://github.com/pseudomuto/protoc-gen-doc.git","svn_url":"https://github.com/pseudomuto/protoc-gen-doc","homepage":"","size":507,"stargazers_count":184,"watchers_count":184,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":49,"mirror_url":null,"open_issues_count":16,"forks":49,"open_issues":16,"watchers":184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/286"},"html":{"href":"https://github.com/pseudomuto/protoc-gen-doc/pull/286"},"issue":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/286"},"comments":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/issues/286/comments"},"review_comments":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/286/comments"},"review_comment":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/pulls/286/commits"},"statuses":{"href":"https://api.github.com/repos/pseudomuto/protoc-gen-doc/statuses/d2c3203ad956c416ce4a1d53bb33e8ad30ec3582"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":74,"deletions":8,"changed_files":9}}
{"actor":{"display_login":"pseudomuto"}}