{"action":"created","comment":{"url":"https://api.github.com/repos/docker/leeroy/pulls/comments/63098626","id":63098626,"diff_hunk":"@@ -111,15 +111,31 @@ func (g GitHub) maybeOpinion(issueHook *octokat.IssueHook) error {\n \treturn nil\n }\n \n+func labelFromVersion(version, suffix string) string {\n+\tswitch suffix {\n+\t// Dev suffix is associated with a master build.\n+\tcase \"dev\":\n+\t\treturn \"version/master\"","path":"github/issue.go","position":8,"original_position":8,"commit_id":"1940beb3b90cce2b7fc1c3aee67d1428dc64ebe1","original_commit_id":"1940beb3b90cce2b7fc1c3aee67d1428dc64ebe1","user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"body":"Wonder if we should still add a version label -in addition- to this label. Allows for easier cleaning up \"old\" master issues","created_at":"2016-05-12T21:14:44Z","updated_at":"2016-05-12T21:14:44Z","html_url":"https://github.com/docker/leeroy/pull/61#discussion_r63098626","pull_request_url":"https://api.github.com/repos/docker/leeroy/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/docker/leeroy/pulls/comments/63098626"},"html":{"href":"https://github.com/docker/leeroy/pull/61#discussion_r63098626"},"pull_request":{"href":"https://api.github.com/repos/docker/leeroy/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/docker/leeroy/pulls/61","id":69907140,"html_url":"https://github.com/docker/leeroy/pull/61","diff_url":"https://github.com/docker/leeroy/pull/61.diff","patch_url":"https://github.com/docker/leeroy/pull/61.patch","issue_url":"https://api.github.com/repos/docker/leeroy/issues/61","number":61,"state":"open","locked":false,"title":"Take version suffix into account for label","user":{"login":"icecrime","id":1564054,"avatar_url":"https://avatars.githubusercontent.com/u/1564054?v=3","gravatar_id":"","url":"https://api.github.com/users/icecrime","html_url":"https://github.com/icecrime","followers_url":"https://api.github.com/users/icecrime/followers","following_url":"https://api.github.com/users/icecrime/following{/other_user}","gists_url":"https://api.github.com/users/icecrime/gists{/gist_id}","starred_url":"https://api.github.com/users/icecrime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icecrime/subscriptions","organizations_url":"https://api.github.com/users/icecrime/orgs","repos_url":"https://api.github.com/users/icecrime/repos","events_url":"https://api.github.com/users/icecrime/events{/privacy}","received_events_url":"https://api.github.com/users/icecrime/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>","created_at":"2016-05-12T21:07:59Z","updated_at":"2016-05-12T21:14:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e89f7b599c50777600f4deeebe1542f739a0bc52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/leeroy/pulls/61/commits","review_comments_url":"https://api.github.com/repos/docker/leeroy/pulls/61/comments","review_comment_url":"https://api.github.com/repos/docker/leeroy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/leeroy/issues/61/comments","statuses_url":"https://api.github.com/repos/docker/leeroy/statuses/1940beb3b90cce2b7fc1c3aee67d1428dc64ebe1","head":{"label":"icecrime:issue_version_suffix","ref":"issue_version_suffix","sha":"1940beb3b90cce2b7fc1c3aee67d1428dc64ebe1","user":{"login":"icecrime","id":1564054,"avatar_url":"https://avatars.githubusercontent.com/u/1564054?v=3","gravatar_id":"","url":"https://api.github.com/users/icecrime","html_url":"https://github.com/icecrime","followers_url":"https://api.github.com/users/icecrime/followers","following_url":"https://api.github.com/users/icecrime/following{/other_user}","gists_url":"https://api.github.com/users/icecrime/gists{/gist_id}","starred_url":"https://api.github.com/users/icecrime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icecrime/subscriptions","organizations_url":"https://api.github.com/users/icecrime/orgs","repos_url":"https://api.github.com/users/icecrime/repos","events_url":"https://api.github.com/users/icecrime/events{/privacy}","received_events_url":"https://api.github.com/users/icecrime/received_events","type":"User","site_admin":false},"repo":{"id":34374269,"name":"leeroy","full_name":"icecrime/leeroy","owner":{"login":"icecrime","id":1564054,"avatar_url":"https://avatars.githubusercontent.com/u/1564054?v=3","gravatar_id":"","url":"https://api.github.com/users/icecrime","html_url":"https://github.com/icecrime","followers_url":"https://api.github.com/users/icecrime/followers","following_url":"https://api.github.com/users/icecrime/following{/other_user}","gists_url":"https://api.github.com/users/icecrime/gists{/gist_id}","starred_url":"https://api.github.com/users/icecrime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icecrime/subscriptions","organizations_url":"https://api.github.com/users/icecrime/orgs","repos_url":"https://api.github.com/users/icecrime/repos","events_url":"https://api.github.com/users/icecrime/events{/privacy}","received_events_url":"https://api.github.com/users/icecrime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/icecrime/leeroy","description":"Jenkins integration with GitHub pull requests","fork":true,"url":"https://api.github.com/repos/icecrime/leeroy","forks_url":"https://api.github.com/repos/icecrime/leeroy/forks","keys_url":"https://api.github.com/repos/icecrime/leeroy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icecrime/leeroy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icecrime/leeroy/teams","hooks_url":"https://api.github.com/repos/icecrime/leeroy/hooks","issue_events_url":"https://api.github.com/repos/icecrime/leeroy/issues/events{/number}","events_url":"https://api.github.com/repos/icecrime/leeroy/events","assignees_url":"https://api.github.com/repos/icecrime/leeroy/assignees{/user}","branches_url":"https://api.github.com/repos/icecrime/leeroy/branches{/branch}","tags_url":"https://api.github.com/repos/icecrime/leeroy/tags","blobs_url":"https://api.github.com/repos/icecrime/leeroy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icecrime/leeroy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icecrime/leeroy/git/refs{/sha}","trees_url":"https://api.github.com/repos/icecrime/leeroy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icecrime/leeroy/statuses/{sha}","languages_url":"https://api.github.com/repos/icecrime/leeroy/languages","stargazers_url":"https://api.github.com/repos/icecrime/leeroy/stargazers","contributors_url":"https://api.github.com/repos/icecrime/leeroy/contributors","subscribers_url":"https://api.github.com/repos/icecrime/leeroy/subscribers","subscription_url":"https://api.github.com/repos/icecrime/leeroy/subscription","commits_url":"https://api.github.com/repos/icecrime/leeroy/commits{/sha}","git_commits_url":"https://api.github.com/repos/icecrime/leeroy/git/commits{/sha}","comments_url":"https://api.github.com/repos/icecrime/leeroy/comments{/number}","issue_comment_url":"https://api.github.com/repos/icecrime/leeroy/issues/comments{/number}","contents_url":"https://api.github.com/repos/icecrime/leeroy/contents/{+path}","compare_url":"https://api.github.com/repos/icecrime/leeroy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icecrime/leeroy/merges","archive_url":"https://api.github.com/repos/icecrime/leeroy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icecrime/leeroy/downloads","issues_url":"https://api.github.com/repos/icecrime/leeroy/issues{/number}","pulls_url":"https://api.github.com/repos/icecrime/leeroy/pulls{/number}","milestones_url":"https://api.github.com/repos/icecrime/leeroy/milestones{/number}","notifications_url":"https://api.github.com/repos/icecrime/leeroy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icecrime/leeroy/labels{/name}","releases_url":"https://api.github.com/repos/icecrime/leeroy/releases{/id}","deployments_url":"https://api.github.com/repos/icecrime/leeroy/deployments","created_at":"2015-04-22T06:57:40Z","updated_at":"2015-04-22T06:57:40Z","pushed_at":"2016-05-12T21:07:40Z","git_url":"git://github.com/icecrime/leeroy.git","ssh_url":"git@github.com:icecrime/leeroy.git","clone_url":"https://github.com/icecrime/leeroy.git","svn_url":"https://github.com/icecrime/leeroy","homepage":null,"size":138,"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":"docker:master","ref":"master","sha":"3993e9ed2a00ca3a6dfaed3f1fd08a6368f331ef","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":30682536,"name":"leeroy","full_name":"docker/leeroy","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/leeroy","description":"Jenkins integration with GitHub pull requests","fork":false,"url":"https://api.github.com/repos/docker/leeroy","forks_url":"https://api.github.com/repos/docker/leeroy/forks","keys_url":"https://api.github.com/repos/docker/leeroy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/leeroy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/leeroy/teams","hooks_url":"https://api.github.com/repos/docker/leeroy/hooks","issue_events_url":"https://api.github.com/repos/docker/leeroy/issues/events{/number}","events_url":"https://api.github.com/repos/docker/leeroy/events","assignees_url":"https://api.github.com/repos/docker/leeroy/assignees{/user}","branches_url":"https://api.github.com/repos/docker/leeroy/branches{/branch}","tags_url":"https://api.github.com/repos/docker/leeroy/tags","blobs_url":"https://api.github.com/repos/docker/leeroy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/leeroy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/leeroy/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/leeroy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/leeroy/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/leeroy/languages","stargazers_url":"https://api.github.com/repos/docker/leeroy/stargazers","contributors_url":"https://api.github.com/repos/docker/leeroy/contributors","subscribers_url":"https://api.github.com/repos/docker/leeroy/subscribers","subscription_url":"https://api.github.com/repos/docker/leeroy/subscription","commits_url":"https://api.github.com/repos/docker/leeroy/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/leeroy/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/leeroy/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/leeroy/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/leeroy/contents/{+path}","compare_url":"https://api.github.com/repos/docker/leeroy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/leeroy/merges","archive_url":"https://api.github.com/repos/docker/leeroy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/leeroy/downloads","issues_url":"https://api.github.com/repos/docker/leeroy/issues{/number}","pulls_url":"https://api.github.com/repos/docker/leeroy/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/leeroy/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/leeroy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/leeroy/labels{/name}","releases_url":"https://api.github.com/repos/docker/leeroy/releases{/id}","deployments_url":"https://api.github.com/repos/docker/leeroy/deployments","created_at":"2015-02-12T03:00:06Z","updated_at":"2016-05-06T18:27:27Z","pushed_at":"2016-05-12T21:08:00Z","git_url":"git://github.com/docker/leeroy.git","ssh_url":"git@github.com:docker/leeroy.git","clone_url":"https://github.com/docker/leeroy.git","svn_url":"https://github.com/docker/leeroy","homepage":null,"size":204,"stargazers_count":157,"watchers_count":157,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":13,"forks":32,"open_issues":13,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/leeroy/pulls/61"},"html":{"href":"https://github.com/docker/leeroy/pull/61"},"issue":{"href":"https://api.github.com/repos/docker/leeroy/issues/61"},"comments":{"href":"https://api.github.com/repos/docker/leeroy/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/leeroy/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/leeroy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/leeroy/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/docker/leeroy/statuses/1940beb3b90cce2b7fc1c3aee67d1428dc64ebe1"}}}}