.github/workflows/ci.yml → mattermost/actions-workflows/.github/workflows/plugin-ci.ymlmattermost-plugin-github
mattermost-plugin-github
| Primary Language | JavaScript/TypeScript |
|---|---|
| Primary Framework | React (Vite) |
| Detected Frameworks | React (Vite); React; Express / Node API; TypeScript; Go Service; Docker Compose; Container |
| Deployable Types | Frontend |
| Technology Stack | JavaScript/TypeScript, Docker, CI/CD |
| Default Branch | master |
| Documentation Priority | P2 |
| Last Repository Scan | 11/15/2026, 5:14:28 AM |
| Source Repository | Open on GitHub |
mattermost/mattermost-plugin-github — Workflow Hierarchy Overview
Pipeline Anti-Patterns Detected
Cross-Workflow Triggers & Reusable Calls
.github/workflows/ci.yml → .github/workflows/playwright.ymlmattermost/mattermost-plugin-github — Module Architecture Tree
Arc42 Architecture & Dependency Report
Repository Architecture Analysis: mattermost/mattermost-plugin-github
Metadata
- SHA:
bcbfe137f48b42f0cc929aa6ee0af78470cfd274 - Primary Ecosystem: JavaScript/TypeScript
Quality Metrics
- ast_engine: tree-sitter
- avg_cognitive_complexity: 3.16
- avg_cyclomatic_complexity: 3.62
- component_count: 12
- dead_code_count: 2
- dead_code_symbols: 2 entry(ies)
- duplication_pct: 66.49
- file_complexities: 25 entry(ies)
- files_analyzed: 123
- fitness_passed: False
- fitness_violation_count: 3
- framework: React (Vite)
- import_edges: 100 entry(ies)
- loc: 12187
- max_cognitive_complexity: 318
- max_cyclomatic_complexity: 194
- sloc: 9380
- test_file_count: 66
Architecture: mattermost/mattermost-plugin-github
Context
- Repository:
mattermost/mattermost-plugin-github - SHA:
bcbfe137f48b42f0cc929aa6ee0af78470cfd274 - Ecosystem: JavaScript/TypeScript
- Framework: React (Vite)
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
mattermost_plugin_github_e2e["mattermost-plugin-github-e2e : MODULE"]:::atlasJob
plugin_e2e_tests["plugin-e2e-tests : MODULE"]:::atlasJob
webapp["webapp : MODULE"]:::atlasJob
Client["Client : SERVICE"]:::atlasJob
LinkTooltip["LinkTooltip : UI_COMPONENT"]:::atlasJob
CreateIssuePostMenuAction["CreateIssuePostMenuAction : UI_COMPONENT"]:::atlasJob
AttachCommentToIssuePostMenuAction["AttachCommentToIssuePostMenuAction : UI_COMPONENT"]:::atlasJob
UserAttribute["UserAttribute : UI_COMPONENT"]:::atlasJob
Tooltip["Tooltip : UI_COMPONENT"]:::atlasJob
Badge["Badge : UI_COMPONENT"]:::atlasJob
OverlayTrigger["OverlayTrigger : UI_COMPONENT"]:::atlasJob
Modal["Modal : UI_COMPONENT"]:::atlasJob
repo_root(["mattermost/mattermost-plugin-github"]):::atlasRoot
repo_root --> AttachCommentToIssuePostMenuAction
repo_root --> Badge
repo_root --> Client
repo_root --> CreateIssuePostMenuAction
repo_root --> LinkTooltip
repo_root --> Modal
repo_root --> OverlayTrigger
repo_root --> Tooltip
repo_root --> UserAttribute
repo_root --> mattermost_plugin_github_e2e
repo_root --> plugin_e2e_tests
repo_root --> webapp
Component Details
- mattermost-plugin-github-e2e (
e2e/integration/package.json): MODULE - plugin-e2e-tests (
e2e/playwright/package.json): MODULE - webapp (
webapp/package.json): MODULE - Client (
webapp/src/client/client.ts): SERVICE - LinkTooltip (
webapp/src/components/link_tooltip/link_tooltip.jsx): UI_COMPONENT - CreateIssuePostMenuAction (
webapp/src/components/post_menu_action/create_issue/create_issue.jsx): UI_COMPONENT - AttachCommentToIssuePostMenuAction (
webapp/src/components/post_menu_actions/attach_comment_to_issue/attach_comment_to_issue.jsx): UI_COMPONENT - UserAttribute (
webapp/src/components/user_attribute/user_attribute.tsx): UI_COMPONENT - Tooltip (
webapp/src/types/react-bootstrap.d.ts): UI_COMPONENT - Badge (
webapp/src/types/react-bootstrap.d.ts): UI_COMPONENT - OverlayTrigger (
webapp/src/types/react-bootstrap.d.ts): UI_COMPONENT - Modal (
webapp/src/types/react-bootstrap.d.ts): UI_COMPONENT
6-Dimension Repository Scorecard
- Overall Grade:
F(56.80/100) - Technical Debt Score: 43.20
- Estimated Remediation Effort: 45.10h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 43.52 | 0.20 | avg_cc=3.62, max_cc=194, duplication=66.49%, dead_code=2 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=1959, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 47.00 | 0.15 | avg_cognitive=3.16, max_cognitive=318, fitness_violations=3, oversized_files=2 |
| Pipeline Health | A | 93.00 | 0.15 | workflows=5, operational_antipatterns=4, parallel_branches=True |
| Security | F | 8.00 | 0.20 | vulnerabilities=0, secrets=1, pipeline_security_findings=6 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=False, test_files_detected=True |
Architecture Fitness & Workspace Boundaries
- [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository duplication_pct (66.49) exceeds policy threshold (15.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (318.0) exceeds policy threshold (25.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (194.0) exceeds policy threshold (20.0).
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 1959 | Vulnerabilities: 0 | Secrets: 1
Secret Findings (Redacted)
- [HIGH]
ATRUSS-SEC-005ate2e/playwright/support/init_test.ts:102(webhooksecret: 'w7Hf***REDACTED***',)
Inventory Sample
github.com/Masterminds/sprig/v33.2.2(golang,go.mod)github.com/golang/mock1.6.0(golang,go.mod)github.com/google/go-github/v5454.0.0(golang,go.mod)github.com/gorilla/mux1.8.1(golang,go.mod)github.com/hashicorp/go-multierror1.1.1(golang,go.mod)github.com/mattermost/mattermost/server/public0.3.0(golang,go.mod)github.com/microcosm-cc/bluemonday1.0.27(golang,go.mod)github.com/pkg/errors0.9.1(golang,go.mod)github.com/shurcooL/githubv40.0.0-20230424031643-6cea62ecd5a9(golang,go.mod)github.com/stretchr/testify1.11.1(golang,go.mod)golang.org/x/oauth20.36.0(golang,go.mod)gopkg.in/yaml.v33.0.1(golang,go.mod)@babel/cli7.20.7(npm,webapp/package-lock.json)@babel/cli7.20.7(npm,webapp/package.json)@babel/core7.29.6(npm,webapp/package-lock.json)@babel/core7.29.6(npm,webapp/package.json)@babel/eslint-parser7.25.9(npm,webapp/package-lock.json)@babel/eslint-parser7.25.9(npm,webapp/package.json)@babel/plugin-syntax-dynamic-import7.8.3(npm,webapp/package-lock.json)@babel/plugin-syntax-dynamic-import7.8.3(npm,webapp/package.json)@babel/plugin-transform-class-properties7.25.9(npm,webapp/package-lock.json)@babel/plugin-transform-class-properties7.25.9(npm,webapp/package.json)@babel/plugin-transform-object-rest-spread7.25.9(npm,webapp/package-lock.json)@babel/plugin-transform-object-rest-spread7.25.9(npm,webapp/package.json)@babel/plugin-transform-optional-chaining7.25.9(npm,webapp/package-lock.json)@babel/plugin-transform-optional-chaining7.25.9(npm,webapp/package.json)@babel/preset-env7.26.0(npm,webapp/package-lock.json)@babel/preset-env7.26.0(npm,webapp/package.json)@babel/preset-react7.26.3(npm,webapp/package-lock.json)@babel/preset-react7.26.3(npm,webapp/package.json)- … (+1929 more dependencies)
Section 7: Code-to-Cloud Deployment Traceability
flowchart LR
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
subgraph code_modules["Code Modules"]
mod__cursor[".cursor"]:::atlasCategory
mod_e2e_integration["e2e/integration"]:::atlasCategory
mod_e2e_playwright["e2e/playwright"]:::atlasCategory
mod_webapp["webapp"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art__cursor_Dockerfile[".cursor/Dockerfile"]:::atlasWorkflow
art_e2e_integration_docker_compose_yml["e2e/integration/docker-compose.yml"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_e2e_yml_contract_drift["e2e.yml#contract-drift"]:::atlasJob
job_e2e_yml_playwright["e2e.yml#playwright"]:::atlasJob
job_e2e_yml_real_github["e2e.yml#real-github"]:::atlasJob
job_e2e_yml_visual["e2e.yml#visual"]:::atlasJob
job_playwright_yml_playwright_run["playwright.yml#playwright-run"]:::atlasJob
end
mod__cursor -->|PACKAGED_BY| art__cursor_Dockerfile
mod_e2e_integration -->|BUILT_BY| job_e2e_yml_contract_drift
mod_e2e_integration -->|BUILT_BY| job_e2e_yml_playwright
mod_e2e_integration -->|BUILT_BY| job_e2e_yml_real_github
mod_e2e_integration -->|BUILT_BY| job_e2e_yml_visual
mod_e2e_integration -->|PACKAGED_BY| art__cursor_Dockerfile
mod_e2e_integration -->|PACKAGED_BY| art_e2e_integration_docker_compose_yml
mod_e2e_playwright -->|BUILT_BY| job_playwright_yml_playwright_run
mod_e2e_playwright -->|PACKAGED_BY| art_e2e_integration_docker_compose_yml
mod_webapp -->|BUILT_BY| job_playwright_yml_playwright_run
art_e2e_integration_docker_compose_yml -->|BUILT_BY| job_e2e_yml_contract_drift
art_e2e_integration_docker_compose_yml -->|BUILT_BY| job_e2e_yml_playwright
art_e2e_integration_docker_compose_yml -->|BUILT_BY| job_e2e_yml_real_github
art_e2e_integration_docker_compose_yml -->|BUILT_BY| job_e2e_yml_visual
.cursor(code_module) —[PACKAGED_BY]—>.cursor/Dockerfile(container)e2e/integration(code_module) —[BUILT_BY]—>e2e.yml#contract-drift(ci_job)e2e/integration(code_module) —[BUILT_BY]—>e2e.yml#playwright(ci_job)e2e/integration(code_module) —[BUILT_BY]—>e2e.yml#real-github(ci_job)e2e/integration(code_module) —[BUILT_BY]—>e2e.yml#visual(ci_job)e2e/integration(code_module) —[PACKAGED_BY]—>.cursor/Dockerfile(container)e2e/integration(code_module) —[PACKAGED_BY]—>e2e/integration/docker-compose.yml(container)e2e/playwright(code_module) —[BUILT_BY]—>playwright.yml#playwright-run(ci_job)e2e/playwright(code_module) —[PACKAGED_BY]—>e2e/integration/docker-compose.yml(container)webapp(code_module) —[BUILT_BY]—>playwright.yml#playwright-run(ci_job)e2e/integration/docker-compose.yml(container) —[BUILT_BY]—>e2e.yml#contract-drift(ci_job)e2e/integration/docker-compose.yml(container) —[BUILT_BY]—>e2e.yml#playwright(ci_job)e2e/integration/docker-compose.yml(container) —[BUILT_BY]—>e2e.yml#real-github(ci_job)e2e/integration/docker-compose.yml(container) —[BUILT_BY]—>e2e.yml#visual(ci_job)
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-github (5 workflows)"]):::atlasRoot
subgraph sg_grp_0_Scheduled___Manual["Scheduled & Manual (3 workflows · 6 jobs)"]
direction TB
subgraph sg_wf_0_ci["ci (1 jobs)"]
direction TB
wf_0_ci(["Trigger: ci"]):::atlasWorkflow
job_0_plugin_ci["plugin-ci"]:::atlasJob
wf_0_ci --> job_0_plugin_ci
end
pipeline_root --> wf_0_ci
subgraph sg_wf_2_e2e["e2e (4 jobs)"]
direction TB
wf_2_e2e(["Trigger: e2e"]):::atlasWorkflow
job_2_playwright["playwright"]:::atlasJob
job_2_visual["visual"]:::atlasJob
job_2_contract_drift["contract-drift"]:::atlasJob
wf_2_e2e --> job_2_playwright
wf_2_e2e --> job_2_visual
wf_2_e2e --> job_2_contract_drift
end
pipeline_root --> wf_2_e2e
subgraph sg_wf_4_Playwright_Tests["Playwright Tests (1 jobs)"]
direction TB
wf_4_Playwright_Tests(["Trigger: Playwright Tests"]):::atlasWorkflow
job_4_playwright_run["playwright-run"]:::atlasJob
wf_4_Playwright_Tests --> job_4_playwright_run
end
pipeline_root --> wf_4_Playwright_Tests
end
subgraph sg_grp_1_Automation___Other["Automation & Other (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_3_issue_add["issue_add (1 jobs)"]
direction TB
wf_3_issue_add(["Trigger: issue_add"]):::atlasWorkflow
job_3_add_to_project["add-to-project"]:::atlasJob
wf_3_issue_add --> job_3_add_to_project
end
pipeline_root --> wf_3_issue_add
end
subgraph sg_grp_2_Security___Governance["Security & Governance (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_1_CodeQL["CodeQL (1 jobs)"]
direction TB
wf_1_CodeQL(["Trigger: CodeQL"]):::atlasWorkflow
job_1_analyze["analyze"]:::atlasJob
wf_1_CodeQL --> job_1_analyze
end
pipeline_root --> wf_1_CodeQL
end6-Dimension Scorecard Breakdown
Code Quality
Weight 20%avg_cc=3.62, max_cc=194, duplication=66.49%, dead_code=2
Security
Weight 20%vulnerabilities=0, secrets=1, pipeline_security_findings=6
Maintainability
Weight 15%avg_cognitive=3.16, max_cognitive=318, fitness_violations=3, oversized_files=2
Test Coverage
Weight 15%coverage=unavailable, ci_test_job=False, test_files_detected=True
Dependency Health
Weight 15%dependencies=1959, outdated=0, vulnerable=0, has_lockfile=True
Pipeline Health
Weight 15%workflows=5, operational_antipatterns=4, parallel_branches=True
Module Complexity & Quality Heatmap
Unreferenced / Dead Code Symbols Preview (2)
initializewebapp/src/index.js:32deinitializewebapp/src/index.js:111Architectural Fitness Rules
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDe2e/integration/fake-github/server.ts:1Repository duplication_pct (66.49) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDe2e/integration/fake-github/server.ts:1Repository max_cognitive_complexity (318.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDe2e/integration/fake-github/server.ts:1Repository max_cyclomatic_complexity (194.0) exceeds policy threshold (20.0).
Supply-Chain Dependencies & OSV Vulnerabilities
No known OSV vulnerabilities detected across 1959 parsed dependencies.
Redacted Secret Findings
ATRUSS-SEC-005e2e/playwright/support/init_test.ts:102High-entropy credential candidate (H=4.54 > 4.5) detected.
webhooksecret: 'w7Hf***REDACTED***',Code-to-Cloud & Workspace Packages
Workspace Packages
Single-package repository or no monorepo workspace manifests.