Skip to content

Add slug utility function - #27

Open
Traves-Theberge wants to merge 7 commits into
mainfrom
openlens-1
Open

Add slug utility function#27
Traves-Theberge wants to merge 7 commits into
mainfrom
openlens-1

Conversation

@Traves-Theberge

Copy link
Copy Markdown
Owner

URL-safe slug with unicode support.

🤖 Orchestra

Traves-Theberge and others added 7 commits March 28, 2026 12:29
Implemented by CLAUDE agent via Orchestra
Add 66 new E2E tests across 7 test files covering previously untested areas:
- Rules discovery (CLAUDE.md, AGENTS.md, .openlens/rules.md)
- Branch mode with three-dot diff and CI auto-detection
- Suppression system (.openlensignore, config patterns)
- Agent test subcommand validation
- Config edge cases (XDG_CONFIG_HOME, env overrides, JSONC, precedence)
- Library API (loadConfig, loadAgents, getDiff, formatters, event bus)
- Hook content validation (OPENLENS_SKIP, shebang, permissions)

Update CI workflow to run E2E tests as a dedicated step.

Total E2E coverage: 110 → 176 tests (60% increase)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… and CLI edge cases

Adds 29 new E2E tests across 3 test files:
- server-errors: POST /review handling, invalid endpoints, hostname binding
- plugin: module structure validation, debug mode, GitHub review formatter
- cli-edge-cases: conflicting flags, env var precedence, large files, special chars

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implemented by CLAUDE agent via Orchestra
Add slug() that converts strings to URL-safe slugs by normalizing
unicode, lowercasing, replacing non-alphanumeric chars with hyphens,
and trimming. Includes 10 unit tests covering unicode, special chars,
multiple spaces, leading/trailing dashes, and edge cases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Split camelCase and PascalCase boundaries into hyphens so inputs like
myVariableName become my-variable-name. Includes tests for camelCase,
PascalCase, and acronym handling (e.g. getHTTPResponse).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔍 openlens Review

No issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant