[PR #2280] [MERGED] feat: add "URL Does Not Contain" condition to rule engine #2046

Closed
opened 2026-03-02 12:00:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2280
Author: @MohamedBassem
Created: 12/20/2025
Status: Merged
Merged: 12/30/2025
Merged by: @MohamedBassem

Base: mainHead: claude/issue-2259-20251218-0542


📝 Commits (2)

  • d5105fa feat: add "URL Does Not Contain" condition to rule engine
  • a5f76d3 fix type link

📊 Changes

5 files changed (+51 additions, -0 deletions)

View changed files

📝 apps/web/components/dashboard/rules/RuleEngineConditionBuilder.tsx (+19 -0)
📝 apps/web/lib/i18n/locales/en/translation.json (+1 -0)
📝 packages/shared/types/rules.ts (+8 -0)
📝 packages/trpc/lib/__tests__/ruleEngine.test.ts (+16 -0)
📝 packages/trpc/lib/ruleEngine.ts (+7 -0)

📄 Description

Add a new condition type urlDoesNotContain that allows users to create rules based on URLs that do NOT contain specific strings.

This enables more flexible rule configurations, such as automatically adding bookmarks to a "Read Later" list if the URL does not contain "reddit.com" or "youtube.com".

Fixes #2259

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/2280 **Author:** [@MohamedBassem](https://github.com/MohamedBassem) **Created:** 12/20/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `claude/issue-2259-20251218-0542` --- ### 📝 Commits (2) - [`d5105fa`](https://github.com/karakeep-app/karakeep/commit/d5105fa1cbb254c71bf254e0618567f9fe5029e7) feat: add "URL Does Not Contain" condition to rule engine - [`a5f76d3`](https://github.com/karakeep-app/karakeep/commit/a5f76d3f29242fb8a96afd49dd793e1b044ae6e1) fix type link ### 📊 Changes **5 files changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/components/dashboard/rules/RuleEngineConditionBuilder.tsx` (+19 -0) 📝 `apps/web/lib/i18n/locales/en/translation.json` (+1 -0) 📝 `packages/shared/types/rules.ts` (+8 -0) 📝 `packages/trpc/lib/__tests__/ruleEngine.test.ts` (+16 -0) 📝 `packages/trpc/lib/ruleEngine.ts` (+7 -0) </details> ### 📄 Description Add a new condition type `urlDoesNotContain` that allows users to create rules based on URLs that do NOT contain specific strings. This enables more flexible rule configurations, such as automatically adding bookmarks to a "Read Later" list if the URL does not contain "reddit.com" or "youtube.com". Fixes #2259 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:00:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#2046
No description provided.