1
1
mirror of https://github.com/drone-plugins/github-actions synced 2026-03-07 10:01:33 +01:00
github.com-drone-plugins-gi.../cloner/cloner.go
OP (oppenheimer) 11ed8bab1c
feat: [CI-15681]: Enhance Drone GitHub Action Plugin with Workflow Output Parsing (#18)
* feat: [CI-15681]: Enhance Drone GitHub Actions Plugin with Workflow Output Parsing

* formatted parse_test.go

* Removed 'drone/plugin' dependencies to reduce the binary size and copied the relevant code to this repo

* Removed windows code

* Updated plugin.go
2025-01-10 20:01:59 +05:30

27 lines
527 B
Go

// Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package cloner provides support for cloning git repositories.
package cloner
import (
"context"
)
type (
// Params provides clone params.
Params struct {
Repo string
Ref string
Sha string
Dir string // Target clone directory.
}
// Cloner clones a repository.
Cloner interface {
// Clone a repository.
Clone(context.Context, Params) error
}
)