Skip to content

Commit

Permalink
Revert "actions(deps): bump golangci/golangci-lint-action from 6.1.0 …
Browse files Browse the repository at this point in the history
…to 6.1.1" (#12313)

* Revert "actions(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1…"

This reverts commit 62331f2.

* Fix linter issue
  • Loading branch information
KacperMalachowski authored Nov 6, 2024
1 parent adfe8a8 commit a77f726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-go-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5

- uses: golangci/[email protected].1
- uses: golangci/[email protected].0
4 changes: 2 additions & 2 deletions pkg/github/bumper/bumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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 ...")
Expand Down

0 comments on commit a77f726

Please sign in to comment.