This file provides context for AI coding agents (Claude Code, GitHub Copilot, Cursor, etc.) working in this repository.
- Product family: Classic (OC10)
- Primary language(s): JavaScript, PHP
- Build system: Composer, Make, npm/Yarn, Gulp
- Test framework: PHPUnit, Karma (JavaScript)
- CI system: GitHub Actions
controller/- PHP controllershttp/- HTTP layerjs/- Frontend JavaScriptcss/- Stylesheetstemplates/- Server-side templatesl10n/- Translationsappinfo/- ownCloud app metadataimg/- App iconsscreenshots/- App screenshotstests/- Test suitesMakefile- Build and test automationcomposer.json- PHP dependenciespackage.json- JavaScript dependenciesgulpfile.js- Gulp task runner configurationphpunit.xml- PHPUnit configuration
- Branching: master
- Commit messages: DCO sign-off required (
git commit -s) - Code style: PHP_CodeSniffer, ownCloud coding standard, ESLint
- PR process: Open a PR against master. All CI checks must pass.
# Build
make
# Test (all)
make test
# Test (PHP unit)
make test-php-unit
# Test (JavaScript)
make test-js
# Lint (PHP)
make test-php-style
# Fix code style
make test-php-style-fix- All code contributions must be compatible with the AGPL-3.0 license
- Do not introduce new copyleft-licensed dependencies (GPL, AGPL, LGPL, MPL) without explicit discussion in an issue first. This is especially important for repos migrating to Apache 2.0.
- Do not introduce new dependencies without discussion in an issue first
- This app is the frontend only; the CalDAV backend is in ownCloud Core
- Only use actions owned by
owncloud, created by GitHub (actions/*), or verified on the GitHub Marketplace. - Pin all actions to their full commit SHA (not tags):
uses: actions/checkout@<SHA> # vX.Y.Z - Never introduce actions from unverified third parties.
- Dependabot is configured for automated dependency updates.
- Review and merge Dependabot PRs as part of regular maintenance.
- Do not introduce new dependencies without discussion in an issue first.
- Rebase policy: Always rebase; never create merge commits. Use
git pull --rebaseandgit rebasebefore pushing. - Signed commits: All commits must be PGP/GPG signed (
git commit -S -s). - DCO sign-off: Every commit needs a
Signed-off-byline (git commit -s). - Conventional Commits: Use the Conventional Commits format where the repository enforces it.
- Match existing code style
- Do not refactor unrelated code in the same PR
- Write tests for new functionality
- Keep PRs focused and atomic
- Backend (CalDAV) issues should be filed against ownCloud Core, not this repository