Contributing to PayloadCMS MCP Plugin
Thank you for considering contributing to the PayloadCMS MCP Plugin! This document outlines the process for contributing to the project.
Code of Conduct
By participating in this project, you agree to abide by our Code of Conduct. Please be respectful and considerate of others.
Getting Started
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/payload-plugin-analytics.git - Install dependencies:
pnpm install - Start the development server:
pnpm dev
Development Workflow
- Create a new branch for your feature or bugfix:
git checkout -b feature-name - Make your changes
- Write or update tests as necessary
- Run the tests:
pnpm test - Ensure your code lints:
pnpm lint - Commit your changes using conventional commits:
pnpm cz - Push to your branch:
git push origin feature-name - Submit a pull request to the main repository
Pull Request Guidelines
- Include a clear description of the changes
- Reference any related issues
- Update documentation as necessary
- Add tests for new features
- Follow the existing code style
- Keep pull requests focused on a single concern
Testing
- Run the test suite with
pnpm test - Add tests for new features or bug fixes
- Ensure all tests pass before submitting a pull request
Commit Guidelines
We use Conventional Commits for clear and standardized commit messages.
Example commit types:
feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Code style changes (formatting, etc.)refactor: Code changes that neither fix bugs nor add featurestest: Adding or updating testschore: Changes to the build process or auxiliary tools
Release Process
We use Semantic Release to manage versioning and releases.
- Use conventional commits for your changes (e.g.,
feat:,fix:,chore:) - Follow the conventional commit format:
type(scope): description - Push your changes to trigger automatic releases
Questions or Need Help?
Feel free to open an issue with the "question" label if you have any questions about contributing.
Thank you for your contribution!