Code Contribution Workflow
This guide explains how to contribute code to the Andor's Trail project.
Overview
Prerequisites
Step 1: Fork the Repository
Step 2: Clone Your Fork
bash# Clone your fork
git clone https://github.com/YOUR_USERNAME/andors-trail.git
cd andors-trail
# Add upstream remote (the original repository)
git remote add upstream https://github.com/AndorsTrailRelease/andors-trail.git
# Verify remotes
git remote -v
# Should show:
# origin → your fork
# upstream → original repositoryStep 3: Create a Feature Branch
Branch Naming Conventions
Step 4: Make Changes
Coding Style Guidelines
Java Code Style
Formatting Rules
Comments
Step 5: Test Your Changes
Build the Project
Run Tests
Test on Device/Emulator
Manual Testing
Step 6: Commit Changes
Commit Message Format
Step 7: Keep Your Branch Updated
Step 8: Push to Your Fork
Step 9: Create a Pull Request
PR Title
PR Description
Step 10: Code Review
Responding to Review Comments
Addressing Review Feedback
Step 11: Merge
After Merge
Coding Standards
Javadoc Requirements
Error Handling
Testing Requirements
Common Issues
PR Not Updating After Changes
Merge Conflicts
CI/CD Pipeline Failed
Review Checklist
Resources
Getting Help
Last updated