Commit d052aa6
committed
feat(glab): add ci and release subcommand filtering
Add token-optimized filtering for two more glab subcommand groups:
CI/CD pipelines:
- `glab ci list`: Compact pipeline listing with status icons (~90% savings)
- `glab ci trace`: Strip ANSI codes, section markers, runner boilerplate,
git fetch noise, and artifact upload details. Keep commands, build output,
warnings, errors, and job result.
Releases:
- `glab release list`: Passthrough (already compact text output)
- `glab release view`: Strip SOURCES block (archive URLs are noise),
filter markdown noise (HTML comments, images, horizontal rules)
Also:
- Add lazy_static regex for CI section markers and bare ANSI codes
- Update discover rules pattern and savings estimates
- Add test fixtures and unit tests for all new filters1 parent 2af7033 commit d052aa6
6 files changed
Lines changed: 704 additions & 3 deletions
File tree
- src
- discover
- tests/fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
0 commit comments