Welcome to the Field Day Project! This guide will walk you through the process of contributing to our repositories, ensuring a smooth and efficient workflow.
The 2024 Capstone team will be working on these repositories:
The team has forked the main repositories and tweaked the backend values to utilize their own test environment. The goal is to smooth out that part of the process, but for now, this process is designed to prevent accidental overwrites and ensure meaningful contribution chunks. Although the team has already forked the repositories, it is recommended to fork a fresh copy to make polished contributions. You can give this fork a different name to avoid confusion (e.g., ddm-contributions). You can replace local-folder-name with the name of your choice.
- Navigate to the main repository you want to contribute to.
- Click the Fork button to create your own copy of the repository.
git clone <your-forked-repo-url> <local-folder-name>
cd <local-folder-name>
- Ensure you're on the
devbranch of your forked repository:
git checkout dev
- Pull the latest changes from the original repository to stay up-to-date:
git remote add upstream <original-repo-url>
git pull upstream dev
- Create a new branch for your feature or fix:
git checkout -b feature/<short-description>
- Manually apply your changes to a copy of the dev branch from the original repository.
- Follow these guidelines:
- Focus on one feature or fix per branch.
- Avoid bundling multiple changes in a single branch.
- Ensure your changes work as expected.
- Run any tests available to verify functionality.
- Use meaningful commit messages. For example:
git add .
git commit -m "Refactor: Replace hardcoded backend with dynamic config"
git push origin feature/<short-description>
- Navigate to your forked repository on GitHub.
- Click on Compare & pull request.
- Choose the appropriate base repository and branch (main repository's
devbranch). - Provide a clear title and description for the PR, including:
- A brief summary of the changes.
- Any related issue numbers (if applicable).
- Keep PRs small and focused (one feature or fix per PR).
- Clearly explain why the change is necessary.
- Request reviews from other team members for feedback.
-
Branch Naming Convention
- Use descriptive and consistent branch names:
- Example:
feature/dynamic-backend-config,fix/login-bug.
- Example:
- Use descriptive and consistent branch names:
-
Code Style
- Follow the existing coding style in the repository.
- Use linters or formatters if available.
-
Review and Respond
- Address all feedback in the PR review process promptly.
- Ensure all requested changes are implemented before merging.
If you have any questions or encounter issues during the contribution process, feel free to reach out to Ian Skelskey.
By following this guide, you'll help maintain a clean and collaborative workflow. We look forward to your contributions!