Skip to content

Commit

Permalink
Merge pull request #63 from ag21o9/add-contribution-guidelines
Browse files Browse the repository at this point in the history
Added Contribution Guidelines
  • Loading branch information
Kota-Karthik authored Oct 4, 2024
2 parents cd38811 + a5f7edd commit 28f2e5b
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
90 changes: 90 additions & 0 deletions CONSTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Contribution Guidelines

We appreciate your interest in contributing to our project! Contributions of all kinds are welcome, including bug fixes, feature improvements, documentation updates, and more.

Before contributing, please take a moment to review and follow these guidelines to ensure a smooth process for everyone.

## Table of Contents
- [How to Contribute](#how-to-contribute)
- [Coding Standards](#coding-standards)
- [Commit Messages](#commit-messages)
- [Issue Reporting](#issue-reporting)
- [Pull Requests](#pull-requests)
- [Code of Conduct](#code-of-conduct)

## How to Contribute

1. **Fork the repository:**
- Click the "Fork" button in the top-right corner of the repository page to create your own copy of the project.
- Clone your fork locally using:
```bash
git clone https://github.com/YOUR-USERNAME/PROJECT-NAME.git
```

2. **Create a new branch for your feature or bug fix:**
- It’s a good practice to create a separate branch for each contribution:
```bash
git checkout -b feature-or-bugfix-name
```

3. **Make your changes:**
- Implement your changes or fixes.
- Ensure your code adheres to the [Coding Standards](#coding-standards) described below.
- Test thoroughly to make sure your contribution doesn’t break any existing features.

4. **Commit your changes:**
- Write clear, concise commit messages as outlined in the [Commit Messages](#commit-messages) section.
- Stage and commit your changes:
```bash
git add .
git commit -m "Brief explanation of your changes"
```

5. **Push your branch to GitHub:**
- Push the branch to your forked repository:
```bash
git push origin feature-or-bugfix-name
```

6. **Submit a pull request (PR):**
- Go to the original repository and submit a pull request from your fork.
- Fill out the PR template and include details about the changes you’ve made.

## Coding Standards

- **Consistency:** Follow the existing code style of the project.
- **Indentation:** Use 2/4 spaces for indentation (no tabs).
- **Naming Conventions:** Use meaningful names for variables, functions, and methods. Follow `snake_case` for functions and variables, and `CamelCase` for classes.
- **Comments:** Comment your code where necessary to explain complex logic or decisions.
- **Testing:** Ensure your changes pass all tests and add new tests if required.

## Commit Messages

Follow these guidelines for writing clear and helpful commit messages:

1. Use the present tense (e.g., "Add feature" not "Added feature").
2. Use imperative mood (e.g., "Fix bug" not "Fixes bug").
3. Keep messages concise but descriptive.
4. Reference issues or PRs if applicable (e.g., `Fixes #123`).

## Issue Reporting

1. **Search Existing Issues:** Before creating a new issue, check if it has already been reported.
2. **Provide Detailed Information:** Include steps to reproduce the bug, expected behavior, screenshots if necessary, and any relevant logs.
3. **Label the Issue:** Use appropriate labels to classify the issue (e.g., bug, enhancement, question).

## Pull Requests

1. **One PR, One Feature:** Ensure that each PR is focused on a single feature or bug fix.
2. **Description:** Clearly explain the purpose of the PR, the changes made, and any relevant issues that it addresses.
3. **Review and Tests:** Your PR will be reviewed by maintainers. Ensure that all automated tests pass before submitting your PR.
4. **Keep it Simple:** Try to keep your PR small and focused to make reviewing easier and faster.

## Code of Conduct

This project adheres to a Contributor Covenant [Code of Conduct](link-to-code-of-conduct). By participating, you are expected to uphold this code and maintain a respectful and collaborative environment.

---

Thank you for contributing! We look forward to reviewing your submissions and appreciate your efforts to improve the project.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ If you haven't installed Poetry yet, you can do so by following the instructions
Contributions are welcome! Whether you have ideas for improving the internal workings of TwinTrim, such as optimizing performance or refining algorithms, or you want to enhance the user interface of the CLI tool for a better user experience, your input is valuable. Please fork the repository and submit a pull request with your improvements or new features.
Please refer to the [CONTRIBUTION.md](./CONTRIBUTION.md) for guidelines on how to contribute.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Expand Down

0 comments on commit 28f2e5b

Please sign in to comment.