{"action":"created","issue":{"url":"https://api.github.com/repos/education/classroom/issues/561","repository_url":"https://api.github.com/repos/education/classroom","labels_url":"https://api.github.com/repos/education/classroom/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/education/classroom/issues/561/comments","events_url":"https://api.github.com/repos/education/classroom/issues/561/events","html_url":"https://github.com/education/classroom/pull/561","id":147091594,"number":561,"title":"Handle repository already existed on GitHub","user":{"login":"dinever","id":1311594,"avatar_url":"https://avatars.githubusercontent.com/u/1311594?v=3","gravatar_id":"","url":"https://api.github.com/users/dinever","html_url":"https://github.com/dinever","followers_url":"https://api.github.com/users/dinever/followers","following_url":"https://api.github.com/users/dinever/following{/other_user}","gists_url":"https://api.github.com/users/dinever/gists{/gist_id}","starred_url":"https://api.github.com/users/dinever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinever/subscriptions","organizations_url":"https://api.github.com/users/dinever/orgs","repos_url":"https://api.github.com/users/dinever/repos","events_url":"https://api.github.com/users/dinever/events{/privacy}","received_events_url":"https://api.github.com/users/dinever/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-04-09T05:17:37Z","updated_at":"2016-04-19T20:56:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/education/classroom/pulls/561","html_url":"https://github.com/education/classroom/pull/561","diff_url":"https://github.com/education/classroom/pull/561.diff","patch_url":"https://github.com/education/classroom/pull/561.patch"},"body":"Fixes #319\r\n\r\nWhen creating an assignment, if the repo name `#{org_login}-#{user_login}` already exists, simply append a suffix number `1` and try to create the repo with the modified name `#{org_login}-#{user_login}-1`.\r\n\r\nIf the modified repo name still exists, increase the suffix number by 1 and try again, e.g. `#{org_login}-#{user_login}-2`, `#{org_login}-#{user_login}-3`, etc.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/education/classroom/issues/comments/212124682","html_url":"https://github.com/education/classroom/pull/561#issuecomment-212124682","issue_url":"https://api.github.com/repos/education/classroom/issues/561","id":212124682,"user":{"login":"dinever","id":1311594,"avatar_url":"https://avatars.githubusercontent.com/u/1311594?v=3","gravatar_id":"","url":"https://api.github.com/users/dinever","html_url":"https://github.com/dinever","followers_url":"https://api.github.com/users/dinever/followers","following_url":"https://api.github.com/users/dinever/following{/other_user}","gists_url":"https://api.github.com/users/dinever/gists{/gist_id}","starred_url":"https://api.github.com/users/dinever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinever/subscriptions","organizations_url":"https://api.github.com/users/dinever/orgs","repos_url":"https://api.github.com/users/dinever/repos","events_url":"https://api.github.com/users/dinever/events{/privacy}","received_events_url":"https://api.github.com/users/dinever/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T20:56:12Z","updated_at":"2016-04-19T20:56:12Z","body":"@tarebyte All changes mentioned above have been done. Thanks!"}}