Commit Graph

69 Commits

Author SHA1 Message Date
6896a22409 Handle non-existent master branch 2020-02-12 20:56:47 +01:00
903abdefdc Remove unnecessray clone 2020-02-12 20:17:55 +01:00
a81de6f89c Merge branch 'feature/dependency-upgrades' 2020-02-12 20:08:24 +01:00
dfc49c6b64 Update futures, actix and request to next major version, refactor to use async/await 2020-02-12 19:45:18 +01:00
2c002a1865 Fix clippy lint
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-01-10 11:46:30 +01:00
95efa4d875 Remove unnecessray clone
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-01-10 11:40:14 +01:00
9ef0337605 Apply cargo fmt
Some checks are pending
continuous-integration/drone/push Build is pending
2019-11-25 17:35:00 +01:00
bbf5bba490 Reduce number of parameters
Some checks are pending
continuous-integration/drone/push Build is pending
2019-11-25 17:27:16 +01:00
55a1405e71 Enable NormalizePath middleware
This allows double slashes in paths
2019-07-29 21:49:25 +02:00
0128e267cc Use async client to check if a repo exists 2019-07-22 22:26:37 +02:00
c3dffac5da Use async client 2019-07-22 22:25:55 +02:00
f3902f800f Remove migration subcommand
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-07 18:27:50 +02:00
c71925f61e Add migration subcommand 2019-07-07 14:52:42 +02:00
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
00b4e60341 Add parse error 2019-07-07 13:29:26 +02:00
bdb10fd54a Add commit count to the cache struct 2019-07-07 13:28:43 +02:00
140265b713 Cleanup and use internal result type
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-16 22:20:09 +02:00
ac8ba338bb Don't reuse cache struct
Also we avoid converting from String into Cow<'a, str>'
2019-06-16 21:45:13 +02:00
ce77854754 Implement JSON endpoint 2019-06-16 14:33:15 +02:00
8d4de48c11 Calculate repo count on start and increment when a new repo is cloned
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-12 21:51:54 +02:00
eb718990ec Add repo count to templates 2019-06-12 21:51:16 +02:00
60dc242e5a Add repo count to templates 2019-06-12 21:50:45 +02:00
6438bbba82 Make code async 2019-05-19 13:56:11 +02:00
2236cf8b53 Refactor into smaller modules and implement new logger 2019-05-14 01:12:13 +02:00
60cba9951f Add new error types 2019-05-14 01:11:54 +02:00
d6835b96de Refactor into smaller modules 2019-05-14 01:11:39 +02:00
0a58a75cd1 Serve favicon
All checks were successful
continuous-integration/drone/push Build is passing
2019-05-13 21:58:07 +02:00
791cb38a41 Implement generator and use custom result type 2019-05-04 15:45:25 +02:00
d5e6bf7839 Add service enum for form data 2019-05-04 15:37:29 +02:00
4556d6a04a Add custom result type 2019-05-04 15:33:21 +02:00
7b45d72b97 Make worker threads configurable 2019-05-01 16:37:51 +02:00
852a31315d Start 4 worker threads 2019-05-01 16:21:36 +02:00
8fc46ab7cc Use all lowercase path names for storage and caching
`Microsoft/vscode` and `microsoft/vscode` point to the same directory
but the repo would have been cloned twice.
2019-04-30 16:45:29 +02:00
f5a5560a62 Refactor to remove duplicate code and add some logs 2019-04-30 15:22:58 +02:00
a0ea761dd8 Remove unused extern crate declatations 2019-04-30 14:39:55 +02:00
6b68d291c8 Use prefixed numbers for badges 2019-04-30 14:20:33 +02:00
bdf9d382d4 Use version info struct 2019-04-30 14:19:40 +02:00
c81fc5478b Implement improved overview page 2019-04-29 20:42:17 +02:00
361b446f2a Use new Service trait 2019-04-29 20:41:53 +02:00
34e2942f5f Also return HEAD when calculating HOC 2019-04-29 20:40:05 +02:00
fa2e06fccf Add Service trait to remove code duplication 2019-04-29 20:37:53 +02:00
a1c10938c5 Use Cow instead of String 2019-04-29 20:37:20 +02:00
8d7f696dea Make domain name configurable
The domain name can be set using the `--domain` or `-d` flags. It
defaults to `hitsofocode.com`.

Also the CLI options are now parsed inside a lazy_static context to be
available for the templates.
2019-04-23 22:50:51 +02:00
33288efe82 Use templates and load version information 2019-04-23 18:21:03 +02:00
2db66ee850 Check if repos exist before cloning 2019-04-21 20:45:36 +02:00
b12ba47be9 Implement client error 2019-04-21 20:44:47 +02:00
51b3aa9b9e Add custom error pages 2019-04-21 18:25:54 +02:00
f832e10fac Add custom error pages 2019-04-21 17:57:57 +02:00
23b841913b Remove unused error variant 2019-04-20 15:02:38 +02:00
d890288640 Remove color feature 2019-04-20 15:01:11 +02:00