Commit Graph

121 Commits

Author SHA1 Message Date
Valentin Brandl
361eacbe1d Fix some pedantic lints 2023-06-13 10:22:37 +02:00
Valentin Brandl
a9b7368847
Revert "Use version from git-describe to better identify builds" 2023-04-14 00:50:35 +02:00
037e520beb
Use version from git-describe to better identify builds
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 00:39:47 +02:00
Valentin Brandl
45b45eebc2 Apply cargo fmt
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-13 11:56:41 +02:00
Valentin Brandl
914ee4b637 Update to vergen 8
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-13 11:55:52 +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
Valentin Brandl
558137e2ee Allow customization of the badge label 2023-01-16 09:54:04 +01:00
0100b754f4
Fix needless_borrow lints 2022-12-18 08:50:52 +01:00
Valentin Brandl
7aec5d5045 Fix needless borrow lint 2022-11-05 12:17:40 +01:00
Valentin Brandl
d5e30ba727
Replace deprecated badge crate with badgers 2022-09-28 10:43:49 +02:00
Valentin Brandl
4a94af0f75
Use dotenvy over unmaintained dotenv 2022-08-31 11:09:23 +02:00
Valentin Brandl
a68a49f6ae
Merge branch 'master' into feature/ructe-static 2022-08-22 15:34:49 +02:00
Valentin Brandl
6c7cb9df97
Merge pull request #478 from Masynchin/count
Some checks failed
continuous-integration/drone/push Build is failing
Refactor count_repositories
2022-08-22 15:34:32 +02:00
Max Smirnov
0a4ec4ecd4
Run fmt 2022-08-22 16:20:24 +03:00
Max Smirnov
3ead212fe7
Add tests for count_repositories 2022-08-22 16:12:21 +03:00
Valentin Brandl
b001db6558
Merge branch 'master' into feature/ructe-static 2022-08-22 12:28:56 +02:00
Max Smirnov
7139663544
Add docs to count_repositories 2022-08-22 10:51:57 +03:00
Valentin Brandl
391bb6faeb Use ructe static file support to serve static files with hashes and caching 2022-08-21 13:48:03 +02:00
Valentin Brandl
d4248df45a
Use helper struct to reduce template parameters 2022-08-19 10:34:37 +02:00
Max Smirnov
4b5d962c2c
Refactor count_repositories 2022-08-18 17:23:09 +03:00
Valentin Brandl
dbbbdad3fa
Allow providing a branch name in generator 2022-08-18 14:07:07 +02:00
Valentin Brandl
84f4aa9be3 Migrate to config v0.12.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-26 16:22:36 +01:00
Valentin Brandl
c2fb288a07 Simplify static routes
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-01 19:41:17 +01:00
Valentin Brandl
815b213a2a Fix clippy lint
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-01 19:23:04 +01:00
Valentin Brandl
2507c24de7 Fix function signature
https://github.com/actix/actix-web/pull/2601
2022-02-01 19:16:26 +01:00
Valentin Brandl
f3e1d914c5 Register routes per service
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-29 21:19:38 +01:00
Valentin Brandl
bcb5650cc9 Update actix-web and tokio
All checks were successful
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
All checks were successful
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
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-26 16:12:58 +01:00
Valentin Brandl
f41fbc8baf Fix test
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-24 19:24:35 +01:00
Valentin Brandl
14cd21dc1c Make paths consistent
All checks were successful
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
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-01 13:57:56 +01:00
Valentin Brandl
26a5025a32 Fix state in test
All checks were successful
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
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-30 16:40:35 +01:00
Valentin Brandl
c2d496f2b4 Add logger to test state
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-30 13:20:24 +01:00
Valentin Brandl
19d37806f2 Remove unused import
All checks were successful
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
All checks were successful
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
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-15 13:34:48 +02:00
Valentin Brandl
349640acc5
Implement endpoint for cache deletion
All checks were successful
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