deps-rs / deps.rs

Keep your dependencies up-to-date
https://deps.rs
Apache License 2.0
426 stars 26 forks source link

Support for self-hosted Gitea #164

Closed nitn3lav closed 2 years ago

nitn3lav commented 2 years ago

deps.rs is now available for self-hosted Gitea at /repo/gitea/<DOMAIN>/owner/repo, e. g. /repo/gitea/git.example.org/deps-rs/deps.rs, /repo/gitea/git.example.org:1234/deps-rs/deps.rs, /repo/gitea/http://unsafe-gitea.org/deps-rs/deps.rs.

This should also include support for Gitea hosted in subdirectories, e. g. www.example.org/gitea, though I haven't tested this yet.

If no protocol (https:///http://) is specified, https:// is automatically added to the beginning of the gitea server's URL. However I could also change this to only accept https. Another option might be the use of URL-encoding. I am open for feedback, feel free to suggest changes.

Implementation notes:

Related to #84, #141

Feliix42 commented 2 years ago

Wow, that is a great contribution! Thank you very much for your efforts and work! Unless another maintainer is faster, I will review your PR over the weekend. :slightly_smiling_face: