|
db88921290
|
Readd support for GitlabHook::WikiPage
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
4e330adb6b
|
Remove incomplete support for GitlabHook::Build
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
4bbb3f8994
|
Split hook modules
Some structs changed to public on the way to facilitate writes.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
2f101c617c
|
Rename hook module to hooks
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
b281cf8b44
|
Readd support for Gitlab's NoteHook
Trying to reuse other converters so that we don't have to redo all the
work
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
6e6ed92026
|
hook: Reimplement Hook::Issue for Gitlab
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
bcc8728cc8
|
Refactor hook module to also format Forgejo stuff
Temporarily disable some Gitlab features
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-09-04 20:35:05 +02:00 |
|
|
77c193bfb6
|
Update to xmpp main (274baaef9afb)
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-08-31 00:40:37 +02:00 |
|
xmppftw
|
7b63e24168
|
Update to xmpp 0.6
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-08-31 00:39:49 +02:00 |
|
xmppftw
|
ac67c52bee
|
Remove unsafe
|
2024-08-21 00:11:55 +02:00 |
|
xmppftw
|
94ac2d8818
|
Save when not is_online
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-08-21 00:11:37 +02:00 |
|
xmppftw
|
6285c0b1a4
|
Async file read
|
2024-08-21 00:07:26 +02:00 |
|
xmppftw
|
66e4131bd3
|
Use Utf8PathBuf
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-08-20 23:47:48 +02:00 |
|
xmppftw
|
ad3bcc88de
|
Move Config to config module
|
2024-08-20 23:45:00 +02:00 |
|
xmppftw
|
ee4c0a0275
|
Use Display not Debug for error message
|
2024-08-20 23:45:00 +02:00 |
|
xmppftw
|
09df210c17
|
Add per-error HTTP status code
|
2024-08-20 23:45:00 +02:00 |
|
xmppftw
|
f70b5f8aa1
|
Don't crash for unknown MR action
|
2024-08-20 23:45:00 +02:00 |
|
xmppftw
|
f9e6b91451
|
Log what HTTP method was wrong
|
2024-08-20 23:45:00 +02:00 |
|
|
0c1627e726
|
Move unreachable debug statement
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-26 18:47:24 +02:00 |
|
|
c707aa5c35
|
Gitlab Webhook: Support tag pushes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-24 19:47:01 +02:00 |
|
|
edd0e0074a
|
Don't calculate sig for payloads that don't need it
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-24 19:44:10 +02:00 |
|
|
a9a16c30bf
|
Add debug statements to know which branch got triggered
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-14 01:03:15 +02:00 |
|
|
9f55b37f34
|
Add debug statements to know which branch got triggered
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-14 01:02:35 +02:00 |
|
|
bdbc8b6382
|
Remove duplicated Gitlab token check
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-14 00:58:33 +02:00 |
|
|
6903490ace
|
Form GitlabHook payloads again
Don't check for the secret validity at this point
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-10 17:20:45 +02:00 |
|
|
407788af5a
|
Rename token to secret
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-10 14:18:28 +02:00 |
|
|
1cf93d1ba8
|
Rename webhook to hook where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-10 14:02:35 +02:00 |
|
|
1301275788
|
Compare payload's hmac signature for forgejo
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-10 13:19:04 +02:00 |
|
|
8e94435604
|
Attempt at Forgejo Webhook support
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-10 02:34:37 +02:00 |
|
|
2ef603151e
|
Make token config mandatory
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-10 02:09:53 +02:00 |
|
|
0bf9f107b5
|
Dissociate content-type and token check
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-04 03:16:58 +02:00 |
|
|
1ffa463fd6
|
Update dep: hyper
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-04 00:35:40 +02:00 |
|
|
2f645d4200
|
fmt pass
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2024-04-19 17:05:38 +02:00 |
|
|
77bfb226ad
|
cargo fmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-08-21 13:13:55 +02:00 |
|
|
acf22a05c1
|
Update xmpp dependency to 0.5
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-08-21 13:13:47 +02:00 |
|
|
1aee1cd618
|
Display only pushes to main branch
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-07 14:16:35 +02:00 |
|
|
06e5ecf90d
|
Attempt at making hooks less verbose
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-07 13:34:22 +02:00 |
|
|
b8987f6eeb
|
rustfmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-03 02:15:49 +02:00 |
|
|
5f8b7d1c17
|
webhook: Expose Note (comments) event
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-03 02:15:49 +02:00 |
|
|
3943ba0924
|
Attempt at making messages somewhat distinguishable
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-02 18:34:49 +02:00 |
|
|
9bd430af4b
|
Return HTTP 200 even on error to prevent Gitlab from disabling the WH automatically
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-01 16:29:30 +02:00 |
|
|
fd96e86f80
|
Push hook: implement branch removal
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-06-01 12:19:26 +02:00 |
|
|
a81c0e631c
|
Stop using clap's 'derive' feature for a single argument
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-27 21:05:00 +02:00 |
|
|
135a2c1611
|
Use toml config file instead of arguments
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-27 21:05:00 +02:00 |
|
|
99d59b3681
|
xmpp: removed unused import
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-22 12:05:42 +02:00 |
|
|
179bd2e395
|
Add webhook cli arguments
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-22 12:05:36 +02:00 |
|
|
40a7c95200
|
Add 'rooms' and 'nickname' arguments
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-21 23:49:02 +02:00 |
|
|
6074db176a
|
Add argument parsing
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-21 23:49:02 +02:00 |
|
|
0cba90dd68
|
Connect to XMPP, join room, send message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-21 23:49:02 +02:00 |
|
|
36673bd5bf
|
rustfmt: hard_tabs = true
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
|
2023-05-20 19:35:18 +02:00 |
|