{"action":"created","comment":{"url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/comments/95024018","pull_request_review_id":15569875,"id":95024018,"diff_hunk":"@@ -0,0 +1,123 @@\n+---\n+layout: post\n+title: \"Why articles with code examples should be CI tested\"\n+perex: \"I know many great articles, that go right to the point and when I use code examples, they work. But when I recommend these article to people I mentor, I realize they are 2 years old and probably not working any more. From hero to zero. Today I will show how to keep them alive lot longer with minimal effort.\"\n+author: 1\n+lang: en\n+---\n+\n+Do you know [Awesome lists](https://github.com/sindresorhus/awesome/)? If not, got check them. They collect best sources about some topic. When I try to learn something new, I start on Github looking for \"awesome <technology>\". I recommend at least briefly checking them.\n+ \n+The idea behind Awesome list is to have source that:\n+\n+- **are up-to-date with modern technology**\n+- **are the best in the field**\n+- **are easy to learn by beginners**\n+\n+\n+## How \"Awesome Doctrine\" was Born\n+\n+When I was working with Nette, I met **Doctrine ORM** thanks to [Filip Procházka](https://filip-prochazka.com/) and his great [Kdyby](http://github.com/Kdyby) open-source boom.\n+\n+One day I decided to learn more about Doctrine. Documentation looked like a manual for experts rather than something I could learn from. I was also curious **how people use Doctrine in real applications, how to overcome performance issues, some cool features and pro tips**.\n+ \n+I was already familiar with [Awesome PHP](https://github.com/ziadoz/awesome-php) by [ziadoz](https://github.com/ziadoz), so I looked for \"Awesome Doctrine\". \n+\n+0 results. Really? Why nobody made this? It's so obvious this would be useful.\n+\n+Ah, it's my job then. And the joyful hell started.\n+\n+\n+### Many Source on Many Versions\n+ \n+I was lucky to found many articles about Doctrine. One about Filters, Events or Criteria. But when I tried to use the code, it often didn't work. After digging I found out there was version 1.0, which was completely different. ","path":"source/_posts/2017/2017-01-20-why-articles-with-code-examples-should-be-CI-tested.md","position":33,"original_position":33,"commit_id":"75662b18ca378714f3730e18a961a048b974c08b","original_commit_id":"75662b18ca378714f3730e18a961a048b974c08b","user":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"body":"lucky to find\r\n\r\nOne about Filters, Events or Criteria. => One about Filters, others about Events or Criteria.","created_at":"2017-01-06T21:31:01Z","updated_at":"2017-01-06T21:56:34Z","html_url":"https://github.com/pehapkari/pehapkari.cz/pull/160#discussion_r95024018","pull_request_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160","_links":{"self":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/comments/95024018"},"html":{"href":"https://github.com/pehapkari/pehapkari.cz/pull/160#discussion_r95024018"},"pull_request":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160","id":100460786,"html_url":"https://github.com/pehapkari/pehapkari.cz/pull/160","diff_url":"https://github.com/pehapkari/pehapkari.cz/pull/160.diff","patch_url":"https://github.com/pehapkari/pehapkari.cz/pull/160.patch","issue_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/160","number":160,"state":"open","locked":false,"title":"[blog] tested article RAW","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"body":"It is time, ref: https://twitter.com/hrachcz/status/816940948114571264","created_at":"2017-01-06T13:44:14Z","updated_at":"2017-01-06T21:56:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"634c9d965a00b936e7bb37d6b6858d1025a83722","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160/commits","review_comments_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160/comments","review_comment_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/160/comments","statuses_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/statuses/75662b18ca378714f3730e18a961a048b974c08b","head":{"label":"pehapkari:blog-tested-article","ref":"blog-tested-article","sha":"75662b18ca378714f3730e18a961a048b974c08b","user":{"login":"pehapkari","id":12694503,"avatar_url":"https://avatars.githubusercontent.com/u/12694503?v=3","gravatar_id":"","url":"https://api.github.com/users/pehapkari","html_url":"https://github.com/pehapkari","followers_url":"https://api.github.com/users/pehapkari/followers","following_url":"https://api.github.com/users/pehapkari/following{/other_user}","gists_url":"https://api.github.com/users/pehapkari/gists{/gist_id}","starred_url":"https://api.github.com/users/pehapkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pehapkari/subscriptions","organizations_url":"https://api.github.com/users/pehapkari/orgs","repos_url":"https://api.github.com/users/pehapkari/repos","events_url":"https://api.github.com/users/pehapkari/events{/privacy}","received_events_url":"https://api.github.com/users/pehapkari/received_events","type":"Organization","site_admin":false},"repo":{"id":41292979,"name":"pehapkari.cz","full_name":"pehapkari/pehapkari.cz","owner":{"login":"pehapkari","id":12694503,"avatar_url":"https://avatars.githubusercontent.com/u/12694503?v=3","gravatar_id":"","url":"https://api.github.com/users/pehapkari","html_url":"https://github.com/pehapkari","followers_url":"https://api.github.com/users/pehapkari/followers","following_url":"https://api.github.com/users/pehapkari/following{/other_user}","gists_url":"https://api.github.com/users/pehapkari/gists{/gist_id}","starred_url":"https://api.github.com/users/pehapkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pehapkari/subscriptions","organizations_url":"https://api.github.com/users/pehapkari/orgs","repos_url":"https://api.github.com/users/pehapkari/repos","events_url":"https://api.github.com/users/pehapkari/events{/privacy}","received_events_url":"https://api.github.com/users/pehapkari/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pehapkari/pehapkari.cz","description":"Website of Czech and Slovak PHP Community","fork":false,"url":"https://api.github.com/repos/pehapkari/pehapkari.cz","forks_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/forks","keys_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/teams","hooks_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/hooks","issue_events_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/events{/number}","events_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/events","assignees_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/assignees{/user}","branches_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/branches{/branch}","tags_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/tags","blobs_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/refs{/sha}","trees_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/statuses/{sha}","languages_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/languages","stargazers_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/stargazers","contributors_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/contributors","subscribers_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/subscribers","subscription_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/subscription","commits_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/commits{/sha}","git_commits_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/commits{/sha}","comments_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/comments{/number}","issue_comment_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/comments{/number}","contents_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/contents/{+path}","compare_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/merges","archive_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/downloads","issues_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues{/number}","pulls_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls{/number}","milestones_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/milestones{/number}","notifications_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/labels{/name}","releases_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/releases{/id}","deployments_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/deployments","created_at":"2015-08-24T08:59:03Z","updated_at":"2017-01-06T16:47:14Z","pushed_at":"2017-01-06T16:16:48Z","git_url":"git://github.com/pehapkari/pehapkari.cz.git","ssh_url":"git@github.com:pehapkari/pehapkari.cz.git","clone_url":"https://github.com/pehapkari/pehapkari.cz.git","svn_url":"https://github.com/pehapkari/pehapkari.cz","homepage":"http://pehapkari.cz","size":5263,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":62,"mirror_url":null,"open_issues_count":5,"forks":62,"open_issues":5,"watchers":12,"default_branch":"master"}},"base":{"label":"pehapkari:master","ref":"master","sha":"db0ef0db0263e01b612434d74356cd57e8c5da0a","user":{"login":"pehapkari","id":12694503,"avatar_url":"https://avatars.githubusercontent.com/u/12694503?v=3","gravatar_id":"","url":"https://api.github.com/users/pehapkari","html_url":"https://github.com/pehapkari","followers_url":"https://api.github.com/users/pehapkari/followers","following_url":"https://api.github.com/users/pehapkari/following{/other_user}","gists_url":"https://api.github.com/users/pehapkari/gists{/gist_id}","starred_url":"https://api.github.com/users/pehapkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pehapkari/subscriptions","organizations_url":"https://api.github.com/users/pehapkari/orgs","repos_url":"https://api.github.com/users/pehapkari/repos","events_url":"https://api.github.com/users/pehapkari/events{/privacy}","received_events_url":"https://api.github.com/users/pehapkari/received_events","type":"Organization","site_admin":false},"repo":{"id":41292979,"name":"pehapkari.cz","full_name":"pehapkari/pehapkari.cz","owner":{"login":"pehapkari","id":12694503,"avatar_url":"https://avatars.githubusercontent.com/u/12694503?v=3","gravatar_id":"","url":"https://api.github.com/users/pehapkari","html_url":"https://github.com/pehapkari","followers_url":"https://api.github.com/users/pehapkari/followers","following_url":"https://api.github.com/users/pehapkari/following{/other_user}","gists_url":"https://api.github.com/users/pehapkari/gists{/gist_id}","starred_url":"https://api.github.com/users/pehapkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pehapkari/subscriptions","organizations_url":"https://api.github.com/users/pehapkari/orgs","repos_url":"https://api.github.com/users/pehapkari/repos","events_url":"https://api.github.com/users/pehapkari/events{/privacy}","received_events_url":"https://api.github.com/users/pehapkari/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pehapkari/pehapkari.cz","description":"Website of Czech and Slovak PHP Community","fork":false,"url":"https://api.github.com/repos/pehapkari/pehapkari.cz","forks_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/forks","keys_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/teams","hooks_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/hooks","issue_events_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/events{/number}","events_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/events","assignees_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/assignees{/user}","branches_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/branches{/branch}","tags_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/tags","blobs_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/refs{/sha}","trees_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/statuses/{sha}","languages_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/languages","stargazers_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/stargazers","contributors_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/contributors","subscribers_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/subscribers","subscription_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/subscription","commits_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/commits{/sha}","git_commits_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/git/commits{/sha}","comments_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/comments{/number}","issue_comment_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/comments{/number}","contents_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/contents/{+path}","compare_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/merges","archive_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/downloads","issues_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues{/number}","pulls_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls{/number}","milestones_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/milestones{/number}","notifications_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/labels{/name}","releases_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/releases{/id}","deployments_url":"https://api.github.com/repos/pehapkari/pehapkari.cz/deployments","created_at":"2015-08-24T08:59:03Z","updated_at":"2017-01-06T16:47:14Z","pushed_at":"2017-01-06T16:16:48Z","git_url":"git://github.com/pehapkari/pehapkari.cz.git","ssh_url":"git@github.com:pehapkari/pehapkari.cz.git","clone_url":"https://github.com/pehapkari/pehapkari.cz.git","svn_url":"https://github.com/pehapkari/pehapkari.cz","homepage":"http://pehapkari.cz","size":5263,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":62,"mirror_url":null,"open_issues_count":5,"forks":62,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160"},"html":{"href":"https://github.com/pehapkari/pehapkari.cz/pull/160"},"issue":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/160"},"comments":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/pehapkari/pehapkari.cz/statuses/75662b18ca378714f3730e18a961a048b974c08b"}}}}
{"actor":{"display_login":"enumag"}}