diff --git a/main.go b/main.go index 95a7fe5..132be61 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ package main import ( - "errors" "fmt" "log" "os" @@ -11,6 +10,7 @@ import ( git "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" + "github.com/go-git/go-git/v5/plumbing/storer" gha "github.com/sethvargo/go-githubactions" ) @@ -49,7 +49,7 @@ func main() { _ = commits.ForEach(func(c *object.Commit) error { // Stop iterator when limit is reached. if lca != nil && c.Hash == lca.Hash { - return errors.New("stop") + return storer.ErrStop } // Parse commit data.