{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments/114226643","pull_request_review_id":35675848,"id":114226643,"diff_hunk":"@@ -0,0 +1,103 @@\n+/*\n+Copyright 2017 The Kubernetes Authors.\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+package mungers\n+\n+import (\n+\t\"github.com/golang/glog\"\n+\tgithubapi \"github.com/google/go-github/github\"\n+\t\"github.com/spf13/cobra\"\n+\t\"k8s.io/test-infra/mungegithub/features\"\n+\tgithub \"k8s.io/test-infra/mungegithub/github\"\n+\t\"reflect\"\n+)\n+\n+var (\n+\tclosed          = \"closed\"\n+\tcurrentVersion  = \"v1.7\"\n+\tnoSigMentionMsg = \"There are no @kubernetes/sig mention on the issue. Please mention one.\"\n+\tsigLabel        = \"sig/\"\n+)\n+\n+type SigMentionHandler struct {\n+\tfeatures *features.Features\n+}\n+\n+func init() {\n+\th := &SigMentionHandler{}\n+\tRegisterMungerOrDie(h)\n+}\n+\n+// Name is the name usable in --pr-mungers\n+func (*SigMentionHandler) Name() string { return \"sig-mention-handler\" }\n+\n+// RequiredFeatures is a slice of 'features' that must be provided\n+func (*SigMentionHandler) RequiredFeatures() []string {\n+\treturn []string{features.RepoFeatureName, features.AliasesFeature}","path":"mungegithub/mungers/sig-mention-handler.go","position":49,"original_position":49,"commit_id":"1a224a75a259369a481c5399da207fcdb54f7817","original_commit_id":"1a224a75a259369a481c5399da207fcdb54f7817","user":{"login":"crimsonfaith91","id":13921630,"avatar_url":"https://avatars3.githubusercontent.com/u/13921630?v=3","gravatar_id":"","url":"https://api.github.com/users/crimsonfaith91","html_url":"https://github.com/crimsonfaith91","followers_url":"https://api.github.com/users/crimsonfaith91/followers","following_url":"https://api.github.com/users/crimsonfaith91/following{/other_user}","gists_url":"https://api.github.com/users/crimsonfaith91/gists{/gist_id}","starred_url":"https://api.github.com/users/crimsonfaith91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimsonfaith91/subscriptions","organizations_url":"https://api.github.com/users/crimsonfaith91/orgs","repos_url":"https://api.github.com/users/crimsonfaith91/repos","events_url":"https://api.github.com/users/crimsonfaith91/events{/privacy}","received_events_url":"https://api.github.com/users/crimsonfaith91/received_events","type":"User","site_admin":false},"body":"noted!","created_at":"2017-05-01T23:59:41Z","updated_at":"2017-05-01T23:59:41Z","html_url":"https://github.com/kubernetes/test-infra/pull/2608#discussion_r114226643","pull_request_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments/114226643"},"html":{"href":"https://github.com/kubernetes/test-infra/pull/2608#discussion_r114226643"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608","id":118252553,"html_url":"https://github.com/kubernetes/test-infra/pull/2608","diff_url":"https://github.com/kubernetes/test-infra/pull/2608.diff","patch_url":"https://github.com/kubernetes/test-infra/pull/2608.patch","issue_url":"https://api.github.com/repos/kubernetes/test-infra/issues/2608","number":2608,"state":"open","locked":false,"title":"Create a comment to add @kubernetes/sig mention if none available","user":{"login":"crimsonfaith91","id":13921630,"avatar_url":"https://avatars3.githubusercontent.com/u/13921630?v=3","gravatar_id":"","url":"https://api.github.com/users/crimsonfaith91","html_url":"https://github.com/crimsonfaith91","followers_url":"https://api.github.com/users/crimsonfaith91/followers","following_url":"https://api.github.com/users/crimsonfaith91/following{/other_user}","gists_url":"https://api.github.com/users/crimsonfaith91/gists{/gist_id}","starred_url":"https://api.github.com/users/crimsonfaith91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimsonfaith91/subscriptions","organizations_url":"https://api.github.com/users/crimsonfaith91/orgs","repos_url":"https://api.github.com/users/crimsonfaith91/repos","events_url":"https://api.github.com/users/crimsonfaith91/events{/privacy}","received_events_url":"https://api.github.com/users/crimsonfaith91/received_events","type":"User","site_admin":false},"body":"Addressing https://github.com/kubernetes/test-infra/issues/2605\r\n\r\nThis PR is **incomplete** and serves only for discussion purpose.\r\n\r\nFeatures to add on:\r\n(1) check whether the issue is closed or not\r\n(2) filter the issue based on \"v1.7\" milestone\r\n(3) notify issue owner (and assignees?) by adding \"@<owner-name>\" in the comment","created_at":"2017-04-28T23:48:36Z","updated_at":"2017-05-01T23:59:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b832bca301c034ae75fdfa5a2c71ce458613b70a","assignee":{"login":"grodrigues3","id":4854198,"avatar_url":"https://avatars2.githubusercontent.com/u/4854198?v=3","gravatar_id":"","url":"https://api.github.com/users/grodrigues3","html_url":"https://github.com/grodrigues3","followers_url":"https://api.github.com/users/grodrigues3/followers","following_url":"https://api.github.com/users/grodrigues3/following{/other_user}","gists_url":"https://api.github.com/users/grodrigues3/gists{/gist_id}","starred_url":"https://api.github.com/users/grodrigues3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grodrigues3/subscriptions","organizations_url":"https://api.github.com/users/grodrigues3/orgs","repos_url":"https://api.github.com/users/grodrigues3/repos","events_url":"https://api.github.com/users/grodrigues3/events{/privacy}","received_events_url":"https://api.github.com/users/grodrigues3/received_events","type":"User","site_admin":false},"assignees":[{"login":"grodrigues3","id":4854198,"avatar_url":"https://avatars2.githubusercontent.com/u/4854198?v=3","gravatar_id":"","url":"https://api.github.com/users/grodrigues3","html_url":"https://github.com/grodrigues3","followers_url":"https://api.github.com/users/grodrigues3/followers","following_url":"https://api.github.com/users/grodrigues3/following{/other_user}","gists_url":"https://api.github.com/users/grodrigues3/gists{/gist_id}","starred_url":"https://api.github.com/users/grodrigues3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grodrigues3/subscriptions","organizations_url":"https://api.github.com/users/grodrigues3/orgs","repos_url":"https://api.github.com/users/grodrigues3/repos","events_url":"https://api.github.com/users/grodrigues3/events{/privacy}","received_events_url":"https://api.github.com/users/grodrigues3/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608/commits","review_comments_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608/comments","review_comment_url":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/test-infra/issues/2608/comments","statuses_url":"https://api.github.com/repos/kubernetes/test-infra/statuses/1a224a75a259369a481c5399da207fcdb54f7817","head":{"label":"crimsonfaith91:sig","ref":"sig","sha":"1a224a75a259369a481c5399da207fcdb54f7817","user":{"login":"crimsonfaith91","id":13921630,"avatar_url":"https://avatars3.githubusercontent.com/u/13921630?v=3","gravatar_id":"","url":"https://api.github.com/users/crimsonfaith91","html_url":"https://github.com/crimsonfaith91","followers_url":"https://api.github.com/users/crimsonfaith91/followers","following_url":"https://api.github.com/users/crimsonfaith91/following{/other_user}","gists_url":"https://api.github.com/users/crimsonfaith91/gists{/gist_id}","starred_url":"https://api.github.com/users/crimsonfaith91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimsonfaith91/subscriptions","organizations_url":"https://api.github.com/users/crimsonfaith91/orgs","repos_url":"https://api.github.com/users/crimsonfaith91/repos","events_url":"https://api.github.com/users/crimsonfaith91/events{/privacy}","received_events_url":"https://api.github.com/users/crimsonfaith91/received_events","type":"User","site_admin":false},"repo":{"id":87861382,"name":"test-infra","full_name":"crimsonfaith91/test-infra","owner":{"login":"crimsonfaith91","id":13921630,"avatar_url":"https://avatars3.githubusercontent.com/u/13921630?v=3","gravatar_id":"","url":"https://api.github.com/users/crimsonfaith91","html_url":"https://github.com/crimsonfaith91","followers_url":"https://api.github.com/users/crimsonfaith91/followers","following_url":"https://api.github.com/users/crimsonfaith91/following{/other_user}","gists_url":"https://api.github.com/users/crimsonfaith91/gists{/gist_id}","starred_url":"https://api.github.com/users/crimsonfaith91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crimsonfaith91/subscriptions","organizations_url":"https://api.github.com/users/crimsonfaith91/orgs","repos_url":"https://api.github.com/users/crimsonfaith91/repos","events_url":"https://api.github.com/users/crimsonfaith91/events{/privacy}","received_events_url":"https://api.github.com/users/crimsonfaith91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crimsonfaith91/test-infra","description":"Test infrastructure for the Kubernetes project.","fork":true,"url":"https://api.github.com/repos/crimsonfaith91/test-infra","forks_url":"https://api.github.com/repos/crimsonfaith91/test-infra/forks","keys_url":"https://api.github.com/repos/crimsonfaith91/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crimsonfaith91/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crimsonfaith91/test-infra/teams","hooks_url":"https://api.github.com/repos/crimsonfaith91/test-infra/hooks","issue_events_url":"https://api.github.com/repos/crimsonfaith91/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/crimsonfaith91/test-infra/events","assignees_url":"https://api.github.com/repos/crimsonfaith91/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/crimsonfaith91/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/crimsonfaith91/test-infra/tags","blobs_url":"https://api.github.com/repos/crimsonfaith91/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crimsonfaith91/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crimsonfaith91/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/crimsonfaith91/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crimsonfaith91/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/crimsonfaith91/test-infra/languages","stargazers_url":"https://api.github.com/repos/crimsonfaith91/test-infra/stargazers","contributors_url":"https://api.github.com/repos/crimsonfaith91/test-infra/contributors","subscribers_url":"https://api.github.com/repos/crimsonfaith91/test-infra/subscribers","subscription_url":"https://api.github.com/repos/crimsonfaith91/test-infra/subscription","commits_url":"https://api.github.com/repos/crimsonfaith91/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/crimsonfaith91/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/crimsonfaith91/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/crimsonfaith91/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/crimsonfaith91/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/crimsonfaith91/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crimsonfaith91/test-infra/merges","archive_url":"https://api.github.com/repos/crimsonfaith91/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crimsonfaith91/test-infra/downloads","issues_url":"https://api.github.com/repos/crimsonfaith91/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/crimsonfaith91/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/crimsonfaith91/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/crimsonfaith91/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crimsonfaith91/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/crimsonfaith91/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/crimsonfaith91/test-infra/deployments","created_at":"2017-04-10T21:58:13Z","updated_at":"2017-04-10T21:58:17Z","pushed_at":"2017-05-01T23:25:09Z","git_url":"git://github.com/crimsonfaith91/test-infra.git","ssh_url":"git@github.com:crimsonfaith91/test-infra.git","clone_url":"https://github.com/crimsonfaith91/test-infra.git","svn_url":"https://github.com/crimsonfaith91/test-infra","homepage":null,"size":17162,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"e8252dd1ad8b288cefa9e7c2a1bf1b11b1bbc744","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars1.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":57333709,"name":"test-infra","full_name":"kubernetes/test-infra","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars1.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/test-infra","description":"Test infrastructure for the Kubernetes project.","fork":false,"url":"https://api.github.com/repos/kubernetes/test-infra","forks_url":"https://api.github.com/repos/kubernetes/test-infra/forks","keys_url":"https://api.github.com/repos/kubernetes/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/test-infra/teams","hooks_url":"https://api.github.com/repos/kubernetes/test-infra/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/test-infra/events","assignees_url":"https://api.github.com/repos/kubernetes/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/test-infra/tags","blobs_url":"https://api.github.com/repos/kubernetes/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/test-infra/languages","stargazers_url":"https://api.github.com/repos/kubernetes/test-infra/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/test-infra/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/test-infra/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/test-infra/subscription","commits_url":"https://api.github.com/repos/kubernetes/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/test-infra/merges","archive_url":"https://api.github.com/repos/kubernetes/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/test-infra/downloads","issues_url":"https://api.github.com/repos/kubernetes/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/test-infra/deployments","created_at":"2016-04-28T21:05:35Z","updated_at":"2017-05-01T13:33:24Z","pushed_at":"2017-05-01T23:42:09Z","git_url":"git://github.com/kubernetes/test-infra.git","ssh_url":"git@github.com:kubernetes/test-infra.git","clone_url":"https://github.com/kubernetes/test-infra.git","svn_url":"https://github.com/kubernetes/test-infra","homepage":null,"size":17786,"stargazers_count":79,"watchers_count":79,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":131,"mirror_url":null,"open_issues_count":171,"forks":131,"open_issues":171,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608"},"html":{"href":"https://github.com/kubernetes/test-infra/pull/2608"},"issue":{"href":"https://api.github.com/repos/kubernetes/test-infra/issues/2608"},"comments":{"href":"https://api.github.com/repos/kubernetes/test-infra/issues/2608/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/test-infra/pulls/2608/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/test-infra/statuses/1a224a75a259369a481c5399da207fcdb54f7817"}}}}
{"actor":{"display_login":"crimsonfaith91"}}