feat(release): initial attempt at providing automatic builds

This commit is contained in:
2021-05-06 02:20:32 +01:00
parent 2054c8c0aa
commit 63289216d7
10 changed files with 811 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
package main
import "strings"
type Repo struct {
Owner string
Name string
}
func NewRepo(ownerAndRepo string) *Repo {
parts := strings.SplitN(ownerAndRepo, "/", 2)
return &Repo{
Owner: parts[0],
Name: parts[1],
}
}
func (s *Repo) String() string {
return s.Owner + "/" + s.Name
}