commit

package
v0.0.0-...-94d0466 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type Service

type Service interface {
	// ref is the ref to fetch the commit from, eg refs/heads/master
	FindRef(ctx context.Context, repo *types.Repository, ref string) (*types.Commit, error)

	// FindCommit returns information about a commit in a repo.
	FindCommit(ctx context.Context, repo *types.Repository, sha string) (*types.Commit, error)
}

Service provides access to commit information via the SCM provider. Today, this is Harness but it can be extendible to any SCM provider.

func ProvideService

func ProvideService(git git.Interface) Service

ProvideService provides a service which can fetch commit information about a repository.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL