{"action":"opened","number":105,"pull_request":{"url":"https://api.github.com/repos/education/teachers_pet/pulls/105","id":28145277,"html_url":"https://github.com/education/teachers_pet/pull/105","diff_url":"https://github.com/education/teachers_pet/pull/105.diff","patch_url":"https://github.com/education/teachers_pet/pull/105.patch","issue_url":"https://api.github.com/repos/education/teachers_pet/issues/105","number":105,"state":"open","locked":false,"title":"delete-repos command","user":{"login":"efthym","id":1907388,"avatar_url":"https://avatars.githubusercontent.com/u/1907388?v=3","gravatar_id":"","url":"https://api.github.com/users/efthym","html_url":"https://github.com/efthym","followers_url":"https://api.github.com/users/efthym/followers","following_url":"https://api.github.com/users/efthym/following{/other_user}","gists_url":"https://api.github.com/users/efthym/gists{/gist_id}","starred_url":"https://api.github.com/users/efthym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efthym/subscriptions","organizations_url":"https://api.github.com/users/efthym/orgs","repos_url":"https://api.github.com/users/efthym/repos","events_url":"https://api.github.com/users/efthym/events{/privacy}","received_events_url":"https://api.github.com/users/efthym/received_events","type":"User","site_admin":false},"body":"It should help with managing a course with limited number of private repos by deleting and re-using repos, as discussed in education/teachers#28.\r\nIt follows closely the create_repos action but deletes instead of creating. (could share code somehow)\r\n\r\nI could not get this to work with username/password authentication. It only worked after creating a personal access token with a 'delete_repo' scope and using that token to login to Github.\r\n\r\n","created_at":"2015-01-27T21:19:24Z","updated_at":"2015-01-27T21:19:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/education/teachers_pet/pulls/105/commits","review_comments_url":"https://api.github.com/repos/education/teachers_pet/pulls/105/comments","review_comment_url":"https://api.github.com/repos/education/teachers_pet/pulls/comments/{number}","comments_url":"https://api.github.com/repos/education/teachers_pet/issues/105/comments","statuses_url":"https://api.github.com/repos/education/teachers_pet/statuses/bd65a2bcc527182d87a467b439a0a815d563f266","head":{"label":"efthym:delete-repos","ref":"delete-repos","sha":"bd65a2bcc527182d87a467b439a0a815d563f266","user":{"login":"efthym","id":1907388,"avatar_url":"https://avatars.githubusercontent.com/u/1907388?v=3","gravatar_id":"","url":"https://api.github.com/users/efthym","html_url":"https://github.com/efthym","followers_url":"https://api.github.com/users/efthym/followers","following_url":"https://api.github.com/users/efthym/following{/other_user}","gists_url":"https://api.github.com/users/efthym/gists{/gist_id}","starred_url":"https://api.github.com/users/efthym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efthym/subscriptions","organizations_url":"https://api.github.com/users/efthym/orgs","repos_url":"https://api.github.com/users/efthym/repos","events_url":"https://api.github.com/users/efthym/events{/privacy}","received_events_url":"https://api.github.com/users/efthym/received_events","type":"User","site_admin":false},"repo":{"id":29732599,"name":"teachers_pet","full_name":"efthym/teachers_pet","owner":{"login":"efthym","id":1907388,"avatar_url":"https://avatars.githubusercontent.com/u/1907388?v=3","gravatar_id":"","url":"https://api.github.com/users/efthym","html_url":"https://github.com/efthym","followers_url":"https://api.github.com/users/efthym/followers","following_url":"https://api.github.com/users/efthym/following{/other_user}","gists_url":"https://api.github.com/users/efthym/gists{/gist_id}","starred_url":"https://api.github.com/users/efthym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efthym/subscriptions","organizations_url":"https://api.github.com/users/efthym/orgs","repos_url":"https://api.github.com/users/efthym/repos","events_url":"https://api.github.com/users/efthym/events{/privacy}","received_events_url":"https://api.github.com/users/efthym/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/efthym/teachers_pet","description":"command line tool to help teachers use GitHub in their classrooms","fork":true,"url":"https://api.github.com/repos/efthym/teachers_pet","forks_url":"https://api.github.com/repos/efthym/teachers_pet/forks","keys_url":"https://api.github.com/repos/efthym/teachers_pet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/efthym/teachers_pet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/efthym/teachers_pet/teams","hooks_url":"https://api.github.com/repos/efthym/teachers_pet/hooks","issue_events_url":"https://api.github.com/repos/efthym/teachers_pet/issues/events{/number}","events_url":"https://api.github.com/repos/efthym/teachers_pet/events","assignees_url":"https://api.github.com/repos/efthym/teachers_pet/assignees{/user}","branches_url":"https://api.github.com/repos/efthym/teachers_pet/branches{/branch}","tags_url":"https://api.github.com/repos/efthym/teachers_pet/tags","blobs_url":"https://api.github.com/repos/efthym/teachers_pet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/efthym/teachers_pet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/efthym/teachers_pet/git/refs{/sha}","trees_url":"https://api.github.com/repos/efthym/teachers_pet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/efthym/teachers_pet/statuses/{sha}","languages_url":"https://api.github.com/repos/efthym/teachers_pet/languages","stargazers_url":"https://api.github.com/repos/efthym/teachers_pet/stargazers","contributors_url":"https://api.github.com/repos/efthym/teachers_pet/contributors","subscribers_url":"https://api.github.com/repos/efthym/teachers_pet/subscribers","subscription_url":"https://api.github.com/repos/efthym/teachers_pet/subscription","commits_url":"https://api.github.com/repos/efthym/teachers_pet/commits{/sha}","git_commits_url":"https://api.github.com/repos/efthym/teachers_pet/git/commits{/sha}","comments_url":"https://api.github.com/repos/efthym/teachers_pet/comments{/number}","issue_comment_url":"https://api.github.com/repos/efthym/teachers_pet/issues/comments/{number}","contents_url":"https://api.github.com/repos/efthym/teachers_pet/contents/{+path}","compare_url":"https://api.github.com/repos/efthym/teachers_pet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/efthym/teachers_pet/merges","archive_url":"https://api.github.com/repos/efthym/teachers_pet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/efthym/teachers_pet/downloads","issues_url":"https://api.github.com/repos/efthym/teachers_pet/issues{/number}","pulls_url":"https://api.github.com/repos/efthym/teachers_pet/pulls{/number}","milestones_url":"https://api.github.com/repos/efthym/teachers_pet/milestones{/number}","notifications_url":"https://api.github.com/repos/efthym/teachers_pet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/efthym/teachers_pet/labels{/name}","releases_url":"https://api.github.com/repos/efthym/teachers_pet/releases{/id}","created_at":"2015-01-23T13:00:11Z","updated_at":"2015-01-25T21:48:29Z","pushed_at":"2015-01-27T20:16:17Z","git_url":"git://github.com/efthym/teachers_pet.git","ssh_url":"git@github.com:efthym/teachers_pet.git","clone_url":"https://github.com/efthym/teachers_pet.git","svn_url":"https://github.com/efthym/teachers_pet","homepage":"https://education.github.com/guide","size":2341,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"master"}},"base":{"label":"education:master","ref":"master","sha":"8834e8658b4affde223d11179650c6d1cb96a003","user":{"login":"education","id":6667880,"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=3","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"repo":{"id":13096521,"name":"teachers_pet","full_name":"education/teachers_pet","owner":{"login":"education","id":6667880,"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=3","gravatar_id":"","url":"https://api.github.com/users/education","html_url":"https://github.com/education","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","organizations_url":"https://api.github.com/users/education/orgs","repos_url":"https://api.github.com/users/education/repos","events_url":"https://api.github.com/users/education/events{/privacy}","received_events_url":"https://api.github.com/users/education/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/education/teachers_pet","description":"command line tool to help teachers use GitHub in their classrooms","fork":false,"url":"https://api.github.com/repos/education/teachers_pet","forks_url":"https://api.github.com/repos/education/teachers_pet/forks","keys_url":"https://api.github.com/repos/education/teachers_pet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/education/teachers_pet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/education/teachers_pet/teams","hooks_url":"https://api.github.com/repos/education/teachers_pet/hooks","issue_events_url":"https://api.github.com/repos/education/teachers_pet/issues/events{/number}","events_url":"https://api.github.com/repos/education/teachers_pet/events","assignees_url":"https://api.github.com/repos/education/teachers_pet/assignees{/user}","branches_url":"https://api.github.com/repos/education/teachers_pet/branches{/branch}","tags_url":"https://api.github.com/repos/education/teachers_pet/tags","blobs_url":"https://api.github.com/repos/education/teachers_pet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/education/teachers_pet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/education/teachers_pet/git/refs{/sha}","trees_url":"https://api.github.com/repos/education/teachers_pet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/education/teachers_pet/statuses/{sha}","languages_url":"https://api.github.com/repos/education/teachers_pet/languages","stargazers_url":"https://api.github.com/repos/education/teachers_pet/stargazers","contributors_url":"https://api.github.com/repos/education/teachers_pet/contributors","subscribers_url":"https://api.github.com/repos/education/teachers_pet/subscribers","subscription_url":"https://api.github.com/repos/education/teachers_pet/subscription","commits_url":"https://api.github.com/repos/education/teachers_pet/commits{/sha}","git_commits_url":"https://api.github.com/repos/education/teachers_pet/git/commits{/sha}","comments_url":"https://api.github.com/repos/education/teachers_pet/comments{/number}","issue_comment_url":"https://api.github.com/repos/education/teachers_pet/issues/comments/{number}","contents_url":"https://api.github.com/repos/education/teachers_pet/contents/{+path}","compare_url":"https://api.github.com/repos/education/teachers_pet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/education/teachers_pet/merges","archive_url":"https://api.github.com/repos/education/teachers_pet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/education/teachers_pet/downloads","issues_url":"https://api.github.com/repos/education/teachers_pet/issues{/number}","pulls_url":"https://api.github.com/repos/education/teachers_pet/pulls{/number}","milestones_url":"https://api.github.com/repos/education/teachers_pet/milestones{/number}","notifications_url":"https://api.github.com/repos/education/teachers_pet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/education/teachers_pet/labels{/name}","releases_url":"https://api.github.com/repos/education/teachers_pet/releases{/id}","created_at":"2013-09-25T14:45:56Z","updated_at":"2015-01-26T18:42:10Z","pushed_at":"2015-01-26T17:18:04Z","git_url":"git://github.com/education/teachers_pet.git","ssh_url":"git@github.com:education/teachers_pet.git","clone_url":"https://github.com/education/teachers_pet.git","svn_url":"https://github.com/education/teachers_pet","homepage":"https://education.github.com/guide","size":2341,"stargazers_count":121,"watchers_count":121,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":17,"forks":16,"open_issues":17,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/education/teachers_pet/pulls/105"},"html":{"href":"https://github.com/education/teachers_pet/pull/105"},"issue":{"href":"https://api.github.com/repos/education/teachers_pet/issues/105"},"comments":{"href":"https://api.github.com/repos/education/teachers_pet/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/education/teachers_pet/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/education/teachers_pet/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/education/teachers_pet/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/education/teachers_pet/statuses/bd65a2bcc527182d87a467b439a0a815d563f266"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":69,"deletions":0,"changed_files":2}}