hubot-archive / hubot-pager-me

PagerDuty integration for Hubot
https://www.npmjs.com/package/hubot-pager-me
MIT License
73 stars 93 forks source link

Check for empty match on incident lookup #224

Closed stephenyeargin closed 5 months ago

stephenyeargin commented 5 months ago

Prior to this PR, a single incident lookup that didn't return a result would cause a TypeError when attempting to read its title. This PR addresses that by ensuring that an invalid incident doesn't get that far, instead returning an error message. Additionally, fixes a case where an schedule starting with Incident cannot be claimed.

Fixes #223