Support Forgejo and Gitea avatars in git blame (#41813)
Part of #11043. Codeberg is a public instance of Forgejo, as confirmed by the API documentation at https://codeberg.org/api/swagger. Therefore, I renamed the related component from codeberg to forgejo and added codeberg.org as a public instance. Furthermore, to optimize request speed for the commit API, I set `stat=false&verification=false&files=false`. <img width="1650" height="1268" alt="CleanShot 2025-11-03 at 19 57 06@2x" src="https://github.com/user-attachments/assets/c1b4129e-f324-41c2-86dc-5e4f7403c046" /> <br/> <br/> Regarding Gitea Support: Forgejo is a fork of Gitea, and their APIs are currently identical (e.g., for getting avatars). However, to future-proof against potential API divergence, I decided to treat them as separate entities. The current gitea implementation is essentially a copy of the forgejo file with the relevant type names and the public instance URL updated. Release Notes: - Added Support for Forgejo and Gitea avatars in git blame
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
mod bitbucket;
|
||||
mod chromium;
|
||||
mod codeberg;
|
||||
mod forgejo;
|
||||
mod gitea;
|
||||
mod gitee;
|
||||
mod github;
|
||||
mod gitlab;
|
||||
@@ -8,7 +9,8 @@ mod sourcehut;
|
||||
|
||||
pub use bitbucket::*;
|
||||
pub use chromium::*;
|
||||
pub use codeberg::*;
|
||||
pub use forgejo::*;
|
||||
pub use gitea::*;
|
||||
pub use gitee::*;
|
||||
pub use github::*;
|
||||
pub use gitlab::*;
|
||||
|
||||
Reference in New Issue
Block a user