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 ...")