From 601cde4460112abe1d982d52b5be014b85922bc9 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 10:57:16 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"actions(deps):=20bump=20golangci/?= =?UTF-8?q?golangci-lint-action=20from=206.1.0=20to=206.1.1=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 62331f245e824627e26ee63f20f854c9a37f61b9. --- .github/workflows/pull-go-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 225e966747c7ee1f77df65bd1a7b7a8083d467d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Ma=C5=82achowski?= Date: Wed, 6 Nov 2024 11:03:22 +0100 Subject: [PATCH 2/2] Fix linter issue --- pkg/github/bumper/bumper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ...")