{"action":"created","comment":{"url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/comments/168584794","pull_request_review_id":96978093,"id":168584794,"diff_hunk":"@@ -0,0 +1,18 @@\n+﻿// Write a program for calculating the factorial\n+\n+using System;\n+\n+namespace Factorial\n+{\n+    class Program\n+    {\n+        private static int Factorial(int number) => number > 0 ? number * Factorial(number - 1) : 1;\n+\n+        static void Main(string[] args)\n+        {\n+            Console.WriteLine(\"Enter a positive integer: \");\n+            int facNumber = int.Parse(Console.ReadLine());\n+            Console.WriteLine($\"The factorial of the number {facNumber} is {Factorial(facNumber)}\");","path":"2 semester/1 homework/1 task/Program.cs","position":15,"original_position":15,"commit_id":"0e42da9c3a59cba15fcc467ae463531bf057af04","original_commit_id":"0e42da9c3a59cba15fcc467ae463531bf057af04","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars3.githubusercontent.com/u/706768?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"Не стоит доверять пользователю, лучше всегда проверять пользовательский ввод","created_at":"2018-02-15T19:35:25Z","updated_at":"2018-02-15T19:35:44Z","html_url":"https://github.com/Riteyl/SPbU-Homeworks/pull/28#discussion_r168584794","pull_request_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/comments/168584794"},"html":{"href":"https://github.com/Riteyl/SPbU-Homeworks/pull/28#discussion_r168584794"},"pull_request":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28","id":169150597,"html_url":"https://github.com/Riteyl/SPbU-Homeworks/pull/28","diff_url":"https://github.com/Riteyl/SPbU-Homeworks/pull/28.diff","patch_url":"https://github.com/Riteyl/SPbU-Homeworks/pull/28.patch","issue_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/28","number":28,"state":"open","locked":false,"title":"Factorial","user":{"login":"Riteyl","id":32138343,"avatar_url":"https://avatars0.githubusercontent.com/u/32138343?v=4","gravatar_id":"","url":"https://api.github.com/users/Riteyl","html_url":"https://github.com/Riteyl","followers_url":"https://api.github.com/users/Riteyl/followers","following_url":"https://api.github.com/users/Riteyl/following{/other_user}","gists_url":"https://api.github.com/users/Riteyl/gists{/gist_id}","starred_url":"https://api.github.com/users/Riteyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riteyl/subscriptions","organizations_url":"https://api.github.com/users/Riteyl/orgs","repos_url":"https://api.github.com/users/Riteyl/repos","events_url":"https://api.github.com/users/Riteyl/events{/privacy}","received_events_url":"https://api.github.com/users/Riteyl/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-14T16:03:01Z","updated_at":"2018-02-15T19:35:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f36ea5625aaec3b41e1412aca67c3c3ffd123a8a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28/commits","review_comments_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28/comments","review_comment_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/28/comments","statuses_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/statuses/0e42da9c3a59cba15fcc467ae463531bf057af04","head":{"label":"Riteyl:Factorial","ref":"Factorial","sha":"0e42da9c3a59cba15fcc467ae463531bf057af04","user":{"login":"Riteyl","id":32138343,"avatar_url":"https://avatars0.githubusercontent.com/u/32138343?v=4","gravatar_id":"","url":"https://api.github.com/users/Riteyl","html_url":"https://github.com/Riteyl","followers_url":"https://api.github.com/users/Riteyl/followers","following_url":"https://api.github.com/users/Riteyl/following{/other_user}","gists_url":"https://api.github.com/users/Riteyl/gists{/gist_id}","starred_url":"https://api.github.com/users/Riteyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riteyl/subscriptions","organizations_url":"https://api.github.com/users/Riteyl/orgs","repos_url":"https://api.github.com/users/Riteyl/repos","events_url":"https://api.github.com/users/Riteyl/events{/privacy}","received_events_url":"https://api.github.com/users/Riteyl/received_events","type":"User","site_admin":false},"repo":{"id":109164033,"name":"SPbU-Homeworks","full_name":"Riteyl/SPbU-Homeworks","owner":{"login":"Riteyl","id":32138343,"avatar_url":"https://avatars0.githubusercontent.com/u/32138343?v=4","gravatar_id":"","url":"https://api.github.com/users/Riteyl","html_url":"https://github.com/Riteyl","followers_url":"https://api.github.com/users/Riteyl/followers","following_url":"https://api.github.com/users/Riteyl/following{/other_user}","gists_url":"https://api.github.com/users/Riteyl/gists{/gist_id}","starred_url":"https://api.github.com/users/Riteyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riteyl/subscriptions","organizations_url":"https://api.github.com/users/Riteyl/orgs","repos_url":"https://api.github.com/users/Riteyl/repos","events_url":"https://api.github.com/users/Riteyl/events{/privacy}","received_events_url":"https://api.github.com/users/Riteyl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Riteyl/SPbU-Homeworks","description":"Repository with SPbU homeworks.","fork":false,"url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks","forks_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/forks","keys_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/teams","hooks_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/hooks","issue_events_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/events","assignees_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/tags","blobs_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/languages","stargazers_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/stargazers","contributors_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/contributors","subscribers_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/subscribers","subscription_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/subscription","commits_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/merges","archive_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/downloads","issues_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/labels{/name}","releases_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/releases{/id}","deployments_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/deployments","created_at":"2017-11-01T17:51:15Z","updated_at":"2017-11-01T18:13:46Z","pushed_at":"2018-02-15T15:14:39Z","git_url":"git://github.com/Riteyl/SPbU-Homeworks.git","ssh_url":"git@github.com:Riteyl/SPbU-Homeworks.git","clone_url":"https://github.com/Riteyl/SPbU-Homeworks.git","svn_url":"https://github.com/Riteyl/SPbU-Homeworks","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Riteyl:master","ref":"master","sha":"9d89ee66c50ab9b37a5b0a721d4dca108fec5d0e","user":{"login":"Riteyl","id":32138343,"avatar_url":"https://avatars0.githubusercontent.com/u/32138343?v=4","gravatar_id":"","url":"https://api.github.com/users/Riteyl","html_url":"https://github.com/Riteyl","followers_url":"https://api.github.com/users/Riteyl/followers","following_url":"https://api.github.com/users/Riteyl/following{/other_user}","gists_url":"https://api.github.com/users/Riteyl/gists{/gist_id}","starred_url":"https://api.github.com/users/Riteyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riteyl/subscriptions","organizations_url":"https://api.github.com/users/Riteyl/orgs","repos_url":"https://api.github.com/users/Riteyl/repos","events_url":"https://api.github.com/users/Riteyl/events{/privacy}","received_events_url":"https://api.github.com/users/Riteyl/received_events","type":"User","site_admin":false},"repo":{"id":109164033,"name":"SPbU-Homeworks","full_name":"Riteyl/SPbU-Homeworks","owner":{"login":"Riteyl","id":32138343,"avatar_url":"https://avatars0.githubusercontent.com/u/32138343?v=4","gravatar_id":"","url":"https://api.github.com/users/Riteyl","html_url":"https://github.com/Riteyl","followers_url":"https://api.github.com/users/Riteyl/followers","following_url":"https://api.github.com/users/Riteyl/following{/other_user}","gists_url":"https://api.github.com/users/Riteyl/gists{/gist_id}","starred_url":"https://api.github.com/users/Riteyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riteyl/subscriptions","organizations_url":"https://api.github.com/users/Riteyl/orgs","repos_url":"https://api.github.com/users/Riteyl/repos","events_url":"https://api.github.com/users/Riteyl/events{/privacy}","received_events_url":"https://api.github.com/users/Riteyl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Riteyl/SPbU-Homeworks","description":"Repository with SPbU homeworks.","fork":false,"url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks","forks_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/forks","keys_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/teams","hooks_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/hooks","issue_events_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/events","assignees_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/tags","blobs_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/languages","stargazers_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/stargazers","contributors_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/contributors","subscribers_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/subscribers","subscription_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/subscription","commits_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/merges","archive_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/downloads","issues_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/labels{/name}","releases_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/releases{/id}","deployments_url":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/deployments","created_at":"2017-11-01T17:51:15Z","updated_at":"2017-11-01T18:13:46Z","pushed_at":"2018-02-15T15:14:39Z","git_url":"git://github.com/Riteyl/SPbU-Homeworks.git","ssh_url":"git@github.com:Riteyl/SPbU-Homeworks.git","clone_url":"https://github.com/Riteyl/SPbU-Homeworks.git","svn_url":"https://github.com/Riteyl/SPbU-Homeworks","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28"},"html":{"href":"https://github.com/Riteyl/SPbU-Homeworks/pull/28"},"issue":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/28"},"comments":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/Riteyl/SPbU-Homeworks/statuses/0e42da9c3a59cba15fcc467ae463531bf057af04"}},"author_association":"OWNER"}}
{"actor":{"display_login":"yurii-litvinov"}}