Hello and thank you for your interest in contributing to the Vets Who Code web app. We appreciate your effort and support. This document provides guidelines for contributing.
- Code of Conduct
- Getting Started
- Reporting Bugs
- Feature Requests
- Pull Request Process
- Code Style and Linting
- Commit Message Guidelines
- Testing
- Further Help
Our community has a Code of Conduct, and we ask that you read and follow it. This helps ensure a welcoming and inclusive environment for everyone.
- Make sure you have a GitHub account.
- Fork the repository on GitHub.
- Clone your fork to your local machine.
- Ensure the bug hasn't already been reported by searching the Issues.
- If the bug hasn't been reported, open a new Issue. Be sure to provide a clear title, a detailed description, and steps to reproduce the issue.
- Check if the feature has already been requested.
- If it hasn't, open a new Issue with a clear title and detailed description of the feature you'd like to see.
- Create a new branch for your feature or fix.
- Make your changes, ensuring you follow the code style guidelines.
- Commit your changes, using a clear and descriptive commit message.
- Push your branch to GitHub.
- Open a Pull Request against the main branch.
- Ensure your PR description clearly describes the problem and solution.
- We use Prettier and ESLint for code styling and linting. Make sure your code adheres to our configurations.
- Run the linter before submitting a PR to ensure your code passes.
We enforce the Conventional Commits specification using commitlint and husky. All commit messages must follow these rules, and commits will be automatically rejected by git hooks if they don't comply.
<type>(optional scope): <subject>
- Header max length: 72 characters
- Subject case: Must be in sentence-case (capitalize the first letter)
- No period at the end of the subject line
| Type | Description |
|---|---|
feat |
A new feature |
fix |
A bug fix |
docs |
Documentation changes |
style |
Code style changes (formatting, whitespace, etc.) |
refactor |
Code refactoring without changing functionality |
perf |
Performance improvements |
test |
Adding or updating tests |
chore |
Maintenance tasks |
build |
Build system changes |
ci |
CI/CD configuration changes |
revert |
Revert previous commit |
✅ Valid commits:
feat: Add user profile page
fix(ui): Correct button alignment
docs: Update API documentation
refactor(auth): Simplify login logic
❌ Invalid commits:
added new feature # Missing type
feat: add user profile # Subject not in sentence-case
feat: Add user profile. # Has trailing period
- Add tests for any new features or fixes.
- Ensure all tests pass before submitting a PR.
If you have any questions or need further assistance, please reach out to (Jerome Hardaway)[https://github.com/jeromehardaway].