{"action":"created","comment":{"url":"https://api.github.com/repos/kontur-courses/clean-code/pulls/comments/233905473","pull_request_review_id":175427693,"id":233905473,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzkwNTQ3Mw==","diff_hunk":"@@ -0,0 +1,47 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+\n+namespace Markdown\n+{\n+    public static class StringExtension\n+    {\n+\n+        public static bool IsSpanElementOpening(this string markdown, int currentPosition, List<ISpanElement> spanElements)\n+        {\n+            return spanElements.Any(e => IsSubstring(markdown, currentPosition, e.GetOpeningIndicator()));\n+        }\n+\n+        public static bool IsSubstring(this string markdown, int currentPosition, string substring)\n+        {\n+            return string.Join(string.Empty, markdown.Skip(currentPosition)).StartsWith(substring);","path":"cs/Markdown/StringExtension.cs","position":null,"original_position":19,"commit_id":"218d4aee6f78c79a56ab2f93421cac93f4f3dc9b","original_commit_id":"d85ae85a25d7a83c6265a76e9031cc30cf6fad86","user":{"login":"tkirill","id":4922699,"node_id":"MDQ6VXNlcjQ5MjI2OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4922699?v=4","gravatar_id":"","url":"https://api.github.com/users/tkirill","html_url":"https://github.com/tkirill","followers_url":"https://api.github.com/users/tkirill/followers","following_url":"https://api.github.com/users/tkirill/following{/other_user}","gists_url":"https://api.github.com/users/tkirill/gists{/gist_id}","starred_url":"https://api.github.com/users/tkirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkirill/subscriptions","organizations_url":"https://api.github.com/users/tkirill/orgs","repos_url":"https://api.github.com/users/tkirill/repos","events_url":"https://api.github.com/users/tkirill/events{/privacy}","received_events_url":"https://api.github.com/users/tkirill/received_events","type":"User","site_admin":false},"body":"Согласен (\r\n\r\nМожно было бы ещё [sequenceequal](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.sequenceequal?view=netframework-4.7.2) попробовать, может получилось бы красивее.","created_at":"2018-11-15T16:06:08Z","updated_at":"2018-11-15T16:06:09Z","html_url":"https://github.com/kontur-courses/clean-code/pull/5#discussion_r233905473","pull_request_url":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kontur-courses/clean-code/pulls/comments/233905473"},"html":{"href":"https://github.com/kontur-courses/clean-code/pull/5#discussion_r233905473"},"pull_request":{"href":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5"}},"in_reply_to_id":232550212},"pull_request":{"url":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5","id":229684666,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5Njg0NjY2","html_url":"https://github.com/kontur-courses/clean-code/pull/5","diff_url":"https://github.com/kontur-courses/clean-code/pull/5.diff","patch_url":"https://github.com/kontur-courses/clean-code/pull/5.patch","issue_url":"https://api.github.com/repos/kontur-courses/clean-code/issues/5","number":5,"state":"open","locked":false,"title":"Homework | Budlyanskiy Roman","user":{"login":"bully434","id":19955305,"node_id":"MDQ6VXNlcjE5OTU1MzA1","avatar_url":"https://avatars2.githubusercontent.com/u/19955305?v=4","gravatar_id":"","url":"https://api.github.com/users/bully434","html_url":"https://github.com/bully434","followers_url":"https://api.github.com/users/bully434/followers","following_url":"https://api.github.com/users/bully434/following{/other_user}","gists_url":"https://api.github.com/users/bully434/gists{/gist_id}","starred_url":"https://api.github.com/users/bully434/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bully434/subscriptions","organizations_url":"https://api.github.com/users/bully434/orgs","repos_url":"https://api.github.com/users/bully434/repos","events_url":"https://api.github.com/users/bully434/events{/privacy}","received_events_url":"https://api.github.com/users/bully434/received_events","type":"User","site_admin":false},"body":"Mentor : @tkirill","created_at":"2018-11-09T12:51:30Z","updated_at":"2018-11-15T16:06:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3518fb3585d77d392f846bd8891db9d57876b10d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5/commits","review_comments_url":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5/comments","review_comment_url":"https://api.github.com/repos/kontur-courses/clean-code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kontur-courses/clean-code/issues/5/comments","statuses_url":"https://api.github.com/repos/kontur-courses/clean-code/statuses/218d4aee6f78c79a56ab2f93421cac93f4f3dc9b","head":{"label":"bully434:master","ref":"master","sha":"218d4aee6f78c79a56ab2f93421cac93f4f3dc9b","user":{"login":"bully434","id":19955305,"node_id":"MDQ6VXNlcjE5OTU1MzA1","avatar_url":"https://avatars2.githubusercontent.com/u/19955305?v=4","gravatar_id":"","url":"https://api.github.com/users/bully434","html_url":"https://github.com/bully434","followers_url":"https://api.github.com/users/bully434/followers","following_url":"https://api.github.com/users/bully434/following{/other_user}","gists_url":"https://api.github.com/users/bully434/gists{/gist_id}","starred_url":"https://api.github.com/users/bully434/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bully434/subscriptions","organizations_url":"https://api.github.com/users/bully434/orgs","repos_url":"https://api.github.com/users/bully434/repos","events_url":"https://api.github.com/users/bully434/events{/privacy}","received_events_url":"https://api.github.com/users/bully434/received_events","type":"User","site_admin":false},"repo":{"id":156498628,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY0OTg2Mjg=","name":"clean-code","full_name":"bully434/clean-code","private":false,"owner":{"login":"bully434","id":19955305,"node_id":"MDQ6VXNlcjE5OTU1MzA1","avatar_url":"https://avatars2.githubusercontent.com/u/19955305?v=4","gravatar_id":"","url":"https://api.github.com/users/bully434","html_url":"https://github.com/bully434","followers_url":"https://api.github.com/users/bully434/followers","following_url":"https://api.github.com/users/bully434/following{/other_user}","gists_url":"https://api.github.com/users/bully434/gists{/gist_id}","starred_url":"https://api.github.com/users/bully434/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bully434/subscriptions","organizations_url":"https://api.github.com/users/bully434/orgs","repos_url":"https://api.github.com/users/bully434/repos","events_url":"https://api.github.com/users/bully434/events{/privacy}","received_events_url":"https://api.github.com/users/bully434/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bully434/clean-code","description":"Clean code","fork":true,"url":"https://api.github.com/repos/bully434/clean-code","forks_url":"https://api.github.com/repos/bully434/clean-code/forks","keys_url":"https://api.github.com/repos/bully434/clean-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bully434/clean-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bully434/clean-code/teams","hooks_url":"https://api.github.com/repos/bully434/clean-code/hooks","issue_events_url":"https://api.github.com/repos/bully434/clean-code/issues/events{/number}","events_url":"https://api.github.com/repos/bully434/clean-code/events","assignees_url":"https://api.github.com/repos/bully434/clean-code/assignees{/user}","branches_url":"https://api.github.com/repos/bully434/clean-code/branches{/branch}","tags_url":"https://api.github.com/repos/bully434/clean-code/tags","blobs_url":"https://api.github.com/repos/bully434/clean-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bully434/clean-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bully434/clean-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/bully434/clean-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bully434/clean-code/statuses/{sha}","languages_url":"https://api.github.com/repos/bully434/clean-code/languages","stargazers_url":"https://api.github.com/repos/bully434/clean-code/stargazers","contributors_url":"https://api.github.com/repos/bully434/clean-code/contributors","subscribers_url":"https://api.github.com/repos/bully434/clean-code/subscribers","subscription_url":"https://api.github.com/repos/bully434/clean-code/subscription","commits_url":"https://api.github.com/repos/bully434/clean-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/bully434/clean-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/bully434/clean-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/bully434/clean-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/bully434/clean-code/contents/{+path}","compare_url":"https://api.github.com/repos/bully434/clean-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bully434/clean-code/merges","archive_url":"https://api.github.com/repos/bully434/clean-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bully434/clean-code/downloads","issues_url":"https://api.github.com/repos/bully434/clean-code/issues{/number}","pulls_url":"https://api.github.com/repos/bully434/clean-code/pulls{/number}","milestones_url":"https://api.github.com/repos/bully434/clean-code/milestones{/number}","notifications_url":"https://api.github.com/repos/bully434/clean-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bully434/clean-code/labels{/name}","releases_url":"https://api.github.com/repos/bully434/clean-code/releases{/id}","deployments_url":"https://api.github.com/repos/bully434/clean-code/deployments","created_at":"2018-11-07T06:11:24Z","updated_at":"2018-11-14T08:56:22Z","pushed_at":"2018-11-14T08:56:20Z","git_url":"git://github.com/bully434/clean-code.git","ssh_url":"git@github.com:bully434/clean-code.git","clone_url":"https://github.com/bully434/clean-code.git","svn_url":"https://github.com/bully434/clean-code","homepage":null,"size":15000,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kontur-courses:master","ref":"master","sha":"a40dd0ae0abb5c54c64b81cbc67755563465e4e8","user":{"login":"kontur-courses","id":19208073,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjA4MDcz","avatar_url":"https://avatars2.githubusercontent.com/u/19208073?v=4","gravatar_id":"","url":"https://api.github.com/users/kontur-courses","html_url":"https://github.com/kontur-courses","followers_url":"https://api.github.com/users/kontur-courses/followers","following_url":"https://api.github.com/users/kontur-courses/following{/other_user}","gists_url":"https://api.github.com/users/kontur-courses/gists{/gist_id}","starred_url":"https://api.github.com/users/kontur-courses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kontur-courses/subscriptions","organizations_url":"https://api.github.com/users/kontur-courses/orgs","repos_url":"https://api.github.com/users/kontur-courses/repos","events_url":"https://api.github.com/users/kontur-courses/events{/privacy}","received_events_url":"https://api.github.com/users/kontur-courses/received_events","type":"Organization","site_admin":false},"repo":{"id":58135098,"node_id":"MDEwOlJlcG9zaXRvcnk1ODEzNTA5OA==","name":"clean-code","full_name":"kontur-courses/clean-code","private":false,"owner":{"login":"kontur-courses","id":19208073,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjA4MDcz","avatar_url":"https://avatars2.githubusercontent.com/u/19208073?v=4","gravatar_id":"","url":"https://api.github.com/users/kontur-courses","html_url":"https://github.com/kontur-courses","followers_url":"https://api.github.com/users/kontur-courses/followers","following_url":"https://api.github.com/users/kontur-courses/following{/other_user}","gists_url":"https://api.github.com/users/kontur-courses/gists{/gist_id}","starred_url":"https://api.github.com/users/kontur-courses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kontur-courses/subscriptions","organizations_url":"https://api.github.com/users/kontur-courses/orgs","repos_url":"https://api.github.com/users/kontur-courses/repos","events_url":"https://api.github.com/users/kontur-courses/events{/privacy}","received_events_url":"https://api.github.com/users/kontur-courses/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kontur-courses/clean-code","description":"Clean code","fork":false,"url":"https://api.github.com/repos/kontur-courses/clean-code","forks_url":"https://api.github.com/repos/kontur-courses/clean-code/forks","keys_url":"https://api.github.com/repos/kontur-courses/clean-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kontur-courses/clean-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kontur-courses/clean-code/teams","hooks_url":"https://api.github.com/repos/kontur-courses/clean-code/hooks","issue_events_url":"https://api.github.com/repos/kontur-courses/clean-code/issues/events{/number}","events_url":"https://api.github.com/repos/kontur-courses/clean-code/events","assignees_url":"https://api.github.com/repos/kontur-courses/clean-code/assignees{/user}","branches_url":"https://api.github.com/repos/kontur-courses/clean-code/branches{/branch}","tags_url":"https://api.github.com/repos/kontur-courses/clean-code/tags","blobs_url":"https://api.github.com/repos/kontur-courses/clean-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kontur-courses/clean-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kontur-courses/clean-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/kontur-courses/clean-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kontur-courses/clean-code/statuses/{sha}","languages_url":"https://api.github.com/repos/kontur-courses/clean-code/languages","stargazers_url":"https://api.github.com/repos/kontur-courses/clean-code/stargazers","contributors_url":"https://api.github.com/repos/kontur-courses/clean-code/contributors","subscribers_url":"https://api.github.com/repos/kontur-courses/clean-code/subscribers","subscription_url":"https://api.github.com/repos/kontur-courses/clean-code/subscription","commits_url":"https://api.github.com/repos/kontur-courses/clean-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/kontur-courses/clean-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/kontur-courses/clean-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/kontur-courses/clean-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/kontur-courses/clean-code/contents/{+path}","compare_url":"https://api.github.com/repos/kontur-courses/clean-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kontur-courses/clean-code/merges","archive_url":"https://api.github.com/repos/kontur-courses/clean-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kontur-courses/clean-code/downloads","issues_url":"https://api.github.com/repos/kontur-courses/clean-code/issues{/number}","pulls_url":"https://api.github.com/repos/kontur-courses/clean-code/pulls{/number}","milestones_url":"https://api.github.com/repos/kontur-courses/clean-code/milestones{/number}","notifications_url":"https://api.github.com/repos/kontur-courses/clean-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kontur-courses/clean-code/labels{/name}","releases_url":"https://api.github.com/repos/kontur-courses/clean-code/releases{/id}","deployments_url":"https://api.github.com/repos/kontur-courses/clean-code/deployments","created_at":"2016-05-05T14:04:51Z","updated_at":"2018-11-13T15:48:13Z","pushed_at":"2018-11-15T15:43:41Z","git_url":"git://github.com/kontur-courses/clean-code.git","ssh_url":"git@github.com:kontur-courses/clean-code.git","clone_url":"https://github.com/kontur-courses/clean-code.git","svn_url":"https://github.com/kontur-courses/clean-code","homepage":null,"size":14985,"stargazers_count":6,"watchers_count":6,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":109,"mirror_url":null,"archived":false,"open_issues_count":26,"license":null,"forks":109,"open_issues":26,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5"},"html":{"href":"https://github.com/kontur-courses/clean-code/pull/5"},"issue":{"href":"https://api.github.com/repos/kontur-courses/clean-code/issues/5"},"comments":{"href":"https://api.github.com/repos/kontur-courses/clean-code/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/kontur-courses/clean-code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kontur-courses/clean-code/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/kontur-courses/clean-code/statuses/218d4aee6f78c79a56ab2f93421cac93f4f3dc9b"}},"author_association":"NONE"}}
{"actor":{"display_login":"tkirill"}}