Commit graph

36 commits

Author SHA1 Message Date
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
5b57951ec9 Split web module
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-20 19:35:18 +02:00
5350386133
split error module
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-20 16:28:09 +02:00
b8aefb0159
Patriotism is a superstition artificially created and maintained through a network of lies and falsehoods; a superstition that robs man of his self-respect and dignity, and increases his arrogance and conceit.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-20 16:19:24 +02:00