Read files from captured Git commits
This commit is contained in:
@@ -20,6 +20,12 @@ type Request struct {
|
||||
Settings Settings
|
||||
}
|
||||
|
||||
// ReadCandidateTree loads the committed-file inventory when a selected check
|
||||
// needs file-oriented input.
|
||||
func (request Request) ReadCandidateTree(ctx context.Context) (*CandidateTree, error) {
|
||||
return ReadCandidateTree(ctx, request.RepositoryDir, request.Commit)
|
||||
}
|
||||
|
||||
// Run executes shared validation for the captured candidate.
|
||||
func Run(ctx context.Context, request Request) error {
|
||||
tool, err := gotool.New(ctx, request.RepositoryDir)
|
||||
|
||||
Reference in New Issue
Block a user