add issues and prs button

This commit is contained in:
2026-08-17 09:13:04 +07:00
parent 2d281dfbbb
commit 9f484ea98d
4 changed files with 275 additions and 319 deletions
+7
View File
@@ -78,6 +78,13 @@ impl Announcement {
pub fn addr(&self) -> crate::RepoAddr {
crate::repo_addr(self.owner, self.id.clone())
}
/// The description of the repository, or a default if none is provided.
pub fn description(&self) -> SharedString {
self.description
.clone()
.unwrap_or(SharedString::from("No description"))
}
}
#[cfg(test)]