Valentin Brandl
f3e1d914c5
Register routes per service
continuous-integration/drone/push Build is passing
2022-01-29 21:19:38 +01:00
Valentin Brandl
bcb5650cc9
Update actix-web and tokio
continuous-integration/drone/push Build is passing
2021-09-03 13:13:03 +02:00
Valentin Brandl
44d47b1d5f
Implement badges for sourcehut
2021-09-03 11:44:22 +02:00
Valentin Brandl
be48ebd2d9
Fix clippy lint
2021-05-27 12:39:45 +02:00
Valentin Brandl
5eb16ac38e
Remove unused code
continuous-integration/drone/push Build is passing
2021-03-22 12:52:24 +01:00
Valentin Brandl
3486d44bc5
Restructure for testability and implement first tests
2021-03-22 12:46:10 +01:00
Valentin Brandl
3d26823425
Fix breaking changes in vergen
continuous-integration/drone/push Build is passing
2021-02-26 16:12:58 +01:00
Valentin Brandl
f41fbc8baf
Fix test
continuous-integration/drone/push Build is passing
2020-11-24 19:24:35 +01:00
Valentin Brandl
14cd21dc1c
Make paths consistent
continuous-integration/drone/push Build is passing
2020-11-24 19:13:08 +01:00
Valentin Brandl
9e33742d81
Use new config
2020-11-24 19:06:49 +01:00
Valentin Brandl
909f6585b5
Always return a SVG badge
continuous-integration/drone/push Build is passing
2020-11-01 13:57:56 +01:00
Valentin Brandl
26a5025a32
Fix state in test
continuous-integration/drone/push Build is passing
2020-10-30 17:15:09 +01:00
Valentin Brandl
6f931ce46f
Use tracing
instead of slog
for better ergonomics
continuous-integration/drone/push Build is passing
2020-10-30 16:40:35 +01:00
Valentin Brandl
c2d496f2b4
Add logger to test state
continuous-integration/drone/push Build is passing
2020-10-30 13:20:24 +01:00
Valentin Brandl
19d37806f2
Remove unused import
continuous-integration/drone/push Build is passing
2020-10-30 13:11:05 +01:00
Valentin Brandl
b4bd9b8830
Refactor to use slog for structured logging
continuous-integration/drone/push Build is passing
2020-10-30 13:03:06 +01:00
Valentin Brandl
2a73370c9f
Use normalize path middleware
2020-09-19 14:22:56 +02:00
Valentin Brandl
22aad6ed77
Fix breaking changes
2020-09-12 14:13:19 +02:00
Valentin Brandl
b06bbbba8f
Upgrade actix-web to 3.0.0
2020-09-12 14:01:59 +02:00
Valentin Brandl
c9a54eda49
Allow requesting badges for branches != master
...
This changed the cache structure to allow caching data for multiple
branches. The service still assumes a default branch named `master` but
using the `branch` get parameter, the default branch can be changed.
The 404 page for the missing `master` branch was changed to explain the
new parameter.
2020-07-20 20:14:22 +02:00
Valentin Brandl
2f1209d1e0
Create folders to fix test
continuous-integration/drone/push Build is passing
2020-05-15 13:34:48 +02:00
Valentin Brandl
349640acc5
Implement endpoint for cache deletion
continuous-integration/drone/push Build is passing
2020-05-15 13:15:54 +02:00
Valentin Brandl
1d0eca90a7
Implement simple integration test
2020-05-15 12:15:18 +02:00
Valentin Brandl
81bb65db4e
Use async/await syntax
2020-05-15 12:15:02 +02:00
Valentin Brandl
45c0d26e33
Use new number_prefix API
2020-05-01 13:18:22 +02:00
Valentin Brandl
9fef178a27
Apply cargo fmt
2020-03-21 13:02:53 +01:00
Valentin Brandl
6896a22409
Handle non-existent master branch
2020-02-12 20:56:47 +01:00
Valentin Brandl
903abdefdc
Remove unnecessray clone
2020-02-12 20:17:55 +01:00
Valentin Brandl
a81de6f89c
Merge branch 'feature/dependency-upgrades'
2020-02-12 20:08:24 +01:00
Valentin Brandl
dfc49c6b64
Update futures, actix and request to next major version, refactor to use async/await
2020-02-12 19:45:18 +01:00
Valentin Brandl
2c002a1865
Fix clippy lint
continuous-integration/drone/push Build was killed
2020-01-10 11:46:30 +01:00
Valentin Brandl
95efa4d875
Remove unnecessray clone
continuous-integration/drone/push Build was killed
2020-01-10 11:40:14 +01:00
Valentin Brandl
9ef0337605
Apply cargo fmt
continuous-integration/drone/push Build is pending
2019-11-25 17:35:00 +01:00
Valentin Brandl
bbf5bba490
Reduce number of parameters
continuous-integration/drone/push Build is pending
2019-11-25 17:27:16 +01:00
Valentin Brandl
55a1405e71
Enable NormalizePath middleware
...
This allows double slashes in paths
2019-07-29 21:49:25 +02:00
Valentin Brandl
0128e267cc
Use async client to check if a repo exists
2019-07-22 22:26:37 +02:00
Valentin Brandl
c3dffac5da
Use async client
2019-07-22 22:25:55 +02:00
Valentin Brandl
f3902f800f
Remove migration subcommand
continuous-integration/drone/push Build is passing
2019-07-07 18:27:50 +02:00
Valentin Brandl
c71925f61e
Add migration subcommand
2019-07-07 14:52:42 +02:00
Valentin Brandl
a239a3f80b
Calculate number of commits
...
The number of commits is shown in the overview page and returned in the
JSON response.
Closes #33
2019-07-07 13:30:17 +02:00
Valentin Brandl
00b4e60341
Add parse error
2019-07-07 13:29:26 +02:00
Valentin Brandl
bdb10fd54a
Add commit count to the cache struct
2019-07-07 13:28:43 +02:00
Valentin Brandl
140265b713
Cleanup and use internal result type
continuous-integration/drone/push Build is passing
2019-06-16 22:20:09 +02:00
Valentin Brandl
ac8ba338bb
Don't reuse cache struct
...
Also we avoid converting from String into Cow<'a, str>'
2019-06-16 21:45:13 +02:00
Valentin Brandl
ce77854754
Implement JSON endpoint
2019-06-16 14:33:15 +02:00
Valentin Brandl
8d4de48c11
Calculate repo count on start and increment when a new repo is cloned
continuous-integration/drone/push Build is passing
2019-06-12 21:51:54 +02:00
Valentin Brandl
eb718990ec
Add repo count to templates
2019-06-12 21:51:16 +02:00
Valentin Brandl
60dc242e5a
Add repo count to templates
2019-06-12 21:50:45 +02:00
Valentin Brandl
6438bbba82
Make code async
2019-05-19 13:56:11 +02:00
Valentin Brandl
2236cf8b53
Refactor into smaller modules and implement new logger
2019-05-14 01:12:13 +02:00