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
xmppftw
ca7a5a8090
Added gitignore
2024-08-20 23:12:35 +02:00
0c1627e726
Move unreachable debug statement
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-26 18:47:24 +02:00
890eb8fba5
Update gitlab dep to 0.1701
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-26 18:47:01 +02:00
42183ea860
Restrict jid dependency version
...
I still wish I didn't have to, but it seems cargo is pulling 0.11 now
that it's released, when xmpp still depends on 0.10.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-25 09:12:50 +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
c7a5740ee5
forgejo-hooks: RemoveBranch event
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-10 02:34:42 +02:00
af3d65e451
forgejo-hooks: Add support for branch pushes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-10 02:34:42 +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
d0cb431546
Update dep: bytes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-09 23:20:19 +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
d73e149cb4
Don't enable all tokio features
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-04 00:45:51 +02:00
23666b6219
Don't enable all hyper features
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-04 00:38:03 +02:00
1ffa463fd6
Update dep: hyper
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-04 00:35:40 +02:00
0eb47eac7b
Update dep: clap
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-02 21:52:54 +02:00
14c2802a82
Update dep: toml
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-07-02 21:50:31 +02:00
a5491e7a25
Update gitlab version to 0.1610
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-04-19 17:05:48 +02:00
2f645d4200
fmt pass
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2024-04-19 17:05:38 +02:00
861f26b9e4
Release 0.2.0
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-08-21 13:21:51 +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
9c54e7e1db
Update gitlab dep
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-30 19:01:25 +02:00
f19169a7a0
Add README.md
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-27 21:05:00 +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
2637458bbd
Rename project to 'cusku'
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-05-27 17:38:37 +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