facebookarchive/mention-bot

Delay feature breaks mention-bot

cachedout opened this issue · 0 comments

If the delay feature is enabled, mention-bot no longer works. Instead, the logs show something similar to the following:

Skipping because action is undefined. We only care about: "opened"

This appears to be because this function is expecting currentData to contain the full payload from GitHub, which contains an action key. Instead, it contains only the contents of the pull_request key. After removing the delayed option from our mention-bot configuration, full functionality was restored.