mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-04 02:40:59 +08:00
14 lines
366 B
Rust
14 lines
366 B
Rust
use anyhow::Result;
|
|
|
|
use radicle::cob::issue::{Issue, IssueId};
|
|
use radicle::issue::cache::Issues;
|
|
use radicle::storage::git::Repository;
|
|
use radicle::Profile;
|
|
|
|
pub fn all(profile: &Profile, repository: &Repository) -> Result<Vec<(IssueId, Issue)>> {
|
|
let cache = profile.issues(repository)?;
|
|
let issues = cache.list()?;
|
|
|
|
Ok(issues.flatten().collect())
|
|
}
|