{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/201050372","pull_request_review_id":135476054,"id":201050372,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTA1MDM3Mg==","diff_hunk":"@@ -0,0 +1,56 @@\n+# TRANSLATORS: do not translate\n+desc <<-END_DESC\n+  This task runs predefined upgrade steps.\n+\n+  Examples:\n+    rake upgrade:run\n+    rake upgrade:mark_as_ran TASK_NAME=some_rake_task,another_rake_task\n+\n+END_DESC\n+\n+namespace :upgrade do\n+  task :run => :environment do\n+    ENV['FOREMAN_UPGRADE'] = '1'\n+    tasks = Foreman::Plugin.registered_plugins.values.map{|plugin| plugin.upgrade_tasks}.flatten","path":"lib/tasks/upgrade.rake","position":14,"original_position":14,"commit_id":"3e0e6bfe65c6f75be9c6d53bd6e6b38251824b96","original_commit_id":"3e0e6bfe65c6f75be9c6d53bd6e6b38251824b96","user":{"login":"ekohl","id":155810,"node_id":"MDQ6VXNlcjE1NTgxMA==","avatar_url":"https://avatars0.githubusercontent.com/u/155810?v=4","gravatar_id":"","url":"https://api.github.com/users/ekohl","html_url":"https://github.com/ekohl","followers_url":"https://api.github.com/users/ekohl/followers","following_url":"https://api.github.com/users/ekohl/following{/other_user}","gists_url":"https://api.github.com/users/ekohl/gists{/gist_id}","starred_url":"https://api.github.com/users/ekohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekohl/subscriptions","organizations_url":"https://api.github.com/users/ekohl/orgs","repos_url":"https://api.github.com/users/ekohl/repos","events_url":"https://api.github.com/users/ekohl/events{/privacy}","received_events_url":"https://api.github.com/users/ekohl/received_events","type":"User","site_admin":false},"body":"Using `.map(&:upgrade_tasks)` would shorten it already","created_at":"2018-07-09T15:42:09Z","updated_at":"2018-07-09T15:42:09Z","html_url":"https://github.com/theforeman/foreman/pull/5780#discussion_r201050372","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/5780","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/201050372"},"html":{"href":"https://github.com/theforeman/foreman/pull/5780#discussion_r201050372"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5780"}},"in_reply_to_id":201045953},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/5780","id":199582733,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NTgyNzMz","html_url":"https://github.com/theforeman/foreman/pull/5780","diff_url":"https://github.com/theforeman/foreman/pull/5780.diff","patch_url":"https://github.com/theforeman/foreman/pull/5780.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/5780","number":5780,"state":"open","locked":false,"title":"Fixes #21938 - add plugable upgrade rake task","user":{"login":"jlsherrill","id":395077,"node_id":"MDQ6VXNlcjM5NTA3Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/395077?v=4","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"body":"This commit adds the ability for plugins to define upgrade\r\nrake tasks within the plugin api.  The installer can then run\r\nthe upgrade:run rake task to run them.  Tasks can be defined\r\nto run once or to always run when the upgrade:run master task is\r\nrun.\r\n","created_at":"2018-07-05T20:44:54Z","updated_at":"2018-07-09T15:42:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3348d98eb68952361b43ed8a427c1e1a8033ae9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":79040689,"node_id":"MDU6TGFiZWw3OTA0MDY4OQ==","url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20testing","name":"Needs testing","color":"fbca04","default":false},{"id":79040085,"node_id":"MDU6TGFiZWw3OTA0MDA4NQ==","url":"https://api.github.com/repos/theforeman/foreman/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/5780/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/5780/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/5780/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/3e0e6bfe65c6f75be9c6d53bd6e6b38251824b96","head":{"label":"jlsherrill:21938","ref":"21938","sha":"3e0e6bfe65c6f75be9c6d53bd6e6b38251824b96","user":{"login":"jlsherrill","id":395077,"node_id":"MDQ6VXNlcjM5NTA3Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/395077?v=4","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"repo":{"id":9306701,"node_id":"MDEwOlJlcG9zaXRvcnk5MzA2NzAx","name":"foreman","full_name":"jlsherrill/foreman","owner":{"login":"jlsherrill","id":395077,"node_id":"MDQ6VXNlcjM5NTA3Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/395077?v=4","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlsherrill/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/jlsherrill/foreman","forks_url":"https://api.github.com/repos/jlsherrill/foreman/forks","keys_url":"https://api.github.com/repos/jlsherrill/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlsherrill/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlsherrill/foreman/teams","hooks_url":"https://api.github.com/repos/jlsherrill/foreman/hooks","issue_events_url":"https://api.github.com/repos/jlsherrill/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/jlsherrill/foreman/events","assignees_url":"https://api.github.com/repos/jlsherrill/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/jlsherrill/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/jlsherrill/foreman/tags","blobs_url":"https://api.github.com/repos/jlsherrill/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlsherrill/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlsherrill/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlsherrill/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlsherrill/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/jlsherrill/foreman/languages","stargazers_url":"https://api.github.com/repos/jlsherrill/foreman/stargazers","contributors_url":"https://api.github.com/repos/jlsherrill/foreman/contributors","subscribers_url":"https://api.github.com/repos/jlsherrill/foreman/subscribers","subscription_url":"https://api.github.com/repos/jlsherrill/foreman/subscription","commits_url":"https://api.github.com/repos/jlsherrill/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlsherrill/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlsherrill/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlsherrill/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlsherrill/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/jlsherrill/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlsherrill/foreman/merges","archive_url":"https://api.github.com/repos/jlsherrill/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlsherrill/foreman/downloads","issues_url":"https://api.github.com/repos/jlsherrill/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/jlsherrill/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/jlsherrill/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/jlsherrill/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlsherrill/foreman/labels{/name}","releases_url":"https://api.github.com/repos/jlsherrill/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/jlsherrill/foreman/deployments","created_at":"2013-04-08T20:59:00Z","updated_at":"2014-04-09T23:29:09Z","pushed_at":"2018-07-06T19:40:15Z","git_url":"git://github.com/jlsherrill/foreman.git","ssh_url":"git@github.com:jlsherrill/foreman.git","clone_url":"https://github.com/jlsherrill/foreman.git","svn_url":"https://github.com/jlsherrill/foreman","homepage":"http://theforeman.org","size":47091,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"3baac1fa0e92a3fb4b9b714e083c44e529bf384f","user":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","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":258750,"node_id":"MDEwOlJlcG9zaXRvcnkyNTg3NTA=","name":"foreman","full_name":"theforeman/foreman","owner":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","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","description":"an application that automates the lifecycle of servers ","fork":false,"url":"https://api.github.com/repos/theforeman/foreman","forks_url":"https://api.github.com/repos/theforeman/foreman/forks","keys_url":"https://api.github.com/repos/theforeman/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman/events","assignees_url":"https://api.github.com/repos/theforeman/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman/merges","archive_url":"https://api.github.com/repos/theforeman/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2018-07-09T14:25:56Z","pushed_at":"2018-07-09T14:48:15Z","git_url":"git://github.com/theforeman/foreman.git","ssh_url":"git@github.com:theforeman/foreman.git","clone_url":"https://github.com/theforeman/foreman.git","svn_url":"https://github.com/theforeman/foreman","homepage":"http://theforeman.org","size":75442,"stargazers_count":1457,"watchers_count":1457,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":743,"mirror_url":null,"archived":false,"open_issues_count":129,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":743,"open_issues":129,"watchers":1457,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5780"},"html":{"href":"https://github.com/theforeman/foreman/pull/5780"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/5780"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/5780/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5780/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5780/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/3e0e6bfe65c6f75be9c6d53bd6e6b38251824b96"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ekohl"}}