Commit graph

117 commits

Author SHA1 Message Date
jess
7b1ad1e8ad
Merge pull request #312 from examknow/patch-6
Move highlight prevention before urls
2021-05-31 16:29:42 +01:00
Aaron Jones
81dd0d2bd5
GitHub PRs: Correctly attribute PR authors
Untested; just judging by the JSON contents of a successfully
develivered webhook payload that triggered a misattribution.
2021-05-30 15:57:23 +00:00
David Schultz
e5e94501eb
move highlight prevention before urls 2021-05-09 17:23:50 -05:00
jesopo
bfb34a4eb9 switch from check_run to check_suite for github webhooks 2021-02-15 21:44:32 +00:00
jesopo
a91c03421f show PRs on check_run output where possible 2020-10-18 00:37:05 +00:00
jesopo
c4c6fdde1c support check_run.status as a category+[status] 2020-10-17 17:13:52 +00:00
jesopo
09cfae75b8 github.py needs exports from git_webhooks 2020-10-17 14:07:02 +00:00
Alyx Wolcott
027b9d75f8 Add parameter checking so bitbot doesn't add a None webhook and break webhooks until restart 2020-09-23 09:25:43 -05:00
jesopo
49d9cbdb87 exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
jesopo
c7e3e42728 "=", not "==", for picking gitlab note object type 2020-02-17 16:27:51 +00:00
jesopo
f43efbabcc support gitlab wiki events 2020-02-17 11:52:32 +00:00
jesopo
df2240204d github PR events should use ["sender]["login"], not PR author 2020-02-17 11:39:09 +00:00
jesopo
1400fe5ce4 only purposefully show PR title on PR push events 2020-02-12 15:21:41 +00:00
jesopo
cc7c66883d show PR title in pull_request events 2020-02-12 11:35:18 +00:00
jesopo
6e90bf2412 show issue/pr title for issue_comment events 2020-02-10 10:37:27 +00:00
jesopo
d588760fc4 update other modules to use categorised require_access 2020-02-07 00:11:28 +00:00
jesopo
e65fecd1b2 actually return gitlab _note result 2020-02-03 19:35:54 +00:00
jesopo
c0f5367d34 pull project name from "project_name" when "project" doesn't exist 2020-02-03 11:36:47 +00:00
jesopo
18b27c256e check git-show-private *after* we have unfiltered_targets 2020-02-01 00:23:41 +00:00
jesopo
b4b610ec18 Revert "support gitea respository["private"] as well as project["visibility_level"]"
This reverts commit 7f659837ab.
2020-02-01 00:09:28 +00:00
jesopo
7f659837ab support gitea respository["private"] as well as project["visibility_level"] 2020-01-31 08:00:21 +00:00
jesopo
d0d5cc4d08 split utils.datetime out in to .parse and .format 2020-01-30 21:20:56 +00:00
jesopo
5c249ac6d6 'type'->'object'; 'type' is already in use 2020-01-29 11:12:56 +00:00
jesopo
c831984e20 'object'->'type' 2020-01-28 01:18:48 +00:00
jesopo
2bf277bbfc MergeRequest Notes do not have an "issue" item 2020-01-27 15:14:59 +00:00
jesopo
2e3a53a899 support gitlab MR/issue actions that we don't know about 2020-01-22 12:45:15 +00:00
jesopo
10676d70a6 default bot-wide private webhooks to enabled but per-channel disabled 2020-01-22 07:10:32 +00:00
jesopo
4346375a48 ignore gitlab issues events that have no action 2020-01-21 18:12:15 +00:00
jesopo
08162f8505 show issues/transferred by default for github webhooks 2020-01-05 23:20:08 +00:00
jesopo
c5bc9577df s_line, not s 2019-12-13 06:03:54 +00:00
jesopo
10e7e30150 only show the first line of a comment body 2019-12-12 12:18:36 +00:00
jesopo
8a265da8bf by default, show locked/unlocked events for issues/PRs 2019-12-06 07:11:31 +00:00
jesopo
2d21dfa229 utils.http.Response.data should always be bytes - add .decode and .soup 2019-11-26 13:42:01 +00:00
jesopo
531bc65889 explicitly say when an issue/PR was renamed
closes #209
2019-11-25 12:01:33 +00:00
jesopo
2c8a94dc4c show who opened a pull request for pull_request events when appropriate 2019-11-19 17:14:31 +00:00
jesopo
502dae0d75 'event["comment"]' -> 'data["comment"]' 2019-11-19 12:24:30 +00:00
jesopo
024452bbac expirental code to show comment content for github issue_comment webhooks 2019-11-19 12:22:46 +00:00
jesopo
5d01db8514 move all datetime-related code from utils/__init__ to utils.datetime 2019-11-15 13:59:09 +00:00
jesopo
3766262eab change git_webhooks hashes from 8 characters to 7 2019-11-11 13:38:09 +00:00
jesopo
4826ac67f8 show "published" for "updated" releases - seems theres a bug that prevents the former 2019-11-01 17:58:07 +00:00
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