...
 
Commits (2)
{
"name": "fxabot",
"version": "0.2.1",
"version": "0.2.2",
"private": true,
"description": "Downtrodden dogsbody for the Firefox Accounts team.",
"keywords": [
......
......@@ -58,7 +58,8 @@ module.exports = robot => {
pollInterval = parseInt(response.headers['x-poll-interval']) * 1000
}
if (Array.isArray(response.body)) {
const events = JSON.parse(response.body)
if (Array.isArray(events)) {
const prs = new Set()
response.body.forEach(event => {
const { action, number, pull_request: pr } = event.payload
......