{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/contrib/pulls/comments/75728795","id":75728795,"diff_hunk":"@@ -1611,9 +1611,13 @@ func (obj *MungeObject) ListComments(withListOpts ...WithListOpt) ([]*github.Iss\n // WriteComment will send the `msg` as a comment to the specified PR\n func (obj *MungeObject) WriteComment(msg string) error {\n \tconfig := obj.config\n-\tprNum := *obj.Issue.Number\n+\tprNum := obj.Number()\n \tconfig.analytics.CreateComment.Call(config, nil)\n-\tglog.Infof(\"Commenting %q in %d\", msg, prNum)\n+\tcomment := msg\n+\tif len(comment) > 512 {\n+\t\tcomment = comment[:512]","path":"mungegithub/github/github.go","position":10,"original_position":10,"commit_id":"41e54353e4409e02c865cf72d49f9af7cc461bb4","original_commit_id":"41e54353e4409e02c865cf72d49f9af7cc461bb4","user":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"body":"I would prefer to truncate error messages within the comment. This is likely to leave out important stuff like \"happened in presubmit on #blah\"","created_at":"2016-08-22T18:12:26Z","updated_at":"2016-08-22T18:12:26Z","html_url":"https://github.com/kubernetes/contrib/pull/1593#discussion_r75728795","pull_request_url":"https://api.github.com/repos/kubernetes/contrib/pulls/1593","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/comments/75728795"},"html":{"href":"https://github.com/kubernetes/contrib/pull/1593#discussion_r75728795"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1593"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/contrib/pulls/1593","id":82210540,"html_url":"https://github.com/kubernetes/contrib/pull/1593","diff_url":"https://github.com/kubernetes/contrib/pull/1593.diff","patch_url":"https://github.com/kubernetes/contrib/pull/1593.patch","issue_url":"https://api.github.com/repos/kubernetes/contrib/issues/1593","number":1593,"state":"open","locked":false,"title":"Only show 512 characters of comments in the logs","user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"body":"When creating new issues or adding comments to existing issue we can\r\ncreate VERY long comments which make the logs really hard to read. We\r\ndon't need all of that in the logs.","created_at":"2016-08-22T15:21:13Z","updated_at":"2016-08-22T18:12:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60d2a4e418f053ba6b8ecde936c9e00326d764cb","assignee":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"assignees":[{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/contrib/pulls/1593/commits","review_comments_url":"https://api.github.com/repos/kubernetes/contrib/pulls/1593/comments","review_comment_url":"https://api.github.com/repos/kubernetes/contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/contrib/issues/1593/comments","statuses_url":"https://api.github.com/repos/kubernetes/contrib/statuses/41e54353e4409e02c865cf72d49f9af7cc461bb4","head":{"label":"eparis:less-comment-length","ref":"less-comment-length","sha":"41e54353e4409e02c865cf72d49f9af7cc461bb4","user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"repo":{"id":41582247,"name":"contrib","full_name":"eparis/contrib","owner":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eparis/contrib","description":"","fork":true,"url":"https://api.github.com/repos/eparis/contrib","forks_url":"https://api.github.com/repos/eparis/contrib/forks","keys_url":"https://api.github.com/repos/eparis/contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eparis/contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eparis/contrib/teams","hooks_url":"https://api.github.com/repos/eparis/contrib/hooks","issue_events_url":"https://api.github.com/repos/eparis/contrib/issues/events{/number}","events_url":"https://api.github.com/repos/eparis/contrib/events","assignees_url":"https://api.github.com/repos/eparis/contrib/assignees{/user}","branches_url":"https://api.github.com/repos/eparis/contrib/branches{/branch}","tags_url":"https://api.github.com/repos/eparis/contrib/tags","blobs_url":"https://api.github.com/repos/eparis/contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eparis/contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eparis/contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/eparis/contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eparis/contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/eparis/contrib/languages","stargazers_url":"https://api.github.com/repos/eparis/contrib/stargazers","contributors_url":"https://api.github.com/repos/eparis/contrib/contributors","subscribers_url":"https://api.github.com/repos/eparis/contrib/subscribers","subscription_url":"https://api.github.com/repos/eparis/contrib/subscription","commits_url":"https://api.github.com/repos/eparis/contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/eparis/contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/eparis/contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/eparis/contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/eparis/contrib/contents/{+path}","compare_url":"https://api.github.com/repos/eparis/contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eparis/contrib/merges","archive_url":"https://api.github.com/repos/eparis/contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eparis/contrib/downloads","issues_url":"https://api.github.com/repos/eparis/contrib/issues{/number}","pulls_url":"https://api.github.com/repos/eparis/contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/eparis/contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/eparis/contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eparis/contrib/labels{/name}","releases_url":"https://api.github.com/repos/eparis/contrib/releases{/id}","deployments_url":"https://api.github.com/repos/eparis/contrib/deployments","created_at":"2015-08-29T05:42:05Z","updated_at":"2016-01-27T16:31:34Z","pushed_at":"2016-08-22T15:21:09Z","git_url":"git://github.com/eparis/contrib.git","ssh_url":"git@github.com:eparis/contrib.git","clone_url":"https://github.com/eparis/contrib.git","svn_url":"https://github.com/eparis/contrib","homepage":null,"size":31256,"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":"kubernetes:master","ref":"master","sha":"c90c039cc9d95a19d02f65e73e51097c3458f359","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":40686014,"name":"contrib","full_name":"kubernetes/contrib","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/contrib","description":"This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core. Consider creating a new repo instead.","fork":false,"url":"https://api.github.com/repos/kubernetes/contrib","forks_url":"https://api.github.com/repos/kubernetes/contrib/forks","keys_url":"https://api.github.com/repos/kubernetes/contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/contrib/teams","hooks_url":"https://api.github.com/repos/kubernetes/contrib/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/contrib/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/contrib/events","assignees_url":"https://api.github.com/repos/kubernetes/contrib/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/contrib/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/contrib/tags","blobs_url":"https://api.github.com/repos/kubernetes/contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/contrib/languages","stargazers_url":"https://api.github.com/repos/kubernetes/contrib/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/contrib/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/contrib/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/contrib/subscription","commits_url":"https://api.github.com/repos/kubernetes/contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/contrib/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/contrib/merges","archive_url":"https://api.github.com/repos/kubernetes/contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/contrib/downloads","issues_url":"https://api.github.com/repos/kubernetes/contrib/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/contrib/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/contrib/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/contrib/deployments","created_at":"2015-08-13T23:18:26Z","updated_at":"2016-08-22T16:03:29Z","pushed_at":"2016-08-22T17:10:18Z","git_url":"git://github.com/kubernetes/contrib.git","ssh_url":"git@github.com:kubernetes/contrib.git","clone_url":"https://github.com/kubernetes/contrib.git","svn_url":"https://github.com/kubernetes/contrib","homepage":"","size":70374,"stargazers_count":440,"watchers_count":440,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":424,"mirror_url":null,"open_issues_count":282,"forks":424,"open_issues":282,"watchers":440,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1593"},"html":{"href":"https://github.com/kubernetes/contrib/pull/1593"},"issue":{"href":"https://api.github.com/repos/kubernetes/contrib/issues/1593"},"comments":{"href":"https://api.github.com/repos/kubernetes/contrib/issues/1593/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1593/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/1593/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/contrib/statuses/41e54353e4409e02c865cf72d49f9af7cc461bb4"}}}}
{"actor":{"display_login":"lavalamp"}}