Thank you for your interest in contributing to the CodeModule Bot Project! Your contributions help improve the project and support the community. This document provides guidelines for contributing to this project. Please follow these instructions to ensure a smooth process.
- Fork the Repository: Click the "Fork" button at the top right corner of the repository page on GitHub to create a personal copy of the repository.
- Clone Your Fork: Clone the repository to your local machine using the following command:
git clone https://github.com/CodeModule-ir/cop.git
- Set Up Your Environment:
- Ensure you have Node.js installed.
- Install project dependencies:
cd cmcop npm install
- Identify an Issue: Look through the issues in the repository or propose a new feature or fix.
- Create a Branch: Create a new branch for your changes:
git checkout -b feature/your-feature-name
- Make Your Changes: Implement your changes or new features.
- Commit Your Changes: Commit your changes with a descriptive message:
git add . git commit -m "Add a descriptive commit message"
- Push Your Branch: Push your branch to your fork:
git push origin feature/your-feature-name
- Run Tests: Use Mocha to run tests and ensure your changes do not break existing functionality:
npm test
- Add Tests: If you add new features or fix bugs, include relevant tests to cover your changes.
Follow the Semantic Commit Message convention for commit messages:
- feat: A new feature
- fix: A bug fix
- docs: Documentation changes
- style: Code style changes (formatting, missing semi-colons, etc.)
- refactor: Code changes that neither fix a bug nor add a feature
- test: Adding or correcting tests
- chore: Changes to the build process or auxiliary tools and libraries
Example:
git commit -m "feat: add new 'warn' command with reason parameter"
- Open a Pull Request: Go to the repository on GitHub and open a new pull request. Provide a clear description of your changes and why they are necessary.
- Review Process: Your pull request will be reviewed by me or other members.
- Address Feedback: Make the requested changes and push them to your branch.
- Merge: Once approved, your pull request will be merged into the main branch.
Please follow our Code of Conduct to ensure a positive and respectful environment for everyone.