Skip to content

Commit 5edb487

Browse files
authored
Merge branch 'main' into mwbrooks-maintainers-guide-deprecation
2 parents 9d7d677 + eac66e3 commit 5edb487

File tree

19 files changed

+24
-27
lines changed

19 files changed

+24
-27
lines changed

.github/workflows/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Gather credentials
1414
id: credentials
15-
uses: actions/[email protected].3
15+
uses: actions/[email protected].6
1616
with:
1717
app-id: ${{ secrets.GH_APP_ID_RELEASER }}
1818
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_RELEASER }}

.github/workflows/sync-docs-from-cli-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- name: Generate a GitHub token
2424
id: ghtoken
25-
uses: actions/[email protected].3
25+
uses: actions/[email protected].6
2626
with:
2727
app-id: ${{ secrets.GH_APP_ID_DOCS }}
2828
owner: slackapi

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
go-version: "1.24.2"
3434
- name: Lint
35-
uses: golangci/golangci-lint-action@v7.0.0
35+
uses: golangci/golangci-lint-action@v8.0.0
3636
with:
3737
version: latest
3838
args: --timeout=5m

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ linters:
3333
staticcheck:
3434
checks:
3535
- all
36-
- '-ST1005' # disable rule 'Incorrectly formatted error string'
37-
- '-ST1006' # disable rule 'Poorly chosen receiver name'
38-
- '-ST1008' # disable rule 'Function’s error value should be its last return value'
3936
- '-ST1023' # disable rule 'Redundant type in variable declaration'
4037
- '-QF1001' # disable rule 'Apply De Morgan’s law'
4138
- '-QF1012' # disable rule 'Use fmt.Fprintf instead of x.Write(fmt.Sprintf(...))'

cmd/auth/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func printAuthSuccess(cmd *cobra.Command, IO iostreams.IOStreamer, credentialsPa
146146

147147
// printAuthNextSteps suggests possible commands to run after logging in
148148
func printAuthNextSteps(ctx context.Context, clients *shared.ClientFactory) {
149-
_, project := clients.SDKConfig.Exists()
149+
project, _ := clients.SDKConfig.Exists()
150150
if !project {
151151
clients.IO.PrintInfo(ctx, false, style.Sectionf(style.TextSection{
152152
Emoji: "bulb",

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func ExecuteContext(ctx context.Context, rootCmd *cobra.Command, clients *shared
406406
func cleanup(ctx context.Context, clients *shared.ClientFactory) {
407407
clients.IO.PrintDebug(ctx, "Starting root command cleanup routine")
408408
// clean up any json in project .slack folder if needed
409-
if _, sdkConfigExists := clients.SDKConfig.Exists(); sdkConfigExists {
409+
if sdkConfigExists, _ := clients.SDKConfig.Exists(); sdkConfigExists {
410410
clients.AppClient().CleanUp()
411411
}
412412
}

cmd/root_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ func Test_Aliases(t *testing.T) {
236236
}
237237
for name, tt := range tests {
238238
t.Run(name, func(t *testing.T) {
239-
err, output := testExecCmd(ctx, strings.Fields(tt.args))
239+
output, err := testExecCmd(ctx, strings.Fields(tt.args))
240240
require.NoError(t, err)
241241
require.Contains(t, output, tt.expected)
242242
})
243243
}
244244
}
245245

246246
// testExecCmd will execute the root cobra command with args and return the output
247-
func testExecCmd(ctx context.Context, args []string) (error, string) {
247+
func testExecCmd(ctx context.Context, args []string) (string, error) {
248248
// Get command
249249
cmd, clients := Init(ctx)
250250

@@ -257,7 +257,7 @@ func testExecCmd(ctx context.Context, args []string) (error, string) {
257257
cmd.SetArgs(args)
258258
err := cmd.ExecuteContext(ctx)
259259
if err != nil {
260-
return err, ""
260+
return "", err
261261
}
262-
return nil, clientsMock.GetCombinedOutput()
262+
return clientsMock.GetCombinedOutput(), nil
263263
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/stretchr/testify v1.10.0
2525
github.com/uber/jaeger-client-go v2.30.0+incompatible
2626
golang.org/x/mod v0.24.0
27-
golang.org/x/sys v0.32.0
27+
golang.org/x/sys v0.33.0
2828
golang.org/x/text v0.24.0
2929
gopkg.in/yaml.v2 v2.4.0
3030
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
206206
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
207207
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
208208
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
209-
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
210-
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
209+
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
210+
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
211211
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
212212
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
213213
golang.org/x/term v0.31.0 h1:erwDkOK1Msy6offm1mOgvspSkslFnIGsFnxOKoufg3o=

internal/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (c *Client) DoWithRetry(ctx context.Context, request *http.Request, span op
294294
span.SetTag("status_code", r.StatusCode)
295295

296296
if r.StatusCode != http.StatusOK {
297-
return nil, errors.WithStack(fmt.Errorf("Slack API unexpected status code %d returned from url %s", r.StatusCode, sURL))
297+
return nil, errors.WithStack(fmt.Errorf("unexpected status code %d returned from url %s", r.StatusCode, sURL))
298298
}
299299

300300
var bytes []byte

0 commit comments

Comments
 (0)