.github/workflows/ci.yml → mattermost/actions-workflows/.github/workflows/plugin-ci.ymlmattermost-plugin-starter-template
mattermost-plugin-starter-template
Go Go Service P1 Nov 15, 2026
CI/CD Pipeline Docker Container Kubernetes API Surface Service Layer Frontend UI Database
| Primary Language | Go |
|---|---|
| Primary Framework | Go Service |
| Detected Frameworks | Go Service; React (Vite); React; TypeScript |
| Deployable Types | API; Frontend |
| Technology Stack | Go, CI/CD |
| Default Branch | master |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:15:32 AM |
| Source Repository | Open on GitHub |
mattermost/mattermost-plugin-starter-template — Workflow Hierarchy Overview
100%
Showing top-level workflow hierarchy. Click any workflow node or choose one above to inspect its job DAG.
3 Workflow(s)
4 Job(s)
4 Anti-Pattern(s)
1 Cross-Workflow Edge(s)
11/15/2026, 5:22:55 AM
Pipeline Anti-Patterns Detected
LOW NO_TIMEOUT
LOW NO_TIMEOUT
LOW NO_TIMEOUT
LOW NO_TIMEOUT
Cross-Workflow Triggers & Reusable Calls
Go17 Components
30 Files
3661 LoC
Avg CC: 2.080 OSV CVE(s)
1 Fitness Rule Alert(s)
mattermost/mattermost-plugin-starter-template — Module Architecture Tree
100%
Showing top-level module hierarchy (flowchart TD). Click any subfolder node or pill to traverse deeper.
Arc42 Architecture & Dependency Report
Repository Architecture Analysis: mattermost/mattermost-plugin-starter-template
Metadata
- SHA:
0bb75c86fa1126fd24815278f72fc629c1ef78ca - Primary Ecosystem: Go
Quality Metrics
- ast_engine: tree-sitter
- avg_cognitive_complexity: 1.09
- avg_cyclomatic_complexity: 2.08
- component_count: 17
- dead_code_count: 1
- dead_code_symbols: 1 entry(ies)
- duplication_pct: 32.75
- file_complexities: 17 entry(ies)
- files_analyzed: 30
- fitness_passed: False
- fitness_violation_count: 1
- framework: Go Service
- import_edges: 100 entry(ies)
- loc: 3661
- max_cognitive_complexity: 10
- max_cyclomatic_complexity: 11
- sloc: 2486
- test_file_count: 10
Architecture: mattermost/mattermost-plugin-starter-template
Context
- Repository:
mattermost/mattermost-plugin-starter-template - SHA:
0bb75c86fa1126fd24815278f72fc629c1ef78ca - Ecosystem: Go
- Framework: Go Service
Building Block View
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
configuration["configuration : module"]:::atlasJob
job["job : module"]:::atlasJob
main["main : module"]:::atlasJob
plugin["plugin : module"]:::atlasJob
api["api : module"]:::atlasJob
api_test["api_test : module"]:::atlasJob
channelstatus["channelstatus : module"]:::atlasJob
channelstatus_test["channelstatus_test : module"]:::atlasJob
command["command : module"]:::atlasJob
command_test["command_test : module"]:::atlasJob
mock_commands["mock_commands : module"]:::atlasJob
kvstore["kvstore : module"]:::atlasJob
mock_kvstore["mock_kvstore : module"]:::atlasJob
webapp["webapp : MODULE"]:::atlasJob
STATUS_OPTIONS["STATUS_OPTIONS : UI_COMPONENT"]:::atlasJob
ChannelStatusSidebar["ChannelStatusSidebar : UI_COMPONENT"]:::atlasJob
ChannelStatusTag["ChannelStatusTag : UI_COMPONENT"]:::atlasJob
repo_root(["mattermost/mattermost-plugin-starter-template"]):::atlasRoot
repo_root --> ChannelStatusSidebar
repo_root --> ChannelStatusTag
repo_root --> STATUS_OPTIONS
repo_root --> api
repo_root --> api_test
repo_root --> channelstatus
repo_root --> channelstatus_test
repo_root --> command
repo_root --> command_test
repo_root --> configuration
repo_root --> job
repo_root --> kvstore
repo_root --> main
repo_root --> mock_commands
repo_root --> mock_kvstore
repo_root --> plugin
repo_root --> webapp
Component Details
- configuration (
server/configuration.go): module - job (
server/job.go): module - main (
server/main.go): module - plugin (
server/plugin.go): module - api (
server/api/api.go): module - api_test (
server/api/api_test.go): module - channelstatus (
server/channelstatus/channelstatus.go): module - channelstatus_test (
server/channelstatus/channelstatus_test.go): module - command (
server/command/command.go): module - command_test (
server/command/command_test.go): module - mock_commands (
server/command/mocks/mock_commands.go): module - kvstore (
server/store/kvstore/kvstore.go): module - mock_kvstore (
server/store/kvstore/mocks/mock_kvstore.go): module - webapp (
webapp/package.json): MODULE - STATUS_OPTIONS (
webapp/src/channel_status/statuses.ts): UI_COMPONENT - ChannelStatusSidebar (
webapp/src/components/channel_status_sidebar/channel_status_sidebar.tsx): UI_COMPONENT - ChannelStatusTag (
webapp/src/components/channel_status_tag/channel_status_tag.tsx): UI_COMPONENT
6-Dimension Repository Scorecard
- Overall Grade:
B(87.40/100) - Technical Debt Score: 12.60
- Estimated Remediation Effort: 14.95h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | C | 73.00 | 0.20 | avg_cc=2.08, max_cc=11, duplication=32.75%, dead_code=1 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=1019, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | B | 89.00 | 0.15 | avg_cognitive=1.09, max_cognitive=10, fitness_violations=1, oversized_files=1 |
| Pipeline Health | A | 93.00 | 0.15 | workflows=3, operational_antipatterns=4, parallel_branches=True |
| Security | A | 100.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=0 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
Architecture Fitness & Workspace Boundaries
- [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository duplication_pct (32.75) exceeds policy threshold (15.0).
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 1019 | Vulnerabilities: 0 | Secrets: 0
Inventory Sample
github.com/gorilla/mux1.8.1(golang,go.mod)github.com/mattermost/mattermost/server/public0.6.0(golang,go.mod)github.com/pkg/errors0.9.1(golang,go.mod)github.com/stretchr/testify1.12.1(golang,go.mod)go.uber.org/mock0.6.0(golang,go.mod)@babel/core7.29.7(npm,webapp/package-lock.json)@babel/core7.29.7(npm,webapp/package.json)@babel/preset-env7.29.7(npm,webapp/package-lock.json)@babel/preset-env7.29.7(npm,webapp/package.json)@babel/preset-react7.29.7(npm,webapp/package-lock.json)@babel/preset-react7.29.7(npm,webapp/package.json)@babel/preset-typescript7.29.7(npm,webapp/package-lock.json)@babel/preset-typescript7.29.7(npm,webapp/package.json)@mattermost/client11.9.0(npm,webapp/package-lock.json)@mattermost/client11.9.0(npm,webapp/package.json)@mattermost/compass-icons0.1.63(npm,webapp/package-lock.json)@mattermost/compass-icons0.1.63(npm,webapp/package.json)@mattermost/compass-ui0.1.0-alpha.15(npm,webapp/package-lock.json)@mattermost/compass-ui0.1.0-alpha.15(npm,webapp/package.json)@mattermost/eslint-plugin1.1.0-0(npm,webapp/package-lock.json)@mattermost/eslint-plugin1.1.0-0(npm,webapp/package.json)@mattermost/types11.9.0(npm,webapp/package-lock.json)@mattermost/types11.9.0(npm,webapp/package.json)@testing-library/dom10.4.2(npm,webapp/package-lock.json)@testing-library/dom10.4.2(npm,webapp/package.json)@testing-library/jest-dom6.10.0(npm,webapp/package-lock.json)@testing-library/jest-dom6.10.0(npm,webapp/package.json)@testing-library/react16.3.3(npm,webapp/package-lock.json)@testing-library/react16.3.3(npm,webapp/package.json)@testing-library/user-event14.6.8(npm,webapp/package-lock.json)- … (+989 more dependencies)
CI/CD Pipeline Topology
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["mattermost/mattermost-plugin-starter-template"]):::atlasRoot
subgraph ci_0["ci"]
direction TB
0_plugin_ci["plugin-ci"]:::atlasJob
0_min_server_version["min-server-version"]:::atlasJob
end
pipeline_root --> 0_plugin_ci
subgraph CodeQL_1["CodeQL"]
direction TB
1_analyze["analyze"]:::atlasJob
end
pipeline_root --> 1_analyze
subgraph Scorecards_supply_chain_security_2["Scorecards supply-chain security"]
direction TB
2_analysis["analysis"]:::atlasJob
end
pipeline_root --> 2_analysisB
Technical Debt12.6
Remediation Effort14.9h
Dependencies1019
OSV Findings0
Score Trend (Repository)
2 snapshot(s)
6-Dimension Scorecard Breakdown
Code Quality
Weight 20%73.0
avg_cc=2.08, max_cc=11, duplication=32.75%, dead_code=1
Security
Weight 20%100.0
vulnerabilities=0, secrets=0, pipeline_security_findings=0
Maintainability
Weight 15%89.0
avg_cognitive=1.09, max_cognitive=10, fitness_violations=1, oversized_files=1
Test Coverage
Weight 15%70.0
coverage=unavailable, ci_test_job=True, test_files_detected=True
Dependency Health
Weight 15%100.0
dependencies=1019, outdated=0, vulnerable=0, has_lockfile=True
Pipeline Health
Weight 15%93.0
workflows=3, operational_antipatterns=4, parallel_branches=True
Module Complexity & Quality Heatmap
Duplication: 32.75%
Dead Code: 1
channel_status_sidebar.tsx
webapp/src/components/channel_status_sidebar/channel_status_sidebar.tsx
LOC: 197CC: 12Cog: 11
use_channel_status.ts
webapp/src/channel_status/use_channel_status.ts
LOC: 60CC: 7Cog: 9
webpack.config.js
webapp/webpack.config.js
LOC: 106CC: 9Cog: 8
test_utils.tsx
webapp/src/channel_status/test_utils.tsx
LOC: 66CC: 3Cog: 3
client.ts
webapp/src/client.ts
LOC: 46CC: 4Cog: 2
jsx_runtime.ts
webapp/src/jsx_runtime.ts
LOC: 28CC: 3Cog: 2
state.ts
webapp/src/channel_status/state.ts
LOC: 46CC: 3Cog: 1
statuses.ts
webapp/src/channel_status/statuses.ts
LOC: 46CC: 3Cog: 1
channel_status_tag.tsx
webapp/src/components/channel_status_tag/channel_status_tag.tsx
LOC: 42CC: 2Cog: 1
index.tsx
webapp/src/index.tsx
LOC: 78CC: 2Cog: 0
index.d.ts
webapp/src/types/mattermost-webapp/index.d.ts
LOC: 1169CC: 1Cog: 0
channel_status_sidebar.test.tsx
webapp/src/components/channel_status_sidebar/channel_status_sidebar.test.tsx
LOC: 131CC: 1Cog: 0
channel_status_tag.test.tsx
webapp/src/components/channel_status_tag/channel_status_tag.test.tsx
LOC: 40CC: 1Cog: 0
babel.config.js
webapp/babel.config.js
LOC: 29CC: 1Cog: 0
jsx_runtime.test.tsx
webapp/src/jsx_runtime.test.tsx
LOC: 25CC: 1Cog: 0
manifest.test.tsx
webapp/src/manifest.test.tsx
LOC: 10CC: 1Cog: 0
setup.tsx
webapp/tests/setup.tsx
LOC: 8CC: 1Cog: 0
Unreferenced / Dead Code Symbols Preview (1)
Windowwebapp/src/index.tsx:73Architectural Fitness Rules
MEDIUM
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDwebapp/src/components/channel_status_sidebar/channel_status_sidebar.tsx:1Repository duplication_pct (32.75) exceeds policy threshold (15.0).
webapp/src/components/channel_status_sidebar/channel_status_sidebar.tsx(REPOSITORY)duplication_pct(THRESHOLD)
Supply-Chain Dependencies & OSV Vulnerabilities
1019 Dependencies
0 OSV Vulnerabilities
No known OSV vulnerabilities detected across 1019 parsed dependencies.
Redacted Secret Findings
No hardcoded secret patterns detected.
Code-to-Cloud & Workspace Packages
0 Workspace Package(s)
0 Code-to-Cloud Edge(s)
Workspace Packages
Single-package repository or no monorepo workspace manifests.
Code-to-Cloud Traceability Links
No Code-to-Cloud container, IaC, or deploy environment edges detected.