{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/mention-bot/issues/182","repository_url":"https://api.github.com/repos/facebook/mention-bot","labels_url":"https://api.github.com/repos/facebook/mention-bot/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/facebook/mention-bot/issues/182/comments","events_url":"https://api.github.com/repos/facebook/mention-bot/issues/182/events","html_url":"https://github.com/facebook/mention-bot/pull/182","id":186051717,"number":182,"title":"Fix Error Message Check for GitHub Enterprise","user":{"login":"tuliren","id":1933157,"avatar_url":"https://avatars.githubusercontent.com/u/1933157?v=3","gravatar_id":"","url":"https://api.github.com/users/tuliren","html_url":"https://github.com/tuliren","followers_url":"https://api.github.com/users/tuliren/followers","following_url":"https://api.github.com/users/tuliren/following{/other_user}","gists_url":"https://api.github.com/users/tuliren/gists{/gist_id}","starred_url":"https://api.github.com/users/tuliren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuliren/subscriptions","organizations_url":"https://api.github.com/users/tuliren/orgs","repos_url":"https://api.github.com/users/tuliren/repos","events_url":"https://api.github.com/users/tuliren/events{/privacy}","received_events_url":"https://api.github.com/users/tuliren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-29T01:26:41Z","updated_at":"2016-10-29T01:31:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/mention-bot/pulls/182","html_url":"https://github.com/facebook/mention-bot/pull/182","diff_url":"https://github.com/facebook/mention-bot/pull/182.diff","patch_url":"https://github.com/facebook/mention-bot/pull/182.patch"},"body":"`server.js` checks the existence of the `.mention-bot` config file by comparing the error message strictly with the following string:\r\n```\r\n{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3\"}\r\n````\r\n\r\nHowever, this URL does not work with the enterprise GitHub. For example, the error message we got is:\r\n```\r\n{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/enterprise/2.6/v3\"}'\r\n```\r\nThis pull request takes care of this issue by replacing the `===` with `string#match`.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/mention-bot/issues/comments/257062862","html_url":"https://github.com/facebook/mention-bot/pull/182#issuecomment-257062862","issue_url":"https://api.github.com/repos/facebook/mention-bot/issues/182","id":257062862,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T01:31:54Z","updated_at":"2016-10-29T01:31:54Z","body":"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!"}}
{"actor":{"display_login":"facebook-github-bot"}}