Thank you for considering contributing to [Pears Hackathon Website]! We welcome contributions from the community, and your help will make this project even better. This guide will help you get started with the process of contributing.
- Code of Conduct
- Ways to Contribute
- Setting Up Your Development Environment
- Branching Strategy
- Style Guide
- Running Tests
- Pull Request Process
- Additional Resources
By participating in this project, you agree to abide by our Code of Conduct. Please be respectful to everyone and foster a welcoming, collaborative environment.
If you find a bug in the project, please let us know! You can report bugs by creating an issue in the GitHub issues section of this repository. Please provide as much information as possible:
- A clear description of the bug
- Steps to reproduce the bug
- Expected behavior vs actual behavior
- Any relevant error messages or logs
If you have ideas on how to improve the project, we’d love to hear them. You can open an issue with your suggestion, and we’ll discuss it further. When suggesting a new feature or enhancement, please include:
- A clear and concise description of the enhancement
- Why you think this enhancement would be valuable
- Any potential alternatives you’ve considered
We welcome code contributions! If you’d like to submit a change or feature, please fork the repository and create a pull request (PR). When submitting code changes, please follow these steps:
- Fork the repository and clone it to your local machine.
- Create a new branch for your work (
git checkout -b feature/your-feature
). - Make your changes, ensuring you follow the style guide and coding conventions.
- Write tests if your change involves functionality.
- Commit your changes with a clear, descriptive commit message.
- Push your branch to your forked repository (
git push origin feature/your-feature
). - Open a pull request against the main repository’s
main
branch.
To set up the project on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/username/repo.git
-
Navigate into the project directory:
cd repo
-
Install dependencies:
# For JavaScript/Node.js projects: npm install # For Python projects: pip install -r requirements.txt
-
For any additional setup instructions (e.g., environment variables, databases), refer to the documentation in the
docs/
directory or the project’s setup guide.
We use Git flow to manage our branching strategy. Here are the key branches:
main
: The main branch with stable and production-ready code.develop
: The development branch where new features and bug fixes are merged.feature/<feature-name>
: Feature branches created fromdevelop
for new features.hotfix/<bug-name>
: Hotfix branches created frommain
for urgent fixes.
When working on a new feature or bug fix, always branch off from develop
.
Please adhere to the following style guidelines when contributing:
-
Use camelCase for variables and function names.
-
Write clear and descriptive commit messages. Follow this format:
[TYPE] short description of changes - Bullet points of what was changed. - Any additional details or context.
Example:
[Fix] Corrected typo in README file - Fixed spelling error in "Contributers" section
-
Follow the project's coding conventions (e.g., indentation, line length). If unsure, follow the existing code style.
Before submitting your PR, ensure all tests are passing. To run tests, follow the steps below:
-
For JavaScript/Node.js projects:
npm test
-
For Python projects:
pytest
If you’re adding new features or fixing bugs, please add or update tests as needed.
- Open a pull request against the
main
branch of the project. - Include a clear description of your changes.
- If the pull request addresses an issue, reference the issue number (e.g.,
Closes #123
). - Wait for feedback from the maintainers. Be open to suggestions and requests for changes.
- Once the pull request is approved, it will be merged into
main
.
- GitHub Documentation
- Git Flow
- Contributor License Agreement (CLA) (if applicable)
Thank you for contributing to [Pears Hackathon]! We truly appreciate your efforts to help improve this project.