Skip to content

Feature: use go-git  #1709

Open
Open
@azeemshaikh38

Description

Proposing that we use go-git for powering RepoClient APIs that require git-like features. Some advantages I see of using this:

  • A common implementation for ListFiles, GetFileContent, ListCommits and Search that can be used across any Git-like system (GitHub, GitLab or even local git repos).
  • Enables us to add support for things like tags (e.g run scorecard on --commit=v4.1.0)
  • Might provide better performance since we won't be uncompressing a tarball and some added API token efficiency.

Considering to start work on this (not a top priority for me, will work on it on the side). Just wanted to run it by folks to make sure no one has concerns. @laurentsimon @naveensrinivasan @justaugustus

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

  • Status

    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions