aptu-cli 0.3.2

CLI for Aptu - Gamified OSS issue triage with AI assistance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0

//! Contribution history command.

use anyhow::Result;
use aptu_core::history;

use super::types::HistoryResult;

/// Show contribution history.
pub fn run() -> Result<HistoryResult> {
    let data = history::load()?;
    Ok(HistoryResult {
        contributions: data.contributions.clone(),
        history_data: data,
    })
}