Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache in-memory GitHub info between releases #468

Open
MarcoIeni opened this issue Jan 28, 2024 · 0 comments
Open

Cache in-memory GitHub info between releases #468

MarcoIeni opened this issue Jan 28, 2024 · 0 comments
Assignees
Labels
integration Related to GitHub/GitLab integration

Comments

@MarcoIeni
Copy link
Sponsor Contributor

Right now, I call git-cliff many times (one per crate in a cargo workspace).
At the moment, git-cliff calls github api for every commit of the release.
It would be nice if git-cliff keeps in memory the info it fetched from GitHub for every commit, to avoid calling GitHub again.

Additional context

Here is some pseudo code

fn get_git_cliff_instance() {
    // set github remote config
    let git_cliff_config = default_git_cliff_config();
    let git_cliff_instance = newGitCliff(git_cliff_config);
    let releases = [commits1, commits2];
    let changelog1 = git_cliff_instance.generate_changelog(releases[0]);
    // here git-cliff re-uses the info it found during the first calls
    let changelog1 = git_cliff_instance.generate_changelog(releases[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Related to GitHub/GitLab integration
Projects
None yet
Development

No branches or pull requests

2 participants