Thank you for your interest in contributing to our project! We appreciate your time and effort in helping us improve. Please follow the guidelines below to ensure a smooth contribution process.
Before reporting a new issue, please:
- Check Existing Issues: First, check if a similar issue already exists (open or closed). This helps avoid duplicates and speeds up the resolution process.
- Be Descriptive: Provide a detailed description of the issue. Include the following information:
- Steps to reproduce the issue.
- Expected and actual behavior.
- Any relevant logs or screenshots.
- Environment details (e.g., OS, browser, version of the software).
If your issue is a feature request, please include:
- The purpose of the feature.
- The benefits of the feature.
- The motivation behind the feature request.
When submitting a pull request (PR), please follow these guidelines:
-
Fork the Repository: Create a fork of the repository on GitHub.
-
Create a New Branch: Create a new branch from
main
for your work. Use a descriptive name, such asfeat/adding-new-providers
. -
Commit Messages: Use the following commit message conventions:
feat: adds new feature
fix: fixes bug
docs: adds documentation
chore: does chore
At the top level, we use the following types to categorize our commits:
feat
: New feature that adds functionality. These are automatically added to the changelog when creating new releases.fix
: A fix to an existing feature. These are automatically added to the changelog when creating new releases.docs
: Changes to documentation only. These do not appear in the changelog.chore
: Changes to code that are neither a fix nor a feature (e.g., refactoring, adding tests, etc.). These do not appear in the changelog.
When creating a PR, please ensure:
- Proper Naming: Use a descriptive title for the PR, matching the branch name if possible.
- Detailed Description: Provide a detailed description of the changes. Include:
- The purpose of the changes.
- The problem being solved or the feature being added.
- Any relevant issue numbers (e.g.,
Closes #123
). - Instructions on how to test the changes.
- Review Process: Be prepared to engage in the review process. Respond to feedback and make necessary changes.
-
Clone the Forked Plugin Repository
- Clone the repository you forked from the original project.
-
Install Packages
- Run
pnpm install
to install all necessary dependencies.
- Run
-
Build and Test the Plugin Locally
- Run the build command
pnpm build
in the root directory. This will generate a/dist
directory. - Navigate to the example PayloadCMS project at
/example/with-auth-plugin
. This project already imports the plugin from the/dist
directory. cd
into/example/with-auth-plugin
.- Run the example application using
pnpm dev
.
- Run the build command
-
Building the Plugin
- Building the plugin is necessary to view any changes locally. This ensures that the output generated locally will be the same as the one generated after publishing the plugin.
We appreciate your contributions and look forward to collaborating with you! If you have any questions or need assistance, please don't hesitate to reach out. Cheers!