-
Notifications
You must be signed in to change notification settings - Fork 57
workflows: pin dependencies #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 6 commits
f1287f7
7a100fa
4df5202
15815b8
7b6a639
f74d832
52cdb20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| open-pull-requests-limit: 5 | ||
| groups: | ||
| Github Actions updates: | ||
| applies-to: version-updates | ||
| dependency-type: production | ||
| schedule: | ||
| # Check for updates to GitHub Actions every week | ||
| day: "monday" | ||
| time: "09:00" | ||
| interval: "weekly" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,80 +1,111 @@ | ||
| version: "2" | ||
| run: | ||
| timeout: 5m | ||
| modules-download-mode: readonly | ||
|
|
||
| linters-settings: | ||
| gofmt: | ||
| simplify: true | ||
| goimports: | ||
| local-prefixes: github.com/mattermost/mattermost-starter-template | ||
| golint: | ||
| min-confidence: 0 | ||
| govet: | ||
| enable-all: true | ||
| disable: | ||
| - fieldalignment | ||
| misspell: | ||
| locale: US | ||
| lll: | ||
| line-length: 150 | ||
| revive: | ||
| enableAllRules: true | ||
| rules: | ||
| - name: exported | ||
| disabled: true | ||
|
|
||
| linters: | ||
| disable-all: true | ||
| settings: | ||
| govet: | ||
| enable: | ||
| - shadow | ||
| default: none | ||
| enable: | ||
| - gofmt | ||
| - goimports | ||
| - ineffassign | ||
| - unparam | ||
| - govet | ||
| - asciicheck | ||
| - bodyclose | ||
| - copyloopvar | ||
| - dogsled | ||
| - durationcheck | ||
| - err113 | ||
| - errorlint | ||
| - exhaustive | ||
| - copyloopvar | ||
| - gosec | ||
| - makezero | ||
| - staticcheck | ||
| - prealloc | ||
| - asciicheck | ||
| - dogsled | ||
| - gocritic | ||
| - gocyclo | ||
| - godot | ||
| - err113 | ||
| - goheader | ||
| - revive | ||
| - nakedret | ||
| - gomodguard | ||
| - goprintffuncname | ||
| - gosimple | ||
| - gosec | ||
| - govet | ||
| - ineffassign | ||
| - makezero | ||
| - misspell | ||
| - nakedret | ||
| - nolintlint | ||
| - typecheck | ||
| - prealloc | ||
| - revive | ||
| - staticcheck | ||
| - unconvert | ||
| - unparam | ||
| - unused | ||
| - whitespace | ||
| - gocyclo | ||
|
|
||
| issues: | ||
| exclude-files: | ||
| - product/boards_product.go | ||
| - services/store/sqlstore/migrations | ||
| exclude-rules: | ||
| - path: server/manifest.go | ||
| linters: | ||
| - unused | ||
| - path: server/configuration.go | ||
| linters: | ||
| - unused | ||
| - path: _test\.go | ||
| linters: | ||
| - bodyclose | ||
| - scopelint # https://github.com/kyoh86/scopelint/issues/4 | ||
| settings: | ||
| govet: | ||
| disable: | ||
| - fieldalignment | ||
| enable-all: true | ||
| lll: | ||
| line-length: 150 | ||
| misspell: | ||
| locale: US | ||
| revive: | ||
| rules: | ||
| - name: exported | ||
| disabled: true | ||
| exclusions: | ||
| generated: lax | ||
| presets: | ||
| - comments | ||
| - common-false-positives | ||
| - legacy | ||
| - std-error-handling | ||
| rules: | ||
| - linters: | ||
| - unused | ||
| path: server/manifest.go | ||
| - linters: | ||
| - unused | ||
| path: server/configuration.go | ||
| - linters: | ||
| - bodyclose | ||
| path: _test\.go | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| # QF1008 - ignoring for now and must be revisited after bumping lint version. | ||
| - linters: | ||
| - staticcheck | ||
| text: QF1008 | ||
| path: app/category_boards.go | ||
| - linters: | ||
| - staticcheck | ||
| text: QF1008 | ||
| path: plugin.go | ||
| - linters: | ||
| - staticcheck | ||
| text: QF1008 | ||
| path: services/metrics/service.go | ||
| - linters: | ||
| - staticcheck | ||
| text: QF1008 | ||
| path: web/webserver.go | ||
| # QF1003: this file is using boardTypes undefined in the models - must be revisited after bumping lint version. | ||
| - linters: | ||
| - staticcheck | ||
| text: QF1003 | ||
| path: store/sqlstore/data_migrations.go | ||
| paths: | ||
| - product/boards_product.go | ||
| - services/store/sqlstore/migrations | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| formatters: | ||
| enable: | ||
| - gofmt | ||
| - goimports | ||
| settings: | ||
| gofmt: | ||
| simplify: true | ||
| goimports: | ||
| local-prefixes: | ||
| # todo: update to the correct module name after bumping lint version. | ||
| - github.com/mattermost/mattermost-starter-template | ||
| exclusions: | ||
|
Comment on lines
+101
to
+104
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Get the module path from go.mod
rg -n '^module ' go.modRepository: mattermost/mattermost-plugin-boards Length of output: 134 🏁 Script executed: #!/bin/bash
# Check if server/go.mod exists and what its module path is
if [ -f server/go.mod ]; then
echo "=== server/go.mod found ==="
rg -n '^module ' server/go.mod
else
echo "=== server/go.mod not found ==="
echo "Checking directory structure:"
ls -la server/ | head -20
fiRepository: mattermost/mattermost-plugin-boards Length of output: 1260 🏁 Script executed: #!/bin/bash
# Verify the current content of server/.golangci.yml around the goimports section
rg -B5 -A5 'goimports' server/.golangci.ymlRepository: mattermost/mattermost-plugin-boards Length of output: 348 Update
♻️ Suggested adjustment goimports:
local-prefixes:
- - github.com/mattermost/mattermost-starter-template
+ - github.com/mattermost/mattermost-plugin-boards🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be done in follow up f74d832
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| generated: lax | ||
| paths: | ||
| - product/boards_product.go | ||
| - services/store/sqlstore/migrations | ||
| - third_party$ | ||
| - builtin$ | ||
| - examples$ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,10 +78,7 @@ func (b *BoardsApp) OnConfigurationChange() error { | |
| } | ||
| mmconfig := b.servicesAPI.GetConfig() | ||
|
|
||
| enableShareBoards := false | ||
| if mmconfig.PluginSettings.Plugins[PluginName][SharedBoardsName] == true { | ||
| enableShareBoards = true | ||
| } | ||
| enableShareBoards := mmconfig.PluginSettings.Plugins[PluginName][SharedBoardsName] == true | ||
|
|
||
| configuration := &configuration{ | ||
| EnablePublicSharedBoards: enableShareBoards, | ||
|
|
@@ -90,10 +87,8 @@ func (b *BoardsApp) OnConfigurationChange() error { | |
| b.server.Config().EnablePublicSharedBoards = enableShareBoards | ||
|
|
||
| // handle Data Retention settings | ||
| enableBoardsDeletion := false | ||
| if mmconfig.DataRetentionSettings.EnableBoardsDeletion != nil { | ||
| enableBoardsDeletion = true | ||
| } | ||
| enableBoardsDeletion := mmconfig.DataRetentionSettings.EnableBoardsDeletion != nil | ||
|
|
||
| b.server.Config().EnableDataRetention = enableBoardsDeletion | ||
|
Comment on lines
+90
to
92
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicit A nil-check alone turns a configured 🛠️ Proposed fix- enableBoardsDeletion := mmconfig.DataRetentionSettings.EnableBoardsDeletion != nil
+ enableBoardsDeletion := mmconfig.DataRetentionSettings.EnableBoardsDeletion != nil &&
+ *mmconfig.DataRetentionSettings.EnableBoardsDeletion🤖 Prompt for AI Agents
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @coderabbitai This how it was before, see the diff. The setting will show up in the configuration when it's enabled but granted that if it is later changed to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
My suggested fix would resolve that scenario by respecting the actual boolean value: enableBoardsDeletion := mmconfig.DataRetentionSettings.EnableBoardsDeletion != nil &&
*mmconfig.DataRetentionSettings.EnableBoardsDeletionThis ensures that:
Let me know if you'd like to address this now or track it separately for a future fix.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @NARSimoes coderabbit has a point, this was probably a bug.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| b.server.Config().DataRetentionDays = *mmconfig.DataRetentionSettings.BoardsRetentionDays | ||
| b.server.Config().TeammateNameDisplay = *mmconfig.TeamSettings.TeammateNameDisplay | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.