{"action":"created","comment":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments/35494578","id":35494578,"diff_hunk":"@@ -0,0 +1,38 @@\n+﻿using System;\n+using System.Linq;\n+using System.Web.Routing;\n+using Orchard.Autoroute.Services;\n+using Orchard.ContentManagement;\n+using Orchard.Recipes.Models;\n+using Orchard.Recipes.Services;\n+\n+namespace Orchard.Autoroute.ImportExport {\n+    public class HomeAliasImportHandler : Component, IRecipeHandler {\n+        private readonly IHomeAliasService _homeAliasService;\n+        private readonly IContentManager _contentManager;\n+\n+        public HomeAliasImportHandler(IHomeAliasService homeAliasService, IContentManager contentManager) {\n+            _homeAliasService = homeAliasService;\n+            _contentManager = contentManager;\n+        }\n+\n+        public void ExecuteRecipeStep(RecipeContext recipeContext) {\n+            if (!String.Equals(recipeContext.RecipeStep.Name, \"HomeAlias\", StringComparison.OrdinalIgnoreCase)) {","path":"src/Orchard.Web/Modules/Orchard.Autoroute/ImportExport/HomeAliasImportHandler.cs","position":20,"original_position":20,"commit_id":"805de7d563eba9aa2fda0975d489bacad10c5b46","original_commit_id":"6566c118802f5cddca4d9de46ff9b2cbd575a70b","user":{"login":"sfmskywalker","id":938393,"avatar_url":"https://avatars.githubusercontent.com/u/938393?v=3","gravatar_id":"","url":"https://api.github.com/users/sfmskywalker","html_url":"https://github.com/sfmskywalker","followers_url":"https://api.github.com/users/sfmskywalker/followers","following_url":"https://api.github.com/users/sfmskywalker/following{/other_user}","gists_url":"https://api.github.com/users/sfmskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sfmskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfmskywalker/subscriptions","organizations_url":"https://api.github.com/users/sfmskywalker/orgs","repos_url":"https://api.github.com/users/sfmskywalker/repos","events_url":"https://api.github.com/users/sfmskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sfmskywalker/received_events","type":"User","site_admin":false},"body":"Do we have a coding convention guide somewhere that we can update when there is consensus?","created_at":"2015-07-26T16:20:04Z","updated_at":"2015-07-26T16:20:04Z","html_url":"https://github.com/OrchardCMS/Orchard/pull/5567#discussion_r35494578","pull_request_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567","_links":{"self":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments/35494578"},"html":{"href":"https://github.com/OrchardCMS/Orchard/pull/5567#discussion_r35494578"},"pull_request":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567"}}},"pull_request":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567","id":40773511,"html_url":"https://github.com/OrchardCMS/Orchard/pull/5567","diff_url":"https://github.com/OrchardCMS/Orchard/pull/5567.diff","patch_url":"https://github.com/OrchardCMS/Orchard/pull/5567.patch","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5567","number":5567,"state":"open","locked":false,"title":"Issue/homepage alias","user":{"login":"sfmskywalker","id":938393,"avatar_url":"https://avatars.githubusercontent.com/u/938393?v=3","gravatar_id":"","url":"https://api.github.com/users/sfmskywalker","html_url":"https://github.com/sfmskywalker","followers_url":"https://api.github.com/users/sfmskywalker/followers","following_url":"https://api.github.com/users/sfmskywalker/following{/other_user}","gists_url":"https://api.github.com/users/sfmskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sfmskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfmskywalker/subscriptions","organizations_url":"https://api.github.com/users/sfmskywalker/orgs","repos_url":"https://api.github.com/users/sfmskywalker/repos","events_url":"https://api.github.com/users/sfmskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sfmskywalker/received_events","type":"User","site_admin":false},"body":"This fixes issue #5504 and changes the way we store the homepage by creating a dedicated home alias that can point to any route that is supposed to be the home page.","created_at":"2015-07-24T13:15:43Z","updated_at":"2015-07-26T16:20:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd1aa4c02e99de5e81363bd54606916a602f6bca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567/commits","review_comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567/comments","review_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5567/comments","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/805de7d563eba9aa2fda0975d489bacad10c5b46","head":{"label":"OrchardCMS:issue/homepage-alias","ref":"issue/homepage-alias","sha":"805de7d563eba9aa2fda0975d489bacad10c5b46","user":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":33889464,"name":"Orchard","full_name":"OrchardCMS/Orchard","owner":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OrchardCMS/Orchard","description":"Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.","fork":false,"url":"https://api.github.com/repos/OrchardCMS/Orchard","forks_url":"https://api.github.com/repos/OrchardCMS/Orchard/forks","keys_url":"https://api.github.com/repos/OrchardCMS/Orchard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OrchardCMS/Orchard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OrchardCMS/Orchard/teams","hooks_url":"https://api.github.com/repos/OrchardCMS/Orchard/hooks","issue_events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/events{/number}","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/events","assignees_url":"https://api.github.com/repos/OrchardCMS/Orchard/assignees{/user}","branches_url":"https://api.github.com/repos/OrchardCMS/Orchard/branches{/branch}","tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/tags","blobs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/refs{/sha}","trees_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/{sha}","languages_url":"https://api.github.com/repos/OrchardCMS/Orchard/languages","stargazers_url":"https://api.github.com/repos/OrchardCMS/Orchard/stargazers","contributors_url":"https://api.github.com/repos/OrchardCMS/Orchard/contributors","subscribers_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscribers","subscription_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscription","commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/commits{/sha}","git_commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/commits{/sha}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/comments{/number}","issue_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments{/number}","contents_url":"https://api.github.com/repos/OrchardCMS/Orchard/contents/{+path}","compare_url":"https://api.github.com/repos/OrchardCMS/Orchard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OrchardCMS/Orchard/merges","archive_url":"https://api.github.com/repos/OrchardCMS/Orchard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OrchardCMS/Orchard/downloads","issues_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues{/number}","pulls_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls{/number}","milestones_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones{/number}","notifications_url":"https://api.github.com/repos/OrchardCMS/Orchard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/labels{/name}","releases_url":"https://api.github.com/repos/OrchardCMS/Orchard/releases{/id}","created_at":"2015-04-13T19:35:52Z","updated_at":"2015-07-26T08:21:46Z","pushed_at":"2015-07-26T16:16:41Z","git_url":"git://github.com/OrchardCMS/Orchard.git","ssh_url":"git@github.com:OrchardCMS/Orchard.git","clone_url":"https://github.com/OrchardCMS/Orchard.git","svn_url":"https://github.com/OrchardCMS/Orchard","homepage":"http://orchardproject.net","size":187474,"stargazers_count":357,"watchers_count":357,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":225,"mirror_url":null,"open_issues_count":1454,"forks":225,"open_issues":1454,"watchers":357,"default_branch":"dev"}},"base":{"label":"OrchardCMS:dev","ref":"dev","sha":"d6e96252e7d2e37b242354ccd9520c579ae9c0eb","user":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":33889464,"name":"Orchard","full_name":"OrchardCMS/Orchard","owner":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OrchardCMS/Orchard","description":"Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.","fork":false,"url":"https://api.github.com/repos/OrchardCMS/Orchard","forks_url":"https://api.github.com/repos/OrchardCMS/Orchard/forks","keys_url":"https://api.github.com/repos/OrchardCMS/Orchard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OrchardCMS/Orchard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OrchardCMS/Orchard/teams","hooks_url":"https://api.github.com/repos/OrchardCMS/Orchard/hooks","issue_events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/events{/number}","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/events","assignees_url":"https://api.github.com/repos/OrchardCMS/Orchard/assignees{/user}","branches_url":"https://api.github.com/repos/OrchardCMS/Orchard/branches{/branch}","tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/tags","blobs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/refs{/sha}","trees_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/{sha}","languages_url":"https://api.github.com/repos/OrchardCMS/Orchard/languages","stargazers_url":"https://api.github.com/repos/OrchardCMS/Orchard/stargazers","contributors_url":"https://api.github.com/repos/OrchardCMS/Orchard/contributors","subscribers_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscribers","subscription_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscription","commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/commits{/sha}","git_commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/commits{/sha}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/comments{/number}","issue_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments{/number}","contents_url":"https://api.github.com/repos/OrchardCMS/Orchard/contents/{+path}","compare_url":"https://api.github.com/repos/OrchardCMS/Orchard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OrchardCMS/Orchard/merges","archive_url":"https://api.github.com/repos/OrchardCMS/Orchard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OrchardCMS/Orchard/downloads","issues_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues{/number}","pulls_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls{/number}","milestones_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones{/number}","notifications_url":"https://api.github.com/repos/OrchardCMS/Orchard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/labels{/name}","releases_url":"https://api.github.com/repos/OrchardCMS/Orchard/releases{/id}","created_at":"2015-04-13T19:35:52Z","updated_at":"2015-07-26T08:21:46Z","pushed_at":"2015-07-26T16:16:41Z","git_url":"git://github.com/OrchardCMS/Orchard.git","ssh_url":"git@github.com:OrchardCMS/Orchard.git","clone_url":"https://github.com/OrchardCMS/Orchard.git","svn_url":"https://github.com/OrchardCMS/Orchard","homepage":"http://orchardproject.net","size":187474,"stargazers_count":357,"watchers_count":357,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":225,"mirror_url":null,"open_issues_count":1454,"forks":225,"open_issues":1454,"watchers":357,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567"},"html":{"href":"https://github.com/OrchardCMS/Orchard/pull/5567"},"issue":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5567"},"comments":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5567/comments"},"review_comments":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567/comments"},"review_comment":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5567/commits"},"statuses":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/805de7d563eba9aa2fda0975d489bacad10c5b46"}}}}