mirror of
https://github.com/harness/drone.git
synced 2025-05-15 08:29:52 +08:00
23 lines
588 B
Go
23 lines
588 B
Go
// Copyright 2022 Harness Inc. All rights reserved.
|
|
// Use of this source code is governed by the Polyform Free Trial License
|
|
// that can be found in the LICENSE.md file for this repository.
|
|
|
|
package commit
|
|
|
|
import (
|
|
"github.com/harness/gitness/gitrpc"
|
|
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
// WireSet provides a wire set for this package.
|
|
var WireSet = wire.NewSet(
|
|
ProvideCommitService,
|
|
)
|
|
|
|
// ProvideCommitService provides a service which can fetch commit
|
|
// information about a repository.
|
|
func ProvideCommitService(gitRPCClient gitrpc.Interface) CommitService {
|
|
return new(gitRPCClient)
|
|
}
|