Commit e90b7d9
feat: complete git-seo integration (100%)
Wired up GitSeoAnalyzer into glambot audit pipeline with configuration
options for enable/disable and auto-apply behavior.
Changes:
- src/config/mod.rs: Added git-seo config options to SeoConfig
- enable_git_seo: Option<bool> (default: true)
- enable_auto_apply: Option<bool> (default: false for safety)
- src/main.rs: Integrated GitSeoAnalyzer into handle_audit()
- Runs as fifth analyzer after machine analyzer
- Respects config.seo.enable_git_seo flag
- Gracefully handles git-seo unavailability (doesn't fail audit)
- Results populated in AuditResult.git_seo field
Configuration example:
```yaml
seo:
enable_git_seo: true
enable_auto_apply: false # Manual approval required
```
Integration flow:
1. glambot audit runs all 5 analyzers (visual, accessibility, seo, machine, git-seo)
2. git-seo analyzer shells out to git-seo CLI
3. Parses JSON report, converts to glambot findings
4. Findings included in overall error/warning counts
5. Can block release if SEO score critically low
Requirements:
- git-seo CLI installed (https://github.com/hyperpolymath/git-seo)
- Git remote configured (origin)
- GITHUB_TOKEN for API analysis (optional but recommended)
Status: Glambot ↔ Git-SEO integration COMPLETE (100%)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 239f6e9 commit e90b7d9
2 files changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
238 | 252 | | |
239 | 253 | | |
240 | 254 | | |
| |||
0 commit comments