Skip to content

Commit e6c0e93

Browse files
committed
run the linter
1 parent 790baac commit e6c0e93

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

internal/cmd/combine_prs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ func updateRef(ctx context.Context, client RESTClientInterface, repo github.Repo
219219
func createPullRequest(ctx context.Context, client RESTClientInterface, repo github.Repo, title, head, base, body string, labels, assignees []string) error {
220220
endpoint := fmt.Sprintf("repos/%s/%s/pulls", repo.Owner, repo.Repo)
221221
payload := map[string]interface{}{
222-
"title": title,
223-
"head": head,
224-
"base": base,
225-
"body": body,
222+
"title": title,
223+
"head": head,
224+
"base": base,
225+
"body": body,
226226
}
227227

228228
// Add labels if provided

internal/cmd/combine_prs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/stretchr/testify/assert"
87
"github.com/github/gh-combine/internal/github"
8+
"github.com/stretchr/testify/assert"
99
)
1010

1111
func TestCreatePullRequest(t *testing.T) {
@@ -27,4 +27,4 @@ func TestCreatePullRequest(t *testing.T) {
2727

2828
err := createPullRequest(context.Background(), client, repo, title, head, base, body, labels, assignees)
2929
assert.NoError(t, err)
30-
}
30+
}

internal/cmd/mock_restclient.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
)
88

99
type MockRESTClient struct {
10-
PostFunc func(endpoint string, body interface{}, response interface{}) error
11-
GetFunc func(endpoint string, response interface{}) error
12-
DeleteFunc func(endpoint string, response interface{}) error
13-
PatchFunc func(endpoint string, body io.Reader, response interface{}) error
10+
PostFunc func(endpoint string, body interface{}, response interface{}) error
11+
GetFunc func(endpoint string, response interface{}) error
12+
DeleteFunc func(endpoint string, response interface{}) error
13+
PatchFunc func(endpoint string, body io.Reader, response interface{}) error
1414
}
1515

1616
// Updated the Post method to match the RESTClientInterface signature
@@ -61,4 +61,4 @@ func (m *MockRESTClient) Do(method string, path string, body io.Reader, response
6161

6262
func (m *MockRESTClient) Put(path string, body io.Reader, resp interface{}) error {
6363
return nil
64-
}
64+
}

0 commit comments

Comments
 (0)