mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-21 22:54:00 +08:00
2.4 KiB
2.4 KiB
🤝 Contributing Guide
We welcome contributions to the HA Text AI project! This document will help you contribute to the project's development.
🌟 How to Contribute
1. Preparation
-
Fork the Repository
- Go to the repository page on GitHub
- Click the "Fork" button in the top right corner
-
Clone Your Fork
git clone https://github.com/YOUR_USERNAME/ha-text-ai.git cd ha-text-ai -
Set Up Remote Repositories
git remote add upstream https://github.com/smkrv/ha-text-ai.git
2. Creating a Development Branch
# Update the main branch
git checkout main
git pull upstream main
# Create a new branch for your feature
git checkout -b feature/short-description-of-changes
3. Development
- Follow the project's coding standards
- Write clean and understandable code
- Add comments when necessary
- Create unit tests for new functionality
4. Committing Changes
# Add modified files
git add .
# Create a meaningful commit
git commit -m "Feat: Add [short feature description]"
5. Commit Message Style
Use the following prefixes:
Feat:- new featureFix:- bug fixesDocs:- documentation updatesStyle:- formatting changesRefactor:- code refactoringTest:- adding testsChore:- project maintenance
6. Pushing Changes
# Push changes to your fork
git push origin feature/short-description-of-changes
7. Creating a Pull Request (PR)
- Go to your fork on GitHub
- Click "New Pull Request"
- Select the base branch
mainof the original repository - Fill out the PR description:
- Brief description of changes
- Motivation for changes
- Screenshots (if applicable)
8. Review Process
- Project maintainers will review your PR
- There may be comments and requests for changes
- After approval, the PR will be merged
🛠 Code Requirements
- Follow PEP 8 for Python
- Write clear and self-documenting code
- Add type hints
- Cover code with tests
🐛 Found a Bug?
- Check existing Issues
- Create a new Issue with:
- Bug description
- Reproduction steps
- Home Assistant version
- Plugin version
📜 License
By contributing to the project, you agree to the project's license.
🤔 Questions?
If you have any questions, create an Issue or contact the project maintainers.
Thank you for your contribution! 🎉