Граф коммитов

303 Коммитов

Автор SHA1 Сообщение Дата
Kamil Gwóźdź 1084d4d963
update hubot (#42) 2022-09-07 15:21:11 +02:00
Kamil Gwóźdź 123a0942f8
update depencencies (#41)
run `npm audit fix --force`
2022-09-07 14:29:06 +02:00
Kamil Gwóźdź b37ea4ee50
add package-lock.json (#39) 2022-09-07 14:03:54 +02:00
Roye Tadmor 40bfc0cfe9
Enforce reason when paging (#38) 2022-06-15 16:10:54 +03:00
Dhruv Saraiya 708a4cf7c4
update packages escalation policy name (#37) 2022-04-05 13:31:20 +03:00
Michael Baumgarten c347d20584
Merge pull request #35 from github/mention-regex-fix
fix regex in trigger to accept '@' character
2022-02-21 15:46:50 +01:00
mbaum0 ada02c287f fix regex in trigger to accept '@' character 2022-02-21 13:37:19 +01:00
Issy Long 65c0dde1c8
Merge pull request #33 from akennihan/master
Return Multiple On Calls
2021-10-21 15:56:36 +01:00
Andrew Kennihan 451a58770b Update who is on call command to display all results for a given query (up to 25).
Co-authored-by: Dan Rigby <danrigby@github.com>
Co-authored-by: Andrew Kennihan <akennihan@github.com>
2021-10-18 16:07:36 -04:00
Jamie Hannaford 266ba14222
Merge pull request #30 from github/deprecate-incident-commanders
Don't page ICs, return deprecation text
2020-09-02 16:57:13 +02:00
Jamie Hannaford 913e92ca3f
Fix schedule name 2020-07-15 11:30:12 +02:00
Jamie Hannaford a69397a5da
Don't page ICs, return deprecation text 2020-07-15 11:25:05 +02:00
Stephan Miehe 151f745a62
Merge pull request #28 from github/stephanmiehe-ratelimit
Reduce API load when showing list of schedules
2019-12-19 23:11:03 +00:00
stephanmiehe 35c593da8a Updated messaging 2019-12-19 22:36:31 +00:00
stephanmiehe 3a834d51b2 Updated messaging 2019-12-19 12:59:34 +00:00
stephanmiehe 3e12e0dd40 Merge branch 'stephanmiehe-ratelimit' of https://github.com/github/hubot-pager-me into stephanmiehe-ratelimit 2019-12-19 10:12:23 +00:00
stephanmiehe ccf565c4a6 Message fix 2019-12-19 10:12:15 +00:00
stephanmiehe c2ae6c73bf Message fix 2019-12-19 09:58:55 +00:00
Stephan Miehe e9ea427f77
Reduce API load when showing list of schedules 2019-12-19 09:35:55 +00:00
Andrew Hayworth febc4552bd
Merge pull request #23 from github/ahayworth-pager-trigger-syntax-improvements
Show non-api-related pagerduty schedule errors to the user
2019-08-15 10:24:01 -05:00
Dennis Kaarsemaker 6a57d5ca23
Merge pull request #24 from github/quiet-canary
Ignore prometheus canaries too by default
2019-06-19 19:41:51 +02:00
Dennis Kaarsemaker 143aeb7f98 Ignore prometheus canaries too by default 2019-06-13 17:16:35 +02:00
Andrew Hayworth 86cad94877 Show non-api-related pagerduty schedule errors to the user
If you try to page a non-existent schedule, or the schedule is marked
'#nopage', or something - the callback spaghetti actually generates a
decent error here. Rather than just spitting out to haystack, we could
send it to the user, and this PR does just that.

Other places in the script do not explicitly construct `new Error()`s,
so I didn't bother working on that. This script is difficult to follow
and I'm hesitant to make broader changes on a whim.
2019-05-02 09:21:39 -05:00
Andrew Hayworth 02fb52afbe
Merge pull request #22 from github/ahayworth-pager-trigger-syntax-improvements
Stop requiring users to say 'pager trigger team critical'
2019-04-11 18:54:17 -05:00
Andrew Hayworth 42f6e9d7c6 Stop requiring users to say 'pager trigger team critical'
People almost *always* mean 'critical'. We can leave it as optional
syntax for those who wish to specify an 'info' page.
2019-04-09 10:26:49 -05:00
Misty De Meo ffcdf9dcdd
Merge pull request #21 from github/match_single_user
Filter users to match email precisely
2019-01-07 11:40:33 +08:00
Misty De Meo 042720cf2e Ensure return happens consistently 2019-01-07 14:30:13 +11:00
Misty De Meo 95f14f3e0f Filter users to match email precisely
Since user matching is done fuzzily, we might get multiple results for
certain emails. Instead of immediately bailing it, let's check for an
exact match before giving up.
2019-01-07 12:14:21 +11:00
Andrew Hayworth 54bec2642c
Merge pull request #20 from github/ahayworth-whos-on-call-improvements
Improvements to `who's on call`
2018-10-11 12:16:52 -05:00
Andrew Hayworth f2f12baa19 Move angle bracket to the end 2018-10-11 11:54:19 -05:00
Andrew Hayworth 9d2364db48 Try harder not to @-mention
- Just remove the @
- Also add a "pls wait" message in a few places
2018-10-11 11:47:00 -05:00
Andrew Hayworth 50a4bb4daf Don't accidentally at-mention people all the time 2018-10-11 11:29:00 -05:00
Andrew Hayworth e36760e02b Improve response to `hubot pager schedule(s)?`
We can give similar improvements here:
- bullet points
- linkify things
- guess a slack handle
2018-10-10 11:54:31 -05:00
Andrew Hayworth d3969887f0 Fix small bug in response
Entries always returns as an array (just sometimes empty) here, so
we'd otherwise never see the response. People might think hubot was
having struggles.
2018-10-10 11:53:42 -05:00
Andrew Hayworth 8eee6c7c71 Improve output of `hubot pager schedules`
In a similar fashion to other commits, make the links easier to scan,
use nice bullet points, and chunk the results to avoid truncation.
2018-10-10 11:28:09 -05:00
Andrew Hayworth 7eece8d441 Add link to user's slack handle, if we know it
There should be a mostly 1:1 mapping between PD emails and slack handles,
except for one notable, legacy exception that I learned about.

The thought is that this will be more useful to people than just a pagerduty link.
2018-10-10 11:19:05 -05:00
Andrew Hayworth e151b23986 Chunk pagerduty schedule responses
Slack truncates messages around the 8000 character boundary, so we
should take care never to send a message longer than that length.

To do this, we add a chunking function, and send each chunk as a separate
message.

We could alternatively get around this by creating snippets or by using
"Posts" (which I think is relatively new), but this preserves the behavior
of the current integration a little bit better in my opinion.
2018-10-09 14:02:20 -05:00
Andrew Hayworth 8ab6881a38 Render a better on-call list with bullets and links
We can take advantage of Slack's message formatting to make this output
easier to read. Specifically, we can remove the visual noise of the expanded
URLs (and instead linkifiy the name of the schedule), and we can also
easily include a link to the name of the person on-call (which may be useful
when trying to contact that person).
2018-10-09 14:02:03 -05:00
Andrew Hayworth e0e7212101 Stop displaying schedules with nobody on-call
By my count, this will shrink the `who's on call` output by at least
23 lines, before Slack cuts off the response.
2018-10-09 14:01:36 -05:00
Andrew Hayworth 4440688bb8 Revert accidental push
I was going to push this to a branch, but I'm bad at git.

This reverts commit 3b91a1ac0c.
This reverts commit 427e144b6e.
This reverts commit df1ba44188.
2018-10-09 13:58:16 -05:00
Andrew Hayworth df1ba44188 Chunk pagerduty schedule responses
Slack truncates messages around the 8000 character boundary, so we
should take care never to send a message longer than that length.

To do this, we add a chunking function, and send each chunk as a separate
message.

We could alternatively get around this by creating snippets or by using
"Posts" (which I think is relatively new), but this preserves the behavior
of the current integration a little bit better in my opinion.
2018-10-09 12:40:03 -05:00
Andrew Hayworth 427e144b6e Render a better on-call list with bullets and links
We can take advantage of Slack's message formatting to make this output
easier to read. Specifically, we can remove the visual noise of the expanded
URLs (and instead linkifiy the name of the schedule), and we can also
easily include a link to the name of the person on-call (which may be useful
when trying to contact that person).
2018-10-09 12:38:42 -05:00
Andrew Hayworth 3b91a1ac0c Stop displaying schedules with nobody on-call
By my count, this will shrink the `who's on call` output by at least
23 lines, before Slack cuts off the response.
2018-10-09 11:47:47 -05:00
Dennis Kaarsemaker b71a8952ee
Merge pull request #19 from github/quiet-canary
Optionally include the nines canaries
2018-09-11 10:53:11 +02:00
Dennis Kaarsemaker 997a94b9c1 Optionally include the nines canaries
I was a bit too enthusiastic in always ignoring them, they have value
when there's actually a problem with pagerduty.
2018-09-10 17:02:07 +02:00
Dennis Kaarsemaker 6b4c6d32d0
Merge pull request #18 from github/quiet-canary
Don't distract with canary alerts
2018-09-06 13:36:38 +02:00
Nathan Stocks 9ef661c59d
Merge pull request #17 from github/way-to-hide-schedules2
Way to hide schedules (2nd attempt)
2018-09-04 15:24:42 -06:00
Dennis Kaarsemaker f17b7e2529 Don't distract with canary alerts
.pager sup no longer includes the canary alarms, to avoid distracting
people with them.
2018-09-03 11:19:08 +02:00
Nathan Stocks 1c8ec6f045
Merge pull request #16 from github/revert-15-way-to-hide-schedules
Merging this without review, because I want to avoid other people experiencing problems similar to @seveas
2018-08-31 10:53:30 -06:00
Nathan Stocks bec9592fe6 Another attempt at correctly implementing a way to hide schedules 2018-08-31 10:01:44 -06:00