diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c15778..3807f8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: backend: name: Backend - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [ linter ] steps: - uses: actions/checkout@v4 diff --git a/main.go b/main.go index 97c2f18..4b704e3 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ var version string = "v0.0.1" func main() { start := time.Now() defer func() { - log.Info().Str("duration", time.Since(start).String()).Msg("Semantic release done") + log.Info().Str("elapsed", time.Since(start).String()).Msg("Semantic release done") }() var opt types.SemanticOptions @@ -71,11 +71,11 @@ func main() { if opt.Analyzer == "" { opt.Analyzer = "angular" - log.Warn().Msg("ANALYZER not set, using angular analyzer") + log.Warn().Msg("analyzer not set, using angular analyzer") } if opt.Repo == "" { - log.Fatal().Msg("REPO not set") + log.Fatal().Msg("repo url not set") } semantic.Run(opt) diff --git a/semantic/semantic_release.go b/semantic/semantic_release.go index 45c9338..34f6e05 100644 --- a/semantic/semantic_release.go +++ b/semantic/semantic_release.go @@ -56,7 +56,7 @@ func Run(opt types.SemanticOptions) { } // get commits since last version - commits, err := r.Log(&git.LogOptions{}) + commits, err := r.Log(&git.LogOptions{From: currentCommit.Hash()}) if err != nil { log.Fatal().Err(err).Msg("Failed to get commits") }