Commit graph

96 commits

Author SHA1 Message Date
jesopo
14f2fd6a03 split github webhook logic in to a more general webhook module 2019-06-24 14:52:37 +01:00
jesopo
2f4475a70f colorise ref for delete event, same as for create event 2019-06-22 22:42:52 +01:00
jesopo
98e1202c78 Allow command.regex hooks to opt-in to being triggered from a /me
closes #68
2019-06-16 18:40:25 +01:00
jesopo
4b61f837fb 'timeout' -> 'cooldown'. closes #60 2019-06-16 17:05:40 +01:00
jesopo
002e1333a4 Add auto-github-timeout to prevent duplicate auto-githubs 2019-06-16 16:57:22 +01:00
jesopo
2199069629 Better formating for pull_request ready_for_review event 2019-06-07 11:29:11 +01:00
jesopo
6b7705a0ea Fix commit_comment format string and show url 2019-06-05 11:40:23 +01:00
jesopo
113a3b6405 re.escape nicknames for highlight prevention 2019-05-28 08:18:42 +01:00
jesopo
268c5adb3c Add depends-on hashflags to relevant modules 2019-05-25 21:40:06 +01:00
jesopo
1fb4936fad Don't eat a character when preventing highlights 2019-05-24 21:33:01 +01:00
jesopo
4d4271435d Use regex to prevent highlights in github module 2019-05-24 21:28:43 +01:00
jesopo
cf29c37112 Add usage examples for all settings 2019-05-23 10:28:14 +01:00
jesopo
8cc0b84e53 event.eat() for command.regex hooks in github module 2019-05-22 22:31:03 +01:00
jesopo
f066dbb232 url_match -> event["match"] 2019-05-22 19:03:51 +01:00
jesopo
451d0c5928 typo, 'preix' -> 'prefix' 2019-05-21 15:39:54 +01:00
jesopo
73c3068a8d event["channel"] -> event["target"] 2019-05-21 13:53:36 +01:00
jesopo
2fcaf68f0e Move regex-based github info to command.regex hooks 2019-05-21 09:54:18 +01:00
jesopo
e7edd9997f regex fix, move '+' inside capturing group 2019-05-18 11:13:19 +01:00
jesopo
0a89682816 match.group(0) -> ref 2019-05-18 11:07:42 +01:00
jesopo
c474702afb Catch github urls in auto-github 2019-05-18 11:05:38 +01:00
jesopo
eaee51f677 Don't try to set repo to org after we've already changed org 2019-05-17 10:28:34 +01:00
jesopo
5513cc3a80 change REGEX_ISSUE to actually accept a repo name without org name 2019-05-17 10:28:18 +01:00
jesopo
f3d9fbb216 Actually assume the provided "org" is the repo when repo isn't provided 2019-05-17 10:14:49 +01:00
jesopo
3411f12fc4 Use github-default-repo to fill in org when org is missing but repo isn't 2019-05-17 10:10:27 +01:00
jesopo
3bbc4b3b77 server -> event["server"] 2019-05-16 14:28:20 +01:00
jesopo
385a4e3d4e channel -> event["channel"] 2019-05-16 14:27:07 +01:00
jesopo
ce1558e48b Catch-and-bury utils.EventError in auto-github code 2019-05-16 14:25:37 +01:00
jesopo
54e8fc8029 \S not \s in github issue ref regex 2019-05-16 14:25:18 +01:00
jesopo
7ce6af53f7 _parse_pull and _parse_issue shouldn't have an event param anymore 2019-05-16 14:20:50 +01:00
jesopo
a2321c693c _gh_* functions were renamed 2019-05-16 14:18:42 +01:00
jesopo
20514cc871 Add auto-github setting to automatically match and resolve github issue/pr
refs
2019-05-16 14:17:04 +01:00
jesopo
b75fc02c4b Add comment to clarify why we ignore 1-letter-nicks in _prevent_highlight 2019-05-14 11:01:31 +01:00
jesopo
69691e9c79 Don't prevent highlights for single-letter nicknames 2019-05-14 10:50:47 +01:00
jesopo
e09529260a Pass server object in to _prevent_highlight 2019-05-14 10:24:31 +01:00
jesopo
9aeee86165 use irc_lower for preventing highlights, only lower() when needed 2019-05-14 10:15:52 +01:00
jesopo
26f63410f2 Provide missing % formatting param for github release events
closes #52
2019-05-12 22:09:19 +01:00
jesopo
009daaeb62 Give empty array arg to WARN call in github module 2019-05-04 08:26:27 +01:00
jesopo
dc102f258d Add Database.servers.get_by_alias, move IRCBot.get_server to
IRCBot.get_server_by_id, add IRCBot.get_server_by_alias and change
!connect/!disconnect to take aliases instead of IDs
2019-04-24 12:07:30 +01:00
jesopo
537613545d Only show 'submitted' pull_request_review events 2019-04-17 10:33:12 +01:00
jesopo
959d6a067c Only show no-commit pushes when it's a force 2019-04-16 10:24:55 +01:00
jesopo
cc203f1756 Show a push event even when there's no commits in it 2019-04-16 10:20:11 +01:00
jesopo
9e79320d50 'closed #123 without merging' -> 'closed #123' 2019-04-11 13:09:30 +01:00
jesopo
e6a32a8bb9 Don't handle commented state in pull_request_review 2019-03-19 16:10:59 +00:00
jesopo
c4458653d2 Added some -minimal categories for comment-related events 2019-03-15 21:13:39 +00:00
jesopo
6cd171b7d8 'title' -> 'pr_title' 2019-03-15 19:28:37 +00:00
jesopo
4388d17b99 Better display for approval/changes_requested in pull request reviews 2019-03-15 10:33:02 +00:00
jesopo
be77188e71 Don't use short/coloured hash for shortened urls (github) 2019-03-14 13:58:42 +00:00
jesopo
c2eb96882a show short commit hash in individual push messages (github) 2019-03-10 10:31:32 +00:00
jesopo
b9fa74dbb5 Move PR number into/after action for pull_request events 2019-03-07 08:35:29 +00:00
jesopo
b549a28bed 'pull' -> 'PR' in !ghpull 2019-03-05 11:41:24 +00:00