{"action":"created","comment":{"url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/comments/100091916","pull_request_review_id":20784932,"id":100091916,"diff_hunk":"@@ -0,0 +1,160 @@\n+<?php\n+\n+/*\n+ * This file is part of the Sonata Project package.\n+ *\n+ * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace Sonata\\SeoBundle\\RobotsTxt;\n+\n+/**\n+ * Class to represent robots.txt","path":"RobotsTxt/RobotsTxt.php","position":15,"original_position":15,"commit_id":"926673c2bf15166dccb0a439a2013e6d3c78c55d","original_commit_id":"926673c2bf15166dccb0a439a2013e6d3c78c55d","user":{"login":"greg0ire","id":657779,"avatar_url":"https://avatars.githubusercontent.com/u/657779?v=3","gravatar_id":"","url":"https://api.github.com/users/greg0ire","html_url":"https://github.com/greg0ire","followers_url":"https://api.github.com/users/greg0ire/followers","following_url":"https://api.github.com/users/greg0ire/following{/other_user}","gists_url":"https://api.github.com/users/greg0ire/gists{/gist_id}","starred_url":"https://api.github.com/users/greg0ire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg0ire/subscriptions","organizations_url":"https://api.github.com/users/greg0ire/orgs","repos_url":"https://api.github.com/users/greg0ire/repos","events_url":"https://api.github.com/users/greg0ire/events{/privacy}","received_events_url":"https://api.github.com/users/greg0ire/received_events","type":"User","site_admin":false},"body":"Not very useful… I'd remove it.","created_at":"2017-02-08T15:32:14Z","updated_at":"2017-02-08T15:34:07Z","html_url":"https://github.com/sonata-project/SonataSeoBundle/pull/191#discussion_r100091916","pull_request_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191","_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/comments/100091916"},"html":{"href":"https://github.com/sonata-project/SonataSeoBundle/pull/191#discussion_r100091916"},"pull_request":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191"}}},"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191","id":105238283,"html_url":"https://github.com/sonata-project/SonataSeoBundle/pull/191","diff_url":"https://github.com/sonata-project/SonataSeoBundle/pull/191.diff","patch_url":"https://github.com/sonata-project/SonataSeoBundle/pull/191.patch","issue_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues/191","number":191,"state":"open","locked":false,"title":"Robotstxt feature","user":{"login":"Nightbr","id":4228646,"avatar_url":"https://avatars.githubusercontent.com/u/4228646?v=3","gravatar_id":"","url":"https://api.github.com/users/Nightbr","html_url":"https://github.com/Nightbr","followers_url":"https://api.github.com/users/Nightbr/followers","following_url":"https://api.github.com/users/Nightbr/following{/other_user}","gists_url":"https://api.github.com/users/Nightbr/gists{/gist_id}","starred_url":"https://api.github.com/users/Nightbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nightbr/subscriptions","organizations_url":"https://api.github.com/users/Nightbr/orgs","repos_url":"https://api.github.com/users/Nightbr/repos","events_url":"https://api.github.com/users/Nightbr/events{/privacy}","received_events_url":"https://api.github.com/users/Nightbr/received_events","type":"User","site_admin":false},"body":"I am targetting this branch, because its a new feature.\r\n\r\nCloses #190\r\n\r\n## Changelog\r\n\r\n```markdown\r\n### Added\r\n- Added new feature to generate robots.txt\r\n```\r\n\r\n## Subject\r\n\r\nHere is my pull request to the robots.txt feature.\r\n\r\nI made some tests and the documentation.\r\n\r\nFeel free to review it and ask me some modification if necessary.\r\n\r\nI have tested it in my app and it works:\r\n\r\nconfig.yml\r\n``` YAML\r\nsonata_seo:\r\n    robotstxt:\r\n        -\r\n            user-agent:\r\n                - \"*\"\r\n            crawl-delay: 10\r\n            access-control:\r\n                - disallow: /admin\r\n                - disallow: /sonatadmin\r\n                - allow: /api/doc\r\n                - disallow: /api\r\n            sitemap:\r\n                - https://www.example.com/sitemap_index.xml\r\n            host: www.example.com\r\n        -\r\n            user-agent: [BadRobot, GoogleBot]\r\n            access-control:\r\n                - disallow: /private\r\n```\r\n\r\nExecuting the command `php app/console sonata:seo:robotstxt web --env=dev`\r\n\r\nand it generates in the web folder the robots.txt\r\n\r\n``` TXT\r\n# www.robotstxt.org/\r\n# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449\r\n\r\nUser-agent: *\r\nCrawl-delay: 10\r\nDisallow: /admin\r\nDisallow: /sonatadmin\r\nAllow: /api/doc\r\nDisallow: /api\r\nSitemap: https://www.example.com/sitemap_index.xml\r\nHost: www.example.com\r\n\r\nUser-agent: BadRobot\r\nUser-agent: GoogleBot\r\nDisallow: /private\r\n```\r\n\r\n:ok_hand: \r\n","created_at":"2017-02-08T15:22:41Z","updated_at":"2017-02-08T15:34:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"485c80c3b9c4183bf068266d886232e54b16cb96","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191/commits","review_comments_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191/comments","review_comment_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues/191/comments","statuses_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/statuses/926673c2bf15166dccb0a439a2013e6d3c78c55d","head":{"label":"Nightbr:robotstxt","ref":"robotstxt","sha":"926673c2bf15166dccb0a439a2013e6d3c78c55d","user":{"login":"Nightbr","id":4228646,"avatar_url":"https://avatars.githubusercontent.com/u/4228646?v=3","gravatar_id":"","url":"https://api.github.com/users/Nightbr","html_url":"https://github.com/Nightbr","followers_url":"https://api.github.com/users/Nightbr/followers","following_url":"https://api.github.com/users/Nightbr/following{/other_user}","gists_url":"https://api.github.com/users/Nightbr/gists{/gist_id}","starred_url":"https://api.github.com/users/Nightbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nightbr/subscriptions","organizations_url":"https://api.github.com/users/Nightbr/orgs","repos_url":"https://api.github.com/users/Nightbr/repos","events_url":"https://api.github.com/users/Nightbr/events{/privacy}","received_events_url":"https://api.github.com/users/Nightbr/received_events","type":"User","site_admin":false},"repo":{"id":81318206,"name":"SonataSeoBundle","full_name":"Nightbr/SonataSeoBundle","owner":{"login":"Nightbr","id":4228646,"avatar_url":"https://avatars.githubusercontent.com/u/4228646?v=3","gravatar_id":"","url":"https://api.github.com/users/Nightbr","html_url":"https://github.com/Nightbr","followers_url":"https://api.github.com/users/Nightbr/followers","following_url":"https://api.github.com/users/Nightbr/following{/other_user}","gists_url":"https://api.github.com/users/Nightbr/gists{/gist_id}","starred_url":"https://api.github.com/users/Nightbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nightbr/subscriptions","organizations_url":"https://api.github.com/users/Nightbr/orgs","repos_url":"https://api.github.com/users/Nightbr/repos","events_url":"https://api.github.com/users/Nightbr/events{/privacy}","received_events_url":"https://api.github.com/users/Nightbr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nightbr/SonataSeoBundle","description":"SEO Helpers","fork":true,"url":"https://api.github.com/repos/Nightbr/SonataSeoBundle","forks_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/forks","keys_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/teams","hooks_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/hooks","issue_events_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/issues/events{/number}","events_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/events","assignees_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/assignees{/user}","branches_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/branches{/branch}","tags_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/tags","blobs_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/languages","stargazers_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/stargazers","contributors_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/contributors","subscribers_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/subscribers","subscription_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/subscription","commits_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/contents/{+path}","compare_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/merges","archive_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/downloads","issues_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/issues{/number}","pulls_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/labels{/name}","releases_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/releases{/id}","deployments_url":"https://api.github.com/repos/Nightbr/SonataSeoBundle/deployments","created_at":"2017-02-08T10:34:19Z","updated_at":"2017-02-08T10:34:21Z","pushed_at":"2017-02-08T15:16:59Z","git_url":"git://github.com/Nightbr/SonataSeoBundle.git","ssh_url":"git@github.com:Nightbr/SonataSeoBundle.git","clone_url":"https://github.com/Nightbr/SonataSeoBundle.git","svn_url":"https://github.com/Nightbr/SonataSeoBundle","homepage":"http://sonata-project.org/bundles/seo","size":351,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"2.x"}},"base":{"label":"sonata-project:2.x","ref":"2.x","sha":"7288c8bb4784f241d038447ebd075a2af7cc808e","user":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"repo":{"id":3471001,"name":"SonataSeoBundle","full_name":"sonata-project/SonataSeoBundle","owner":{"login":"sonata-project","id":404157,"avatar_url":"https://avatars.githubusercontent.com/u/404157?v=3","gravatar_id":"","url":"https://api.github.com/users/sonata-project","html_url":"https://github.com/sonata-project","followers_url":"https://api.github.com/users/sonata-project/followers","following_url":"https://api.github.com/users/sonata-project/following{/other_user}","gists_url":"https://api.github.com/users/sonata-project/gists{/gist_id}","starred_url":"https://api.github.com/users/sonata-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonata-project/subscriptions","organizations_url":"https://api.github.com/users/sonata-project/orgs","repos_url":"https://api.github.com/users/sonata-project/repos","events_url":"https://api.github.com/users/sonata-project/events{/privacy}","received_events_url":"https://api.github.com/users/sonata-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonata-project/SonataSeoBundle","description":"SEO Helpers","fork":false,"url":"https://api.github.com/repos/sonata-project/SonataSeoBundle","forks_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/forks","keys_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/teams","hooks_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/hooks","issue_events_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues/events{/number}","events_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/events","assignees_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/assignees{/user}","branches_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/branches{/branch}","tags_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/tags","blobs_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/languages","stargazers_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/stargazers","contributors_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/contributors","subscribers_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/subscribers","subscription_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/subscription","commits_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/contents/{+path}","compare_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/merges","archive_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/downloads","issues_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues{/number}","pulls_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/labels{/name}","releases_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/releases{/id}","deployments_url":"https://api.github.com/repos/sonata-project/SonataSeoBundle/deployments","created_at":"2012-02-17T15:19:31Z","updated_at":"2017-01-25T22:50:50Z","pushed_at":"2017-02-08T15:22:42Z","git_url":"git://github.com/sonata-project/SonataSeoBundle.git","ssh_url":"git@github.com:sonata-project/SonataSeoBundle.git","clone_url":"https://github.com/sonata-project/SonataSeoBundle.git","svn_url":"https://github.com/sonata-project/SonataSeoBundle","homepage":"http://sonata-project.org/bundles/seo","size":348,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":14,"forks":72,"open_issues":14,"watchers":57,"default_branch":"2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191"},"html":{"href":"https://github.com/sonata-project/SonataSeoBundle/pull/191"},"issue":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues/191"},"comments":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/sonata-project/SonataSeoBundle/statuses/926673c2bf15166dccb0a439a2013e6d3c78c55d"}}}}
{"actor":{"display_login":"greg0ire"}}