{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/csterwa/hubot/pulls/1","id":32970934,"html_url":"https://github.com/csterwa/hubot/pull/1","diff_url":"https://github.com/csterwa/hubot/pull/1.diff","patch_url":"https://github.com/csterwa/hubot/pull/1.patch","issue_url":"https://api.github.com/repos/csterwa/hubot/issues/1","number":1,"state":"open","locked":false,"title":"Add delete behavior","user":{"login":"nstetich","id":583476,"avatar_url":"https://avatars.githubusercontent.com/u/583476?v=3","gravatar_id":"","url":"https://api.github.com/users/nstetich","html_url":"https://github.com/nstetich","followers_url":"https://api.github.com/users/nstetich/followers","following_url":"https://api.github.com/users/nstetich/following{/other_user}","gists_url":"https://api.github.com/users/nstetich/gists{/gist_id}","starred_url":"https://api.github.com/users/nstetich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstetich/subscriptions","organizations_url":"https://api.github.com/users/nstetich/orgs","repos_url":"https://api.github.com/users/nstetich/repos","events_url":"https://api.github.com/users/nstetich/events{/privacy}","received_events_url":"https://api.github.com/users/nstetich/received_events","type":"User","site_admin":false},"body":"This adds basic delete behavior.\r\n\r\nThe command is \"hubot delete [n ago]\" which will delete nth to last message hubot sent in the current channel. n defaults to 1, or the most recent message hubot sent.\r\n\r\nI am still working on refactoring some of this code and enabling edit behavior other than delete, but it sounds like you might like to get started with this.","created_at":"2015-04-09T16:12:25Z","updated_at":"2015-04-09T16:12:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/csterwa/hubot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/csterwa/hubot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/csterwa/hubot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/csterwa/hubot/issues/1/comments","statuses_url":"https://api.github.com/repos/csterwa/hubot/statuses/5424bff210be291be36c3ad017f27890effca1b8","head":{"label":"nstetich:master","ref":"master","sha":"5424bff210be291be36c3ad017f27890effca1b8","user":{"login":"nstetich","id":583476,"avatar_url":"https://avatars.githubusercontent.com/u/583476?v=3","gravatar_id":"","url":"https://api.github.com/users/nstetich","html_url":"https://github.com/nstetich","followers_url":"https://api.github.com/users/nstetich/followers","following_url":"https://api.github.com/users/nstetich/following{/other_user}","gists_url":"https://api.github.com/users/nstetich/gists{/gist_id}","starred_url":"https://api.github.com/users/nstetich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstetich/subscriptions","organizations_url":"https://api.github.com/users/nstetich/orgs","repos_url":"https://api.github.com/users/nstetich/repos","events_url":"https://api.github.com/users/nstetich/events{/privacy}","received_events_url":"https://api.github.com/users/nstetich/received_events","type":"User","site_admin":false},"repo":{"id":33638203,"name":"hubot","full_name":"nstetich/hubot","owner":{"login":"nstetich","id":583476,"avatar_url":"https://avatars.githubusercontent.com/u/583476?v=3","gravatar_id":"","url":"https://api.github.com/users/nstetich","html_url":"https://github.com/nstetich","followers_url":"https://api.github.com/users/nstetich/followers","following_url":"https://api.github.com/users/nstetich/following{/other_user}","gists_url":"https://api.github.com/users/nstetich/gists{/gist_id}","starred_url":"https://api.github.com/users/nstetich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstetich/subscriptions","organizations_url":"https://api.github.com/users/nstetich/orgs","repos_url":"https://api.github.com/users/nstetich/repos","events_url":"https://api.github.com/users/nstetich/events{/privacy}","received_events_url":"https://api.github.com/users/nstetich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nstetich/hubot","description":"Team Hubot server that we deploy to Cloud Foundry","fork":true,"url":"https://api.github.com/repos/nstetich/hubot","forks_url":"https://api.github.com/repos/nstetich/hubot/forks","keys_url":"https://api.github.com/repos/nstetich/hubot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nstetich/hubot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nstetich/hubot/teams","hooks_url":"https://api.github.com/repos/nstetich/hubot/hooks","issue_events_url":"https://api.github.com/repos/nstetich/hubot/issues/events{/number}","events_url":"https://api.github.com/repos/nstetich/hubot/events","assignees_url":"https://api.github.com/repos/nstetich/hubot/assignees{/user}","branches_url":"https://api.github.com/repos/nstetich/hubot/branches{/branch}","tags_url":"https://api.github.com/repos/nstetich/hubot/tags","blobs_url":"https://api.github.com/repos/nstetich/hubot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nstetich/hubot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nstetich/hubot/git/refs{/sha}","trees_url":"https://api.github.com/repos/nstetich/hubot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nstetich/hubot/statuses/{sha}","languages_url":"https://api.github.com/repos/nstetich/hubot/languages","stargazers_url":"https://api.github.com/repos/nstetich/hubot/stargazers","contributors_url":"https://api.github.com/repos/nstetich/hubot/contributors","subscribers_url":"https://api.github.com/repos/nstetich/hubot/subscribers","subscription_url":"https://api.github.com/repos/nstetich/hubot/subscription","commits_url":"https://api.github.com/repos/nstetich/hubot/commits{/sha}","git_commits_url":"https://api.github.com/repos/nstetich/hubot/git/commits{/sha}","comments_url":"https://api.github.com/repos/nstetich/hubot/comments{/number}","issue_comment_url":"https://api.github.com/repos/nstetich/hubot/issues/comments{/number}","contents_url":"https://api.github.com/repos/nstetich/hubot/contents/{+path}","compare_url":"https://api.github.com/repos/nstetich/hubot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nstetich/hubot/merges","archive_url":"https://api.github.com/repos/nstetich/hubot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nstetich/hubot/downloads","issues_url":"https://api.github.com/repos/nstetich/hubot/issues{/number}","pulls_url":"https://api.github.com/repos/nstetich/hubot/pulls{/number}","milestones_url":"https://api.github.com/repos/nstetich/hubot/milestones{/number}","notifications_url":"https://api.github.com/repos/nstetich/hubot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nstetich/hubot/labels{/name}","releases_url":"https://api.github.com/repos/nstetich/hubot/releases{/id}","created_at":"2015-04-08T23:42:22Z","updated_at":"2015-04-09T07:08:43Z","pushed_at":"2015-04-09T07:08:43Z","git_url":"git://github.com/nstetich/hubot.git","ssh_url":"git@github.com:nstetich/hubot.git","clone_url":"https://github.com/nstetich/hubot.git","svn_url":"https://github.com/nstetich/hubot","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"csterwa:master","ref":"master","sha":"443e84fe1a1cf869e6151f02e380e061ac16ad0f","user":{"login":"csterwa","id":573621,"avatar_url":"https://avatars.githubusercontent.com/u/573621?v=3","gravatar_id":"","url":"https://api.github.com/users/csterwa","html_url":"https://github.com/csterwa","followers_url":"https://api.github.com/users/csterwa/followers","following_url":"https://api.github.com/users/csterwa/following{/other_user}","gists_url":"https://api.github.com/users/csterwa/gists{/gist_id}","starred_url":"https://api.github.com/users/csterwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csterwa/subscriptions","organizations_url":"https://api.github.com/users/csterwa/orgs","repos_url":"https://api.github.com/users/csterwa/repos","events_url":"https://api.github.com/users/csterwa/events{/privacy}","received_events_url":"https://api.github.com/users/csterwa/received_events","type":"User","site_admin":false},"repo":{"id":33637932,"name":"hubot","full_name":"csterwa/hubot","owner":{"login":"csterwa","id":573621,"avatar_url":"https://avatars.githubusercontent.com/u/573621?v=3","gravatar_id":"","url":"https://api.github.com/users/csterwa","html_url":"https://github.com/csterwa","followers_url":"https://api.github.com/users/csterwa/followers","following_url":"https://api.github.com/users/csterwa/following{/other_user}","gists_url":"https://api.github.com/users/csterwa/gists{/gist_id}","starred_url":"https://api.github.com/users/csterwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csterwa/subscriptions","organizations_url":"https://api.github.com/users/csterwa/orgs","repos_url":"https://api.github.com/users/csterwa/repos","events_url":"https://api.github.com/users/csterwa/events{/privacy}","received_events_url":"https://api.github.com/users/csterwa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csterwa/hubot","description":"Team Hubot server that we deploy to Cloud Foundry","fork":false,"url":"https://api.github.com/repos/csterwa/hubot","forks_url":"https://api.github.com/repos/csterwa/hubot/forks","keys_url":"https://api.github.com/repos/csterwa/hubot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csterwa/hubot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csterwa/hubot/teams","hooks_url":"https://api.github.com/repos/csterwa/hubot/hooks","issue_events_url":"https://api.github.com/repos/csterwa/hubot/issues/events{/number}","events_url":"https://api.github.com/repos/csterwa/hubot/events","assignees_url":"https://api.github.com/repos/csterwa/hubot/assignees{/user}","branches_url":"https://api.github.com/repos/csterwa/hubot/branches{/branch}","tags_url":"https://api.github.com/repos/csterwa/hubot/tags","blobs_url":"https://api.github.com/repos/csterwa/hubot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csterwa/hubot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csterwa/hubot/git/refs{/sha}","trees_url":"https://api.github.com/repos/csterwa/hubot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csterwa/hubot/statuses/{sha}","languages_url":"https://api.github.com/repos/csterwa/hubot/languages","stargazers_url":"https://api.github.com/repos/csterwa/hubot/stargazers","contributors_url":"https://api.github.com/repos/csterwa/hubot/contributors","subscribers_url":"https://api.github.com/repos/csterwa/hubot/subscribers","subscription_url":"https://api.github.com/repos/csterwa/hubot/subscription","commits_url":"https://api.github.com/repos/csterwa/hubot/commits{/sha}","git_commits_url":"https://api.github.com/repos/csterwa/hubot/git/commits{/sha}","comments_url":"https://api.github.com/repos/csterwa/hubot/comments{/number}","issue_comment_url":"https://api.github.com/repos/csterwa/hubot/issues/comments{/number}","contents_url":"https://api.github.com/repos/csterwa/hubot/contents/{+path}","compare_url":"https://api.github.com/repos/csterwa/hubot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csterwa/hubot/merges","archive_url":"https://api.github.com/repos/csterwa/hubot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csterwa/hubot/downloads","issues_url":"https://api.github.com/repos/csterwa/hubot/issues{/number}","pulls_url":"https://api.github.com/repos/csterwa/hubot/pulls{/number}","milestones_url":"https://api.github.com/repos/csterwa/hubot/milestones{/number}","notifications_url":"https://api.github.com/repos/csterwa/hubot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csterwa/hubot/labels{/name}","releases_url":"https://api.github.com/repos/csterwa/hubot/releases{/id}","created_at":"2015-04-08T23:34:12Z","updated_at":"2015-04-08T23:37:51Z","pushed_at":"2015-04-08T23:37:51Z","git_url":"git://github.com/csterwa/hubot.git","ssh_url":"git@github.com:csterwa/hubot.git","clone_url":"https://github.com/csterwa/hubot.git","svn_url":"https://github.com/csterwa/hubot","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/csterwa/hubot/pulls/1"},"html":{"href":"https://github.com/csterwa/hubot/pull/1"},"issue":{"href":"https://api.github.com/repos/csterwa/hubot/issues/1"},"comments":{"href":"https://api.github.com/repos/csterwa/hubot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/csterwa/hubot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/csterwa/hubot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/csterwa/hubot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/csterwa/hubot/statuses/5424bff210be291be36c3ad017f27890effca1b8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":57,"deletions":1,"changed_files":3}}