From ca789645fc8264e0d27bfe4e994393aa7efac622 Mon Sep 17 00:00:00 2001 From: MDW Date: Wed, 15 Jul 2026 20:40:45 +0200 Subject: [PATCH] Fix: Use AI provider agnostic .agents, update commit exclusion: develop and version branches (#39189) * qual: Update branch protection rules in AGENTS.md Updated the branch protection rules in AGENTS.md to reflect the new policy of never committing directly to the `develop` branch or version branches matching the regex `^\d+\.\d+$`. * Fix: Rename .claude directory to .agents Renamed the .claude directory and its contents to .agents. .agents is AI provider agnostic. --- {.claude => .agents}/AGENTS.md | 2 +- {.claude => .agents}/skills/add-unit-test/SKILL.md | 0 {.claude => .agents}/skills/code-review/SKILL.md | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {.claude => .agents}/AGENTS.md (98%) rename {.claude => .agents}/skills/add-unit-test/SKILL.md (100%) rename {.claude => .agents}/skills/code-review/SKILL.md (100%) diff --git a/.claude/AGENTS.md b/.agents/AGENTS.md similarity index 98% rename from .claude/AGENTS.md rename to .agents/AGENTS.md index 070e899949b..a1d66837061 100644 --- a/.claude/AGENTS.md +++ b/.agents/AGENTS.md @@ -15,7 +15,7 @@ Every modification must respect: - ❌ Do not break compatibility of PHP functions and methods - ❌ Do not introduce external dependencies without validation - ❌ Separate page actions in the `/* Actions */` section of the PHP code and the rendering part in the `/* Views */` section -- ❌ Never commit directly to `main` or `master` branch +- ❌ Never commit directly to `develop` or version branch matching regex `^\d+\.\d+$` - ❌ Never use PHP native curl functions to call a GET or POST URL, but use instead the Dolibarr function getURLContent() - ✅ Use Dolibarr hooks whenever possible - ✅ Respect existing naming conventions diff --git a/.claude/skills/add-unit-test/SKILL.md b/.agents/skills/add-unit-test/SKILL.md similarity index 100% rename from .claude/skills/add-unit-test/SKILL.md rename to .agents/skills/add-unit-test/SKILL.md diff --git a/.claude/skills/code-review/SKILL.md b/.agents/skills/code-review/SKILL.md similarity index 100% rename from .claude/skills/code-review/SKILL.md rename to .agents/skills/code-review/SKILL.md