{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/comments/36209660","id":36209660,"diff_hunk":"@@ -0,0 +1,48 @@\n+/*\n+ * The MIT License\n+ *\n+ * Copyright (c) 2015, CloudBees, Inc.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+package jenkins.plugins.purgejobhistory;\n+\n+import hudson.cli.handlers.GenericItemOptionHandler;\n+import hudson.model.Job;\n+import org.kohsuke.MetaInfServices;\n+import org.kohsuke.args4j.CmdLineParser;\n+import org.kohsuke.args4j.OptionDef;\n+import org.kohsuke.args4j.spi.OptionHandler;\n+import org.kohsuke.args4j.spi.Setter;\n+\n+@MetaInfServices(OptionHandler.class)\n+public class JobOptionHandler extends GenericItemOptionHandler<Job> {","path":"src/main/java/jenkins/plugins/purgejobhistory/JobOptionHandler.java","position":35,"original_position":35,"commit_id":"9e9c306deb9596b186a98f4581b6ee8da435f159","original_commit_id":"9e9c306deb9596b186a98f4581b6ee8da435f159","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"Looks OK but please file a PR to add this to core for the future and include a link in a comment here.","created_at":"2015-08-04T16:30:55Z","updated_at":"2015-08-04T16:30:55Z","html_url":"https://github.com/jenkinsci/purge-job-history-plugin/pull/1#discussion_r36209660","pull_request_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/comments/36209660"},"html":{"href":"https://github.com/jenkinsci/purge-job-history-plugin/pull/1#discussion_r36209660"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1","id":41583154,"html_url":"https://github.com/jenkinsci/purge-job-history-plugin/pull/1","diff_url":"https://github.com/jenkinsci/purge-job-history-plugin/pull/1.diff","patch_url":"https://github.com/jenkinsci/purge-job-history-plugin/pull/1.patch","issue_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/1","number":1,"state":"open","locked":false,"title":"Initial feature","user":{"login":"stephenc","id":209336,"avatar_url":"https://avatars.githubusercontent.com/u/209336?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenc","html_url":"https://github.com/stephenc","followers_url":"https://api.github.com/users/stephenc/followers","following_url":"https://api.github.com/users/stephenc/following{/other_user}","gists_url":"https://api.github.com/users/stephenc/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenc/subscriptions","organizations_url":"https://api.github.com/users/stephenc/orgs","repos_url":"https://api.github.com/users/stephenc/repos","events_url":"https://api.github.com/users/stephenc/events{/privacy}","received_events_url":"https://api.github.com/users/stephenc/received_events","type":"User","site_admin":false},"body":"@reviewbybees","created_at":"2015-08-04T15:31:54Z","updated_at":"2015-08-04T16:30:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47fa99603272da9a1a3988e59b861c40c0374e7b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/1/comments","statuses_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/statuses/9e9c306deb9596b186a98f4581b6ee8da435f159","head":{"label":"jenkinsci:cjp-2545","ref":"cjp-2545","sha":"9e9c306deb9596b186a98f4581b6ee8da435f159","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":40190745,"name":"purge-job-history-plugin","full_name":"jenkinsci/purge-job-history-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/purge-job-history-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin","forks_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/releases{/id}","created_at":"2015-08-04T14:48:59Z","updated_at":"2015-08-04T14:48:59Z","pushed_at":"2015-08-04T16:26:57Z","git_url":"git://github.com/jenkinsci/purge-job-history-plugin.git","ssh_url":"git@github.com:jenkinsci/purge-job-history-plugin.git","clone_url":"https://github.com/jenkinsci/purge-job-history-plugin.git","svn_url":"https://github.com/jenkinsci/purge-job-history-plugin","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"ee12b787da62d8ed76140d6fc58966e28f4e2d9b","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":40190745,"name":"purge-job-history-plugin","full_name":"jenkinsci/purge-job-history-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/purge-job-history-plugin","description":"","fork":false,"url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin","forks_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/releases{/id}","created_at":"2015-08-04T14:48:59Z","updated_at":"2015-08-04T14:48:59Z","pushed_at":"2015-08-04T16:26:57Z","git_url":"git://github.com/jenkinsci/purge-job-history-plugin.git","ssh_url":"git@github.com:jenkinsci/purge-job-history-plugin.git","clone_url":"https://github.com/jenkinsci/purge-job-history-plugin.git","svn_url":"https://github.com/jenkinsci/purge-job-history-plugin","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1"},"html":{"href":"https://github.com/jenkinsci/purge-job-history-plugin/pull/1"},"issue":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/1"},"comments":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/purge-job-history-plugin/statuses/9e9c306deb9596b186a98f4581b6ee8da435f159"}}}}