Thank you for considering contributing to LogSuite! We welcome contributions from the community to help make this project better. This document outlines the process for contributing and provides guidelines to ensure that contributions are consistent and maintainable.
-
Fork the Repository: Fork the repository to your GitHub account by clicking the "Fork" button on the repository page.
-
Clone Your Fork: Clone your forked repository to your local machine.
git clone https://github.com/your-username/logsuite.git cd logsuite
-
Create a Branch: Create a new branch for your feature or bugfix.
git checkout -b my-feature-branch
-
Set Up the Environment: Ensure you have the necessary dependencies installed.
flutter pub get
-
Develop Your Feature: Implement your feature or bugfix. Follow the existing code style and conventions.
-
Testing: Ensure that your changes are well-tested. Add new tests if necessary.
flutter test
-
Commit Your Changes: Write clear and concise commit messages. Follow the convention of starting with a verb in the imperative mood, such as "Add", "Fix", or "Update".
git add . git commit -m "Add new feature"
-
Push to Your Fork: Push your changes to your forked repository.
git push origin my-feature-branch
-
Create a Pull Request: Navigate to the original repository and create a pull request from your fork. Provide a clear description of your changes and the problem they solve.
-
Open GitHub Desktop: Launch GitHub Desktop and log in to your GitHub account if you haven't already.
-
Clone the Repository:
-
Switch to the Correct Branch:
-
Make Changes: Make your changes to the code or files in the repository using your preferred code editor.
-
Commit Changes:
- In GitHub Desktop, you'll see a list of the files you've changed. Check the box next to each file you want to include in the commit.
- Enter a summary and description for your changes in the "Summary" and "Description" fields, respectively. Click the "Commit to " button to commit your changes to the local branch.
-
Push Changes to GitHub: After committing your changes, click the "Push origin" button in the top right corner of GitHub Desktop to push your changes to your forked repository on GitHub.
-
Create a Pull Request:
-
Go to the GitHub website and navigate to your fork of the logsuite repository.
-
You should see a button to "Compare & pull request" between your fork and the original repository. Click on it.
-
Review and Submit:
- On the pull request page, review your changes and add any additional information, such as a title and description, that you want to include with your pull request.
- Once you're satisfied, click the "Create pull request" button to submit your pull request.
-
Wait for Review: Your pull request will now be available for review by the project maintainers. They may provide feedback or ask for changes before merging your pull request into the main branch of the logsuite repository.
-
Follow Flutter Best Practices: Write clean, readable, and maintainable code. Follow the Effective Dart guidelines.
-
Documentation: Ensure your code is well-documented. Public methods should have clear and concise comments explaining their purpose and usage.
-
Testing: Write tests for your code. Ensure that existing tests pass before submitting a pull request.
-
Commit Messages: Use descriptive commit messages. Each commit should represent a single logical change.
If you find a bug or have a feature request, please open an issue on GitHub. Provide as much detail as possible to help us understand and reproduce the issue.
- Be Respectful: Treat others with respect. Be constructive and considerate in your communication.
- Collaborate: We encourage collaboration. Feel free to discuss your ideas in the issues or pull requests.
By contributing to LogSuite, you agree that your contributions will be licensed under the MIT License.
Thank you for contributing to LogSuite! We appreciate your support and look forward to your contributions.