{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments/68752680","id":68752680,"diff_hunk":"@@ -3,21 +3,21 @@ namespace :foreman_tasks do\n     desc <<DESC\n Clean tasks based on filter and age. ENV variables:\n \n-  * FILTER     : scoped search filter (example: 'label = \"Actions::Foreman::Host::ImportFacts\"')\n-  * AFTER      : delete tasks created after *AFTER* period. Expected format is a number followed by the time unit (s,h,m,y), such as '10d' for 10 days\n-  * STATES     : comma separated list of task states to touch with the cleanup, by default only stopped tasks are covered\n-  * NOOP       : set to \"true\" if the task should not actuall perform the deletion\n-  * VERBOSE    : set to \"true\" for more verbose output\n-  * BATCH_SIZE : the size of batches the tasks get processed in (1000 by default)\n+  * TASK_SEARCH : scoped search filter (example: 'label = \"Actions::Foreman::Host::ImportFacts\"')\n+  * AFTER       : delete tasks created after *AFTER* period. Expected format is a number followed by the time unit (s,h,m,y), such as '10d' for 10 days\n+  * STATES      : comma separated list of task states to touch with the cleanup, by default only stopped tasks are covered\n+  * NOOP        : set to \"true\" if the task should not actuall perform the deletion\n+  * VERBOSE     : set to \"true\" for more verbose output\n+  * BATCH_SIZE  : the size of batches the tasks get processed in (1000 by default)\n \n-If none of FILTER, BEFORE, STATES is specified, the tasks will be cleaned based\n+If none of TASK_SEARCH, BEFORE, STATES is specified, the tasks will be cleaned based\n configuration in settings\n DESC\n     task :run => 'environment' do\n       options = {}\n \n-      if ENV['FILTER']","path":"lib/foreman_tasks/tasks/cleanup.rake","position":24,"original_position":24,"commit_id":"8ea8416c5ab033f5acbe939621d0affe8f17702b","original_commit_id":"8ea8416c5ab033f5acbe939621d0affe8f17702b","user":{"login":"daviddavis","id":86290,"avatar_url":"https://avatars.githubusercontent.com/u/86290?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddavis","html_url":"https://github.com/daviddavis","followers_url":"https://api.github.com/users/daviddavis/followers","following_url":"https://api.github.com/users/daviddavis/following{/other_user}","gists_url":"https://api.github.com/users/daviddavis/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddavis/subscriptions","organizations_url":"https://api.github.com/users/daviddavis/orgs","repos_url":"https://api.github.com/users/daviddavis/repos","events_url":"https://api.github.com/users/daviddavis/events{/privacy}","received_events_url":"https://api.github.com/users/daviddavis/received_events","type":"User","site_admin":false},"body":"You mean like a deprecation error (e.g. `Please use TASK_SEARCH instead of FILTER`)?","created_at":"2016-06-28T13:11:42Z","updated_at":"2016-06-28T13:11:42Z","html_url":"https://github.com/theforeman/foreman-tasks/pull/186#discussion_r68752680","pull_request_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments/68752680"},"html":{"href":"https://github.com/theforeman/foreman-tasks/pull/186#discussion_r68752680"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186","id":70249811,"html_url":"https://github.com/theforeman/foreman-tasks/pull/186","diff_url":"https://github.com/theforeman/foreman-tasks/pull/186.diff","patch_url":"https://github.com/theforeman/foreman-tasks/pull/186.patch","issue_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/186","number":186,"state":"open","locked":false,"title":"Fixes #14487 - Export filtered tasks in csv format - Export filtered tasks in csv format","user":{"login":"daviddavis","id":86290,"avatar_url":"https://avatars.githubusercontent.com/u/86290?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddavis","html_url":"https://github.com/daviddavis","followers_url":"https://api.github.com/users/daviddavis/followers","following_url":"https://api.github.com/users/daviddavis/following{/other_user}","gists_url":"https://api.github.com/users/daviddavis/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddavis/subscriptions","organizations_url":"https://api.github.com/users/daviddavis/orgs","repos_url":"https://api.github.com/users/daviddavis/repos","events_url":"https://api.github.com/users/daviddavis/events{/privacy}","received_events_url":"https://api.github.com/users/daviddavis/received_events","type":"User","site_admin":false},"body":"\r\n","created_at":"2016-05-16T19:46:20Z","updated_at":"2016-06-28T13:11:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76ef7226c4003611cc0f5158744ecc7753cb8ca2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/186/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman-tasks/statuses/8ea8416c5ab033f5acbe939621d0affe8f17702b","head":{"label":"daviddavis:temp/20160516154613","ref":"temp/20160516154613","sha":"8ea8416c5ab033f5acbe939621d0affe8f17702b","user":{"login":"daviddavis","id":86290,"avatar_url":"https://avatars.githubusercontent.com/u/86290?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddavis","html_url":"https://github.com/daviddavis","followers_url":"https://api.github.com/users/daviddavis/followers","following_url":"https://api.github.com/users/daviddavis/following{/other_user}","gists_url":"https://api.github.com/users/daviddavis/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddavis/subscriptions","organizations_url":"https://api.github.com/users/daviddavis/orgs","repos_url":"https://api.github.com/users/daviddavis/repos","events_url":"https://api.github.com/users/daviddavis/events{/privacy}","received_events_url":"https://api.github.com/users/daviddavis/received_events","type":"User","site_admin":false},"repo":{"id":21365996,"name":"foreman-tasks","full_name":"daviddavis/foreman-tasks","owner":{"login":"daviddavis","id":86290,"avatar_url":"https://avatars.githubusercontent.com/u/86290?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddavis","html_url":"https://github.com/daviddavis","followers_url":"https://api.github.com/users/daviddavis/followers","following_url":"https://api.github.com/users/daviddavis/following{/other_user}","gists_url":"https://api.github.com/users/daviddavis/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddavis/subscriptions","organizations_url":"https://api.github.com/users/daviddavis/orgs","repos_url":"https://api.github.com/users/daviddavis/repos","events_url":"https://api.github.com/users/daviddavis/events{/privacy}","received_events_url":"https://api.github.com/users/daviddavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daviddavis/foreman-tasks","description":"","fork":true,"url":"https://api.github.com/repos/daviddavis/foreman-tasks","forks_url":"https://api.github.com/repos/daviddavis/foreman-tasks/forks","keys_url":"https://api.github.com/repos/daviddavis/foreman-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daviddavis/foreman-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daviddavis/foreman-tasks/teams","hooks_url":"https://api.github.com/repos/daviddavis/foreman-tasks/hooks","issue_events_url":"https://api.github.com/repos/daviddavis/foreman-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/daviddavis/foreman-tasks/events","assignees_url":"https://api.github.com/repos/daviddavis/foreman-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/daviddavis/foreman-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/daviddavis/foreman-tasks/tags","blobs_url":"https://api.github.com/repos/daviddavis/foreman-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daviddavis/foreman-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daviddavis/foreman-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/daviddavis/foreman-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daviddavis/foreman-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/daviddavis/foreman-tasks/languages","stargazers_url":"https://api.github.com/repos/daviddavis/foreman-tasks/stargazers","contributors_url":"https://api.github.com/repos/daviddavis/foreman-tasks/contributors","subscribers_url":"https://api.github.com/repos/daviddavis/foreman-tasks/subscribers","subscription_url":"https://api.github.com/repos/daviddavis/foreman-tasks/subscription","commits_url":"https://api.github.com/repos/daviddavis/foreman-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/daviddavis/foreman-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/daviddavis/foreman-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/daviddavis/foreman-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/daviddavis/foreman-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/daviddavis/foreman-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daviddavis/foreman-tasks/merges","archive_url":"https://api.github.com/repos/daviddavis/foreman-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daviddavis/foreman-tasks/downloads","issues_url":"https://api.github.com/repos/daviddavis/foreman-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/daviddavis/foreman-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/daviddavis/foreman-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/daviddavis/foreman-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daviddavis/foreman-tasks/labels{/name}","releases_url":"https://api.github.com/repos/daviddavis/foreman-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/daviddavis/foreman-tasks/deployments","created_at":"2014-06-30T21:08:52Z","updated_at":"2016-05-18T21:25:39Z","pushed_at":"2016-06-02T19:29:52Z","git_url":"git://github.com/daviddavis/foreman-tasks.git","ssh_url":"git@github.com:daviddavis/foreman-tasks.git","clone_url":"https://github.com/daviddavis/foreman-tasks.git","svn_url":"https://github.com/daviddavis/foreman-tasks","homepage":null,"size":481,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"theforeman:master","ref":"master","sha":"a7041841d34a0cb709b40fbfaa5251be6f6ecf0c","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":14981691,"name":"foreman-tasks","full_name":"theforeman/foreman-tasks","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman-tasks","description":"Tasks management engine and plugin for Foreman","fork":false,"url":"https://api.github.com/repos/theforeman/foreman-tasks","forks_url":"https://api.github.com/repos/theforeman/foreman-tasks/forks","keys_url":"https://api.github.com/repos/theforeman/foreman-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman-tasks/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman-tasks/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman-tasks/events","assignees_url":"https://api.github.com/repos/theforeman/foreman-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman-tasks/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman-tasks/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman-tasks/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman-tasks/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman-tasks/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman-tasks/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman-tasks/merges","archive_url":"https://api.github.com/repos/theforeman/foreman-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman-tasks/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman-tasks/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman-tasks/deployments","created_at":"2013-12-06T11:52:00Z","updated_at":"2016-01-12T01:30:49Z","pushed_at":"2016-06-28T10:59:27Z","git_url":"git://github.com/theforeman/foreman-tasks.git","ssh_url":"git@github.com:theforeman/foreman-tasks.git","clone_url":"https://github.com/theforeman/foreman-tasks.git","svn_url":"https://github.com/theforeman/foreman-tasks","homepage":"http://projects.theforeman.org/projects/foreman-tasks/","size":552,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":7,"forks":37,"open_issues":7,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186"},"html":{"href":"https://github.com/theforeman/foreman-tasks/pull/186"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/issues/186"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/statuses/8ea8416c5ab033f5acbe939621d0affe8f17702b"}}}}
{"actor":{"display_login":"daviddavis"}}