update
This commit is contained in:
1 parent
d4fdc9890a
commit
5787b14880
22 files changed
+5766
-710
No files matched your search
+11
-3
@@ -27,9 +27,11 @@ pub struct PrInfo {
|
||||
#[derive(Debug, Clone, Default)]
|
||||
#[allow(dead_code)]
|
||||
pub struct RepoMeta {
|
||||
pub open_issues: u32,
|
||||
pub open_prs: u32,
|
||||
pub stars: u32,
|
||||
pub open_issues: u32,
|
||||
pub open_prs: u32,
|
||||
pub stars: u32,
|
||||
pub description: Option<String>,
|
||||
pub topics: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
||||
@@ -137,6 +139,12 @@ pub trait Provider: Send + Sync {
|
||||
let _ = repo;
|
||||
anyhow::bail!("archive_repo not supported by this provider")
|
||||
}
|
||||
|
||||
/// Update the description of a repository.
|
||||
async fn update_description(&self, repo: &str, description: &str) -> Result<()> {
|
||||
let _ = (repo, description);
|
||||
anyhow::bail!("update_description not supported by this provider")
|
||||
}
|
||||
}
|
||||
|
||||
/// Build a boxed `Provider` from an `Account`.
|
||||
|
||||
Reference in new issue
Block a user