mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-03 07:26:51 +00:00
4.0 KiB
4.0 KiB
12 — Collaboration, Versioning, Build, and Release
Commit Conventions
This project uses Conventional Commits. The release workflow parses commit messages to categorize changelog entries. This is not stylistic — it is functional.
Format
<type>(<optional scope>): <description>
[optional body]
[optional footer]
Commit Types
| Type | When to use |
|---|---|
feat |
A new feature visible to users |
fix |
A bug fix |
docs |
Documentation only changes |
chore |
Maintenance, dependency updates, tooling changes |
refactor |
Code restructuring without behavior change |
test |
Adding or modifying tests |
ci |
CI/CD pipeline changes |
perf |
Performance improvements |
Examples
feat: support MiniMax audio provider
fix: sign media server image proxy URLs
docs: add MCP client configuration examples
chore: upgrade pydantic to 2.9.0
refactor: extract transfer path resolution into helper
test: add subscribe endpoint validation tests
ci: improve docker build cache
Rules
- Only create a commit when the user explicitly asks for one.
- Keep the subject line under 72 characters.
- Use the imperative mood in the subject line ("add", "fix", "remove", not "added", "fixed", "removed").
- If a commit introduces a breaking change, append
!after the type and includeBREAKING CHANGE:in the footer.
Branch Policy
- Do not casually create, rename, or delete branches without user instruction.
- The main development branch is the project default — check
git branchrather than assuming it ismainormaster. - Feature work lives on dedicated branches and is merged via pull request.
- Do not force-push to shared branches.
Version Numbers
- Do not casually change version numbers in
version.pyor related files. - Version changes are part of the release workflow and are only made when the task explicitly involves a release.
- The
FRONTEND_VERSIONfield inversion.pycontrols which frontend release the CLI and Docker build will download. Only update it as part of a coordinated frontend release.
Docker Build and Release
- The primary Docker image bundles the backend (Python app), frontend static files (from
public/), and resource data. - Docker build and release are managed by CI. Do not manually trigger or alter the Docker release flow unless the task explicitly requires it.
- If a Dockerfile change is needed, update
Dockerfileand verify the build locally before submitting.
CI/CD
- CI runs on every push and pull request. The pipeline typically includes:
- Dependency installation
- pytest test suite
- pylint static analysis
- Docker image build (on main branch or tags)
- Do not merge code that fails CI unless there is an explicit, documented reason and user approval.
Pull Request Guidelines
- Keep PRs focused on a single concern. Separate refactors, features, and bug fixes into distinct PRs when practical.
- Include in the PR description:
- What changed and why
- How the change was validated
- Any known risks or compatibility impact
- Migration steps if config or database schema changed
- Tag the PR with the appropriate label (
bug,feature,docs,chore).
Dependency Release Process
When updating a dependency:
- Update
requirements.inwith the new version constraint. - Run
pip-compile requirements.into regeneraterequirements.txt. - Run
safety check -r requirements.txt --policy-file=safety.policy.yml. - Run the full test suite:
pytest. - Commit both
requirements.inandrequirements.txttogether.
Local CLI Release
The moviepilot CLI is the local-mode entrypoint. Its update path is:
moviepilot update all # updates backend + frontend + resources
moviepilot update backend # git pull + reinstall deps
moviepilot update frontend
Bootstrap installer changes live in scripts/bootstrap-local.sh. Only modify this script if the task explicitly involves the bootstrap flow.
Last Updated: 2026-05-25