Skip to content

Working With Wheels

Submitting Pull Requests to Wheels

This guide provides a step-by-step process for contributing code to Wheels through pull requests (PRs). It covers the entire workflow from setting up your development environment to getting your PR merged into the project.

Before you start contributing, make sure you have:

  1. A GitHub account
  2. Git installed on your local machine
  3. Docker installed (for running the test environment)
  4. Basic knowledge of Git commands and GitHub workflows
  5. Familiarity with Wheels and CFML

Start by forking the Wheels repository to your own GitHub account:

  1. Visit https://github.com/wheels-dev/wheels
  2. Click the “Fork” button in the upper right corner
  3. Select your GitHub account as the destination

Clone your fork to your local machine:

Terminal window
git clone https://github.com/YOUR-USERNAME/wheels.git
cd wheels

Add the main Wheels repository as an “upstream” remote to keep your fork in sync:

Terminal window
git remote add upstream https://github.com/wheels-dev/wheels.git

See Using the Test Environment for more detailed instructions.

Before writing any code, make sure there’s an issue in the GitHub issue tracker:

  1. Check if an issue already exists for the bug or feature you want to work on
  2. If not, create a new issue describing the bug or feature
  3. Wait for feedback from the core team before proceeding

Once your issue is approved, create a feature branch in your local repository:

Terminal window
# First, sync your fork with upstream
git fetch upstream
git checkout develop
git merge upstream/develop
# Create a new branch
git checkout -b feature/issue-NUMBER

Replace NUMBER with the issue number from GitHub. Use descriptive branch names:

  • feature/issue-123 for new features
  • fix/issue-123 for bug fixes
  • docs/issue-123 for documentation updates

Now you can start coding! Remember to:

  • Follow the Code Style Guide
  • Add comments where appropriate
  • Write tests for your changes
  • Keep your changes focused on addressing the specific issue

The Docker test environment allows you to test your changes against multiple CFML engines and databases:

Terminal window
# Start the test environment with specific components
docker compose up lucee5 mysql testui -d
# Access the TestUI at http://localhost:3000

Use the TestUI or run tests directly:

Terminal window
# Run all tests across all engines (from TestUI)
# or run specific tests via command line:
docker exec -it wheels-test-lucee5 sh -c "cd /wheels-test-suite && box wheels test app"
# Run a specific test
docker exec -it wheels-test-lucee5 sh -c "cd /wheels-test-suite && box wheels test app TestName"

Make sure your changes:

  1. Pass all existing tests
  2. Include new tests for new functionality
  3. Work across all supported CFML engines

Once your changes are ready and tested:

Terminal window
git add .
git commit -m "fix: description of your changes (fixes #123)"

Follow these commit message guidelines:

  • Start with a type: fix:, feat:, docs:, refactor:, etc.
  • Include a concise description of the changes
  • Reference the issue number with (fixes #123) or (refs #123)
  • Keep the subject line under 72 characters
  • Use the body of the commit message for additional details if needed

Push your branch to your fork on GitHub:

Terminal window
git push origin feature/issue-123

Create a pull request from your branch to the Wheels develop branch:

  1. Go to your fork on GitHub
  2. Click the “Compare & Pull Request” button for your branch
  3. Set the base repository to wheels-dev/wheels and the base branch to develop
  4. Fill out the PR template with:
    • A clear description of the changes
    • Reference to the issue being addressed
    • Any special testing instructions
    • Screenshots if applicable (for UI changes)

After submitting your PR:

  1. A core team member will review your code
  2. They may request changes or clarification
  3. Make any requested changes by pushing additional commits to your branch
  4. The PR will be automatically updated

If the develop branch has been updated since you created your PR, you may need to update your branch:

Terminal window
git checkout feature/issue-123
git fetch upstream
git merge upstream/develop
# Resolve any conflicts if needed
git push origin feature/issue-123

Each PR should address a single issue or implement a single feature. This makes review easier and reduces the chance of conflicts.

Always include tests for your changes:

  • For bug fixes, add a test that would fail without your fix
  • For new features, add tests covering all functionality
  • Make sure all existing tests continue to pass

If your changes affect user-facing functionality, update the relevant documentation:

  • Update guides in the /docs directory
  • Add inline documentation to code
  • Update the CHANGELOG.md if requested

The Docker test environment is a powerful tool for ensuring your changes work across platforms:

  • Test on multiple CFML engines (Lucee and Adobe ColdFusion)
  • Test with different database engines
  • Use the TestUI to run specific tests and view results

Maintain open communication during the PR process:

  • Respond promptly to review comments
  • Ask questions if requirements are unclear
  • Be open to feedback and suggestions

The core team members are volunteers with limited time. Review may take some time, especially for complex changes.

While waiting for review, you can:

  • Help review other PRs
  • Answer questions in the discussions
  • Report bugs or improve documentation

Once your PR is merged:

  1. Delete your feature branch

    Terminal window
    git checkout develop
    git branch -D feature/issue-123
  2. Sync your fork with the updated upstream

    Terminal window
    git fetch upstream
    git merge upstream/develop
    git push origin develop
  3. Celebrate your contribution to Wheels! 🎉

If your change introduces breaking changes:

  • Clearly indicate this in the PR description
  • Explain why the breaking change is necessary
  • Document migration paths for users

For changes that might impact performance:

  • Include before/after benchmarks if possible
  • Test with different load scenarios
  • Document any performance implications

Remember that Wheels supports multiple CFML engines:

  • Test on both Lucee and Adobe ColdFusion
  • Avoid engine-specific features or provide alternatives
  • Use the Docker environment to verify compatibility

Contributing to Wheels through pull requests is a rewarding way to improve the framework and help the CFML community. By following this process, you’ll help ensure that your contributions are high-quality, well-tested, and efficiently integrated into the project.

For more information on using the test environment, see Using the Test Environment.