{"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/48294002","id":48294002,"diff_hunk":"@@ -117,6 +122,14 @@ def create\n       respond_for_show(:resource => repository)\n     end\n \n+    api :GET, \"/repositories/repository_types\", N_(\"Show the available repository types\")\n+    param :creatable, :bool, :desc => N_(\"When set to 'True' repository types that are creatable will be returned\")\n+    def repository_types\n+      creatable = (params[:creatable] || '').downcase == \"true\"","path":"app/controllers/katello/api/v2/repositories_controller.rb","position":19,"original_position":19,"commit_id":"18f36274b2cc03b82139f55046a4aded06b4a816","original_commit_id":"18f36274b2cc03b82139f55046a4aded06b4a816","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","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":"you can use:  :Foreman::Cast.to_bool() for this","created_at":"2015-12-22T20:22:35Z","updated_at":"2015-12-22T20:22:35Z","html_url":"https://github.com/Katello/katello/pull/5570#discussion_r48294002","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/5570","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/48294002"},"html":{"href":"https://github.com/Katello/katello/pull/5570#discussion_r48294002"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/5570"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5570","id":49872446,"html_url":"https://github.com/Katello/katello/pull/5570","diff_url":"https://github.com/Katello/katello/pull/5570.diff","patch_url":"https://github.com/Katello/katello/pull/5570.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/5570","number":5570,"state":"open","locked":false,"title":"Fixes #12408 - Create repos of supported types","user":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"body":"We need to have ability to allow creation of repos based on available\r\ncontent types. This is due to the fact that content types like 'ostree'\r\nare going to be availble only for specific arches. We need logic to get\r\na list of supported content types and only allow creations of those.","created_at":"2015-11-05T19:58:24Z","updated_at":"2015-12-22T20:22:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e144a457ad4f8c76a7a078949b9269731cf03c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/5570/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/5570/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5570/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/18f36274b2cc03b82139f55046a4aded06b4a816","head":{"label":"parthaa:plugin","ref":"plugin","sha":"18f36274b2cc03b82139f55046a4aded06b4a816","user":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"repo":{"id":4150075,"name":"katello","full_name":"parthaa/katello","owner":{"login":"parthaa","id":1069779,"avatar_url":"https://avatars.githubusercontent.com/u/1069779?v=3","gravatar_id":"","url":"https://api.github.com/users/parthaa","html_url":"https://github.com/parthaa","followers_url":"https://api.github.com/users/parthaa/followers","following_url":"https://api.github.com/users/parthaa/following{/other_user}","gists_url":"https://api.github.com/users/parthaa/gists{/gist_id}","starred_url":"https://api.github.com/users/parthaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parthaa/subscriptions","organizations_url":"https://api.github.com/users/parthaa/orgs","repos_url":"https://api.github.com/users/parthaa/repos","events_url":"https://api.github.com/users/parthaa/events{/privacy}","received_events_url":"https://api.github.com/users/parthaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parthaa/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":true,"url":"https://api.github.com/repos/parthaa/katello","forks_url":"https://api.github.com/repos/parthaa/katello/forks","keys_url":"https://api.github.com/repos/parthaa/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parthaa/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parthaa/katello/teams","hooks_url":"https://api.github.com/repos/parthaa/katello/hooks","issue_events_url":"https://api.github.com/repos/parthaa/katello/issues/events{/number}","events_url":"https://api.github.com/repos/parthaa/katello/events","assignees_url":"https://api.github.com/repos/parthaa/katello/assignees{/user}","branches_url":"https://api.github.com/repos/parthaa/katello/branches{/branch}","tags_url":"https://api.github.com/repos/parthaa/katello/tags","blobs_url":"https://api.github.com/repos/parthaa/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parthaa/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parthaa/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/parthaa/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parthaa/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/parthaa/katello/languages","stargazers_url":"https://api.github.com/repos/parthaa/katello/stargazers","contributors_url":"https://api.github.com/repos/parthaa/katello/contributors","subscribers_url":"https://api.github.com/repos/parthaa/katello/subscribers","subscription_url":"https://api.github.com/repos/parthaa/katello/subscription","commits_url":"https://api.github.com/repos/parthaa/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/parthaa/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/parthaa/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/parthaa/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/parthaa/katello/contents/{+path}","compare_url":"https://api.github.com/repos/parthaa/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parthaa/katello/merges","archive_url":"https://api.github.com/repos/parthaa/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parthaa/katello/downloads","issues_url":"https://api.github.com/repos/parthaa/katello/issues{/number}","pulls_url":"https://api.github.com/repos/parthaa/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/parthaa/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/parthaa/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parthaa/katello/labels{/name}","releases_url":"https://api.github.com/repos/parthaa/katello/releases{/id}","created_at":"2012-04-26T17:15:07Z","updated_at":"2015-08-11T19:20:30Z","pushed_at":"2015-12-22T19:34:07Z","git_url":"git://github.com/parthaa/katello.git","ssh_url":"git@github.com:parthaa/katello.git","clone_url":"https://github.com/parthaa/katello.git","svn_url":"https://github.com/parthaa/katello","homepage":"katello.org","size":69031,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"Katello:master","ref":"master","sha":"37cd4d9b39adfed1a600c5cbc30d8d8d17f5045e","user":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"repo":{"id":4007018,"name":"katello","full_name":"Katello/katello","owner":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Katello/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":false,"url":"https://api.github.com/repos/Katello/katello","forks_url":"https://api.github.com/repos/Katello/katello/forks","keys_url":"https://api.github.com/repos/Katello/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katello/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katello/katello/teams","hooks_url":"https://api.github.com/repos/Katello/katello/hooks","issue_events_url":"https://api.github.com/repos/Katello/katello/issues/events{/number}","events_url":"https://api.github.com/repos/Katello/katello/events","assignees_url":"https://api.github.com/repos/Katello/katello/assignees{/user}","branches_url":"https://api.github.com/repos/Katello/katello/branches{/branch}","tags_url":"https://api.github.com/repos/Katello/katello/tags","blobs_url":"https://api.github.com/repos/Katello/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katello/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katello/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katello/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/Katello/katello/languages","stargazers_url":"https://api.github.com/repos/Katello/katello/stargazers","contributors_url":"https://api.github.com/repos/Katello/katello/contributors","subscribers_url":"https://api.github.com/repos/Katello/katello/subscribers","subscription_url":"https://api.github.com/repos/Katello/katello/subscription","commits_url":"https://api.github.com/repos/Katello/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katello/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katello/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katello/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/Katello/katello/contents/{+path}","compare_url":"https://api.github.com/repos/Katello/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katello/katello/merges","archive_url":"https://api.github.com/repos/Katello/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katello/katello/downloads","issues_url":"https://api.github.com/repos/Katello/katello/issues{/number}","pulls_url":"https://api.github.com/repos/Katello/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/Katello/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/Katello/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katello/katello/labels{/name}","releases_url":"https://api.github.com/repos/Katello/katello/releases{/id}","created_at":"2012-04-12T16:59:08Z","updated_at":"2015-12-15T14:32:48Z","pushed_at":"2015-12-22T19:59:34Z","git_url":"git://github.com/Katello/katello.git","ssh_url":"git@github.com:Katello/katello.git","clone_url":"https://github.com/Katello/katello.git","svn_url":"https://github.com/Katello/katello","homepage":"katello.org","size":89016,"stargazers_count":171,"watchers_count":171,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":100,"forks":117,"open_issues":100,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/5570"},"html":{"href":"https://github.com/Katello/katello/pull/5570"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/5570"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/5570/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/5570/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/5570/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/18f36274b2cc03b82139f55046a4aded06b4a816"}}}}