From a77f7265e228e1f6865d0824b3ac07c61c3c3985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Ma=C5=82achowski?= <38684517+KacperMalachowski@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:41:01 +0100 Subject: [PATCH] Revert "actions(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1" (#12313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "actions(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1…" This reverts commit 62331f245e824627e26ee63f20f854c9a37f61b9. * Fix linter issue --- .github/workflows/pull-go-lint.yaml | 2 +- pkg/github/bumper/bumper.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-go-lint.yaml b/.github/workflows/pull-go-lint.yaml index 2648582f96ee..778ec315b59e 100644 --- a/.github/workflows/pull-go-lint.yaml +++ b/.github/workflows/pull-go-lint.yaml @@ -18,4 +18,4 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 - - uses: golangci/golangci-lint-action@v6.1.1 \ No newline at end of file + - uses: golangci/golangci-lint-action@v6.1.0 \ No newline at end of file diff --git a/pkg/github/bumper/bumper.go b/pkg/github/bumper/bumper.go index 064c2ca7b45c..03ecde53e988 100644 --- a/pkg/github/bumper/bumper.go +++ b/pkg/github/bumper/bumper.go @@ -207,7 +207,7 @@ func processGitHub(ctx context.Context, o *Options, prh PRHandler) error { return fmt.Errorf("process function %d: %w", i, err) } - changed, err := HasChanges(o) + changed, err := HasChanges() if err != nil { return fmt.Errorf("checking changes: %w", err) } @@ -325,7 +325,7 @@ func UpdatePullRequestWithLabels(gc github.Client, org, repo, title, body, sourc } // HasChanges checks if the current git repo contains any changes -func HasChanges(o *Options) (bool, error) { +func HasChanges() (bool, error) { // Check for changes using git status statusArgs := []string{"status", "--porcelain"} logrus.WithField("cmd", gitCmd).WithField("args", statusArgs).Info("running command ...")