Closed awiddersheim closed 8 years ago
@stephenyeargin Anything I can do to get this merged?
Because it would introduce new functionality, I'm a little more cautious on it. Concern would be if it breaks anyone that set up their service with underscores. Maybe a quoted string is a better approach?
@hubot-scripts/hubot-pager-me: Any thoughts?
I could try and get a quoted string working the way I'd want without requiring everyone to use them.
The beauty of this is you don't have to specify anything for HUBOT_PAGERDUTY_CHAR_TO_SPACE
and nothing will change and you can use any character(s) to transform into a space. Doesn't have to be an underscore.
I may have a regex solution that I'll play with for a bit and get back to you.
Closing in favor of #89.
Added
HUBOT_PAGERDUTY_CHAR_TO_SPACE
option which allows for converting a specific char into a space. For example, by setting this option to_
this will transformFoo_Bar
toFoo Bar
. This is useful for anyone who has usernames or schedules that contain spaces and do not wish to change them. Here is a more verbose example:This will trigger the
Foo Bar
schedule.