Commit graph

77 commits

Author SHA1 Message Date
jesopo
1d777f88b3 support "event category" for github so we can e.g. show only approvals 2019-11-01 13:30:31 +00:00
jesopo
96d175bc31 fix Gitea release event return 2019-11-01 10:28:47 +00:00
jesopo
18223a40ef use the same formatting for "confidential_note" as "note" 2019-10-28 14:25:26 +00:00
jesopo
5a095b0787 support confidential notes on gitlab webhooks 2019-10-28 14:21:54 +00:00
jesopo
69e2511725 filter() needs a None arg 2019-10-28 14:14:46 +00:00
jesopo
7287d9d083 we still need to pass the base "event" to handler.webhook 2019-10-28 14:13:14 +00:00
jesopo
12abf0c271 'action' -> 'event_action' 2019-10-28 14:12:20 +00:00
jesopo
7766c889f4 support event 'category' for GitLab (e.g. Note events but only for Issues) 2019-10-28 14:10:42 +00:00
jesopo
9eacdee086 "id" -> "iid" 2019-10-28 12:38:29 +00:00
jesopo
d20ff91e99 'issue_comment' -> 'issue_note', fix issue id referencing 2019-10-28 12:37:21 +00:00
jesopo
6e16ed8d5e pass confidential_issue through same parsing func as issue
closes #193
2019-10-28 11:20:46 +00:00
jesopo
802aa35e3d support GitLab confidential issues 2019-10-28 11:17:56 +00:00
jesopo
9053b2245c we want both sides of the .split 2019-10-25 22:46:02 +01:00
jesopo
f92f2c9cc1 make repo_username the subgroup when present 2019-10-25 22:37:03 +01:00
jesopo
bbd7a58914 support gitlab subgroups in git_webhooks 2019-10-25 22:32:01 +01:00
jesopo
6a2e4f70df re-add lost git_webhook branch filtering 2019-10-25 11:29:27 +01:00
jesopo
39d14102f9 support channels GET param for git webhooks, to denote target channels 2019-10-25 10:09:17 +01:00
jesopo
31531949ce flip create/delete tag detection logic 2019-10-20 13:39:04 +01:00
jesopo
a4fbc150c8 add missing ] 2019-10-20 13:36:26 +01:00
jesopo
b152c5e3a7 return None url param for tag_push 2019-10-20 13:34:41 +01:00
jesopo
e0403aa3d2 added gitlab Tag Push events 2019-10-20 12:51:11 +01:00
jesopo
ae549575e4 still show url when shortening is turned off 2019-10-19 18:58:29 +01:00
jesopo
4cce0bb54e dont shorten git webhook urls by default 2019-10-19 17:09:04 +01:00
jesopo
480a4f73a9 remove now-unused formatting params for urls 2019-10-18 14:07:34 +01:00
jesopo
86147ded77 pass git_webhook urls up to __init__.py to be shortened 2019-10-18 14:03:20 +01:00
jesopo
2b4f5dc75b correctly color/phrase opened, closed and merged for MRs 2019-10-18 13:31:21 +01:00
jesopo
afd6800c98 show merge_request/merge events 2019-10-18 13:28:24 +01:00
jesopo
7d786baa65 "PR"->"MR" again, "open"->"opened" etc for MRs too 2019-10-18 12:20:23 +01:00
jesopo
b151e7eecd 'PR' -> 'MR' (they're "merge requests" on gitlab, not "pull requests") 2019-10-18 12:02:56 +01:00
jesopo
963d0d2de7 'opened' -> 'open' etc for gitlab event categories 2019-10-18 11:58:10 +01:00
jesopo
53b2407072 'open' -> 'opened' etc for gitlab issue webhook actions 2019-10-18 11:19:16 +01:00
jesopo
123cdcf0da pull_request -> merge_request 2019-10-18 03:52:59 +01:00
jesopo
8ff4ad19eb we should be showing 'title' (not 'description') for gitlab issue events 2019-10-17 11:50:57 +01:00
jesopo
a6093092b1 'issues' should be an alias for 'issue' in gitlab 2019-10-17 11:49:07 +01:00
jesopo
491ad531c2 mapped event names for gitlab webhooks should be 'issue' not 'issues' 2019-10-15 16:20:41 +01:00
jesopo
f0a9f00b57 'issues' -> 'issue', 'pull_request' -> 'merge_request' 2019-10-15 16:14:15 +01:00
jesopo
2f94e7546f actually instantiate gitlab in git_webhooks/__init__.py 2019-10-15 16:10:18 +01:00
jesopo
be30cb81af add first draft of gitlab webhook support 2019-10-15 16:04:30 +01:00
jesopo
205049ab6f remove unused util functions in git_webhooks/gitea.py 2019-10-15 10:53:29 +01:00
jesopo
8d3a35e740 'ref' doesn't always come in "a/b/c" format for Gitea 2019-09-24 13:00:08 +01:00
jesopo
32a9a39e88 'hooked_repos_lowers' -> 'hooked_repos_lower' 2019-09-15 19:59:40 +01:00
jesopo
c8ece388cc use detect_encoding=False in github webhook url shortening 2019-09-09 16:08:51 +01:00
jesopo
786117b998 add a bot-wide setting to allow showing git webhook activity for private repos
closes #127
2019-09-04 11:15:59 +01:00
jesopo
0b192d0feb count numeric OR non-alphanumeric as a word boundary 2019-08-16 15:33:34 +01:00
jesopo
bd5bc81d1c match .lower() repo names against .lower() hooked repo names 2019-08-14 15:28:20 +01:00
jesopo
b692bc7e88 Show new label for PR 'labeled' events 2019-07-09 09:46:25 +01:00
jesopo
6626f60a64 show new label for issue 'labeled' events 2019-07-09 09:42:42 +01:00
jesopo
2885b41bbb .lower()ify webhook repo names for case insensitive checks 2019-07-08 23:14:26 +01:00
jesopo
93b455d5b8 Don't double-shorten push range urls 2019-07-02 07:31:26 +01:00
jesopo
ae9d099a41 Refactor set/channelset/serverset/botset in to 'utils.Setting' objects 2019-06-28 23:16:05 +01:00