Pull Requests¶
Guidelines for contributing to NextSight AI.
Before You Start¶
- Check existing issues and PRs
- Open an issue for large changes
- Fork the repository
- Create a feature branch
Branch Naming¶
Examples:
Creating a Pull Request¶
1. Fork and Clone¶
git clone https://github.com/YOUR_USERNAME/nextsight.git
cd nextsight
git remote add upstream https://github.com/nextsight-ai/nextsightai.git
2. Create Branch¶
3. Make Changes¶
- Follow code style guidelines
- Add tests for new features
- Update documentation
4. Commit¶
5. Push¶
6. Create PR¶
- Go to GitHub
- Click "New Pull Request"
- Fill out the template
PR Template¶
## Summary
Brief description of changes.
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation
- [ ] Refactoring
## Testing
How to test the changes.
## Checklist
- [ ] Tests pass
- [ ] Linting passes
- [ ] Documentation updated
Review Process¶
- Automated Checks - CI must pass
- Code Review - Maintainer reviews
- Changes Requested - Address feedback
- Approval - Ready to merge
- Merge - Squash and merge
CI Checks¶
All PRs must pass:
- ✅ Python linting (Ruff)
- ✅ TypeScript linting (ESLint)
- ✅ Build test
- ✅ Security scan (CodeQL)
Keeping Your Fork Updated¶
Tips¶
- Small PRs - Easier to review
- One Feature - Don't mix changes
- Descriptive - Clear PR description
- Tests - Add tests for new code
- Docs - Update if needed
Getting Help¶
- Open an issue
- Ask in PR comments
- Check existing PRs for examples