Commit Graph

22 Commits

Author SHA1 Message Date
Valentin Brandl
25aea0f04d Apply cargo fmt
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-27 10:38:34 +02:00
Valentin Brandl
894afaa75d Fix or allow pedantic clippy lints 2023-07-27 10:37:16 +02:00
Valentin Brandl
4ddaa84e5f Use new aliases for template functions
`page.rs.html` used to result in a function `templates::page`.
Since ructe 0.7.2, `templates::page_html` was used and now the old alias
has been removed.
2023-01-30 09:22:45 +01:00
83a4cb57d8
Fix clippy::uninlined_format_args lint
All checks were successful
continuous-integration/drone/push Build is passing
Fixes local lint violations. For the final fix, I have to wait for https://github.com/kaj/ructe/pull/123
2023-01-28 17:04:20 +01:00
Max Smirnov
3ead212fe7
Add tests for count_repositories 2022-08-22 16:12:21 +03:00
Valentin Brandl
3486d44bc5 Restructure for testability and implement first tests 2021-03-22 12:46:10 +01:00
Valentin Brandl
b4bd9b8830 Refactor to use slog for structured logging
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-30 13:03:06 +01: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
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
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
00b4e60341
Add parse error 2019-07-07 13:29:26 +02:00
Valentin Brandl
eb718990ec
Add repo count to templates 2019-06-12 21:51:16 +02:00
Valentin Brandl
60cba9951f
Add new error types 2019-05-14 01:11:54 +02:00
Valentin Brandl
4556d6a04a
Add custom result type 2019-05-04 15:33:21 +02:00
Valentin Brandl
33288efe82
Use templates and load version information 2019-04-23 18:21:03 +02:00
Valentin Brandl
b12ba47be9
Implement client error 2019-04-21 20:44:47 +02:00
Valentin Brandl
51b3aa9b9e
Add custom error pages 2019-04-21 18:25:54 +02:00
Valentin Brandl
f832e10fac
Add custom error pages 2019-04-21 17:57:57 +02:00
Valentin Brandl
23b841913b
Remove unused error variant 2019-04-20 15:02:38 +02:00
Valentin Brandl
f7b2da2b5a
Add serde and internal error 2019-04-19 22:11:03 +02:00
Valentin Brandl
1584f44511
Move errors in own module 2019-04-19 15:59:51 +02:00