Skip to main content

Overview

This guide walks you through the process of submitting a pull request (PR) to Minecraft Community Edition.

Before You Start

Before creating a pull request:
  1. Read the Contributing Guidelines
  2. Ensure your development environment is set up correctly
  3. Follow the Code Style Guide
  4. Test your changes thoroughly

Pull Request Template

When you create a PR, you’ll be prompted to fill out a template with the following sections:

What does this PR do?

Provide a clear, concise description of what your PR accomplishes:

Why?

Explain the motivation behind the changes:

How to test

Provide clear steps for reviewers to test your changes:

Screenshots / Videos

If your changes affect visuals or gameplay, include screenshots or videos:
Delete this section if not applicable.

Testing Checklist

Before submitting your PR, verify the following:
1

Builds without errors

Your code must compile successfully:
  • Debug build succeeds
  • Release build succeeds
  • All platforms build (if applicable)
2

Tested in-game

Test your changes in the actual game:
  • Feature works as expected
  • No crashes or exceptions
  • Performance is acceptable
  • No visual glitches
  • Multiplayer compatible (if applicable)
3

No new warnings

Your changes should not introduce compiler warnings:
  • Check the build output for warnings
  • Fix any warnings your changes introduced
  • Verify existing warnings weren’t made worse
PRs that introduce new compiler warnings may be rejected.

Submission Guidelines

Code Requirements

Original Work

Your PR must be your own work. Be prepared to provide proof of ownership if requested.

AI Usage

AI assistance for bug fixes is fine, but fully AI-generated implementations are not acceptable.

Code Quality

Follow the project’s code style and maintain high code quality standards.

Testing

Thoroughly test your changes before submitting.

Creating the Pull Request

1

Create a feature branch

Work on a dedicated branch:
2

Commit your changes

Make clear, atomic commits:
Use descriptive commit messages that explain what and why.
3

Push to your fork

Push your branch to GitHub:
4

Open the pull request

  • Navigate to the repository on GitHub
  • Click “New Pull Request”
  • Select your branch
  • Fill out the PR template completely
  • Click “Create Pull Request”

Review Process

Once you submit your PR:

What Reviewers Look For

  1. Functionality: Does it work as described?
  2. Code Quality: Is the code well-written and maintainable?
  3. Style Compliance: Does it follow the code style guide?
  4. Testing: Has it been adequately tested?
  5. Documentation: Are comments clear and helpful?
  6. Impact: Does it affect other parts of the codebase?

Addressing Feedback

When reviewers provide feedback:
  1. Respond promptly: Address comments in a timely manner
  2. Ask questions: If feedback is unclear, ask for clarification
  3. Make changes: Update your code based on feedback
  4. Push updates: Push new commits to the same branch
  5. Mark resolved: Mark conversation threads as resolved when addressed

Automated Checks

Your PR may be subject to automated checks:
  • Build verification: Ensures code compiles
  • Warning detection: Checks for new compiler warnings
  • Code analysis: Static analysis for common issues
All checks must pass before merging.

Merging Criteria

Your PR will be merged when:
  • ✅ All checklist items are completed
  • ✅ Code builds without errors
  • ✅ No new warnings introduced
  • ✅ Tested in-game successfully
  • ✅ Code review approved by maintainer(s)
  • ✅ All automated checks pass
  • ✅ Conflicts resolved (if any)

After Merging

Once your PR is merged:
  1. Delete your branch (optional but recommended):
  2. Update your local repository:
  3. Celebrate: Your contribution is now part of the project!

Common Issues

Merge Conflicts

If your PR has conflicts:

Failed Builds

If the build fails:
  1. Check the build logs for errors
  2. Reproduce the build locally
  3. Fix the issues
  4. Push the fixes

Stale PRs

If your PR becomes stale:
  • Rebase on the latest main branch
  • Verify everything still works
  • Ping reviewers if needed

Best Practices

Each PR should address a single feature or bug. Avoid mixing unrelated changes.
Clear PR descriptions help reviewers understand your changes quickly.
The more testing you do, the faster your PR will be reviewed and merged.
Engage constructively with reviewers. Their goal is to help improve the code.
Reviewers are volunteers. It may take time to review your PR.

Questions?

If you have questions about the PR process:
  • Check existing PRs for examples
  • Ask in the repository discussions
  • Reach out to maintainers
Thank you for contributing to Minecraft Community Edition!