- Database schema: tablets, users, loans (junction table) - CLI app: minimal_app.py - Web apps: app.py (Flask), simple_app.py (http.server) - Features: loan management, search, user loans view, project notes - Git structure: CONTRIBUTING.md, .gitignore Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1.6 KiB
1.6 KiB
Contributing Guide
Git Workflow
Branch Strategy
| Branch Type | Naming | Purpose |
|---|---|---|
main |
main |
Production-ready code |
develop |
develop |
Integration branch for features |
| Feature | feature/<name> |
New functionality |
| Hotfix | hotfix/<name> |
Urgent bug fixes |
Workflow
# Clone repository
git clone <repository-url>
cd GestionTablets
# Setup develop branch
git checkout -b develop
# Create feature branch
git checkout -b feature/my-feature
git push origin feature/my-feature
# Make changes, commit
git add .
git commit -m "feat: add my feature"
git push origin feature/my-feature
# Create Pull Request to develop
Commit Message Format
type(scope): description
[optional body]
[optional footer]
Types:
feat: New featurefix: Bug fixdocs: Documentation changesrefactor: Code refactoringchore: Maintenance taskstest: Test-related changes
Examples:
feat(loans): add user loans view pagefix(tablet): validate serial number uniquenessdocs: update README with database schemarefactor(app): extract loan logic to service
Pull Request Process
- Target
developbranch (ormainfor hotfixes) - Include clear description of changes
- Reference related issues
- Wait for code review
- Squash merge preferred
Reverting Changes
# Discard unstaged changes
git checkout -- file.txt
# Unstage file
git reset HEAD file.txt
# Revert to previous commit (safe)
git revert HEAD
# Hard reset to commit (destructive)
git reset --hard <commit-hash>