Properly abstract deployment asset downlod
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package gitprovider
|
||||
|
||||
type DeployResult struct {
|
||||
CommitHash string
|
||||
CommitMessage string
|
||||
}
|
||||
|
||||
type GitProvider interface {
|
||||
FetchAndDeployBranch(owner, repo, branch, authToken, destPath string) (*DeployResult, error)
|
||||
}
|
||||
Reference in New Issue
Block a user