feat: exposing request from event in interaction handler in order to Ack event with custom payload #24
Annotations
10 errors and 1 warning
cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
not enough arguments in call to next\n\thave (*slacker.InteractionContext)\n\twant (*slacker.InteractionContext, *socketmode.Request)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in argument to bot.UnsupportedInteractionHandler","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
[staticcheck] reported by reviewdog 🐶
# github.com/slack-io/slacker/examples/interaction
examples/interaction/main.go:23:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction\nexamples/interaction/main.go:23:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
[staticcheck] reported by reviewdog 🐶
# github.com/slack-io/slacker/examples/interaction-middleware
examples/interaction-middleware/main.go:24:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal
examples/interaction-middleware/main.go:68:10: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in return statement
examples/interaction-middleware/main.go:75:9: not enough arguments in call to next
have (*slacker.InteractionContext)
want (*slacker.InteractionContext, *socketmode.Request)
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-middleware\nexamples/interaction-middleware/main.go:24:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal\nexamples/interaction-middleware/main.go:68:10: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in return statement\nexamples/interaction-middleware/main.go:75:9: not enough arguments in call to next\n\thave (*slacker.InteractionContext)\n\twant (*slacker.InteractionContext, *socketmode.Request)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
[staticcheck] reported by reviewdog 🐶
# github.com/slack-io/slacker/examples/interaction-shortcut
examples/interaction-shortcut/main.go:24:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal
examples/interaction-shortcut/main.go:30:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-shortcut\nexamples/interaction-shortcut/main.go:24:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal\nexamples/interaction-shortcut/main.go:30:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
[staticcheck] reported by reviewdog 🐶
# github.com/slack-io/slacker/examples/interaction-sink
examples/interaction-sink/main.go:17:36: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in argument to bot.UnsupportedInteractionHandler
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-sink\nexamples/interaction-sink/main.go:17:36: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in argument to bot.UnsupportedInteractionHandler","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
[staticcheck] reported by reviewdog 🐶
# github.com/slack-io/slacker/examples/interaction-view
examples/interaction-view/main.go:74:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal
examples/interaction-view/main.go:80:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-view\nexamples/interaction-view/main.go:74:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal\nexamples/interaction-view/main.go:80:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading