{"action":"created","issue":{"url":"https://api.github.com/repos/probot/no-response/issues/28","repository_url":"https://api.github.com/repos/probot/no-response","labels_url":"https://api.github.com/repos/probot/no-response/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/probot/no-response/issues/28/comments","events_url":"https://api.github.com/repos/probot/no-response/issues/28/events","html_url":"https://github.com/probot/no-response/pull/28","id":366866723,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNDM2OTA3","number":28,"title":"If failure occurs when posting close comment, don't close issue","user":{"login":"jasonrudolph","id":2988,"node_id":"MDQ6VXNlcjI5ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2988?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonrudolph","html_url":"https://github.com/jasonrudolph","followers_url":"https://api.github.com/users/jasonrudolph/followers","following_url":"https://api.github.com/users/jasonrudolph/following{/other_user}","gists_url":"https://api.github.com/users/jasonrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonrudolph/subscriptions","organizations_url":"https://api.github.com/users/jasonrudolph/orgs","repos_url":"https://api.github.com/users/jasonrudolph/repos","events_url":"https://api.github.com/users/jasonrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/jasonrudolph/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-04T16:15:00Z","updated_at":"2018-10-04T17:33:40Z","closed_at":"2018-10-04T17:24:42Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/probot/no-response/pulls/28","html_url":"https://github.com/probot/no-response/pull/28","diff_url":"https://github.com/probot/no-response/pull/28.diff","patch_url":"https://github.com/probot/no-response/pull/28.patch"},"body":"Fixes #24 ... probably 🤞\r\n\r\n### Context\r\n\r\nhttps://github.com/probot/no-response/issues/24 describes a problem where probot/no-response sometimes closes an issue without posting a comment. We suspect that probot/no-response is attempting to post a comment but is having the comment rejected by GitHub's abuse prevention rate limits, similar to the issue experienced by probot/stale in https://github.com/probot/stale/issues/26.\r\n\r\n### Proposed remedy\r\n\r\nFollowing the approach implemented in https://github.com/probot/stale/pull/64, this pull request updates probot/no-response to first attempt to post the comment saying that it is closing the issue. If it successfully posts the comment, then it closes the issue. If an error occurs when posting the comment, it does not close the issue.\r\n\r\n### Verification process\r\n\r\nUsing a [locally-running instance](https://probot.github.io/docs/development/#running-the-app-locally) of probot/no-response:\r\n\r\n1. Install the local probot/no-response app on a repository on github.com\r\n2. Ensure that the repository has an issue that has gone more than `daysUntilClose` without a response from the issue author\r\n3. Test the behavior affected by this pull request:\r\n    - [x] Run the `sweep` function and use [Little Snitch](https://www.obdev.at/products/littlesnitch/index.html) to block the HTTP request that attempts to post the comment. Verify that the comment is not posted and the issue is not closed.\r\n    - [x] Configure Little Snitch to allow all HTTP requests to flow in/out of the app. Run the `sweep` function and verify that it leaves a comment and closes the issue.\r\n\r\n---\r\n\r\n/cc @lee-dohm for review"},"comment":{"url":"https://api.github.com/repos/probot/no-response/issues/comments/427105110","html_url":"https://github.com/probot/no-response/pull/28#issuecomment-427105110","issue_url":"https://api.github.com/repos/probot/no-response/issues/28","id":427105110,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzEwNTExMA==","user":{"login":"jasonrudolph","id":2988,"node_id":"MDQ6VXNlcjI5ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/2988?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonrudolph","html_url":"https://github.com/jasonrudolph","followers_url":"https://api.github.com/users/jasonrudolph/followers","following_url":"https://api.github.com/users/jasonrudolph/following{/other_user}","gists_url":"https://api.github.com/users/jasonrudolph/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonrudolph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonrudolph/subscriptions","organizations_url":"https://api.github.com/users/jasonrudolph/orgs","repos_url":"https://api.github.com/users/jasonrudolph/repos","events_url":"https://api.github.com/users/jasonrudolph/events{/privacy}","received_events_url":"https://api.github.com/users/jasonrudolph/received_events","type":"User","site_admin":true},"created_at":"2018-10-04T17:33:40Z","updated_at":"2018-10-04T17:33:40Z","author_association":"CONTRIBUTOR","body":"@lee-dohm: Thanks for the lightning fast review. :zap::bow:"}}
{"actor":{"display_login":"jasonrudolph"}}