PY-1.4-BP2-MQ60

Our Goal: Make a Pull Request

In this lesson, you will learn how to make your first 'Pull Request' (PR) on GitHub. This is how you tell others that you have new code ready to be added to the main game. You will give your Pull Request a good name and explain what changes you made.

Get Ready to Make a PR

Before you make your Pull Request, go to your game project on GitHub.com. Make sure you are on the right project page.

What to look for:

āœ… You should see a message or a button that asks if you want to make a Pull Request for your new branch. This means GitHub knows you pushed a new branch. āœ… Make sure the Pull Request will go to the 'main' branch. This is the main game code.

Make Your Pull Request

Now, you will make your Pull Request on GitHub. Follow these steps:

  1. On your GitHub project page, click the button that says something like 'Compare & pull request' for your new branch.
  2. Make sure the main branch ('main') is chosen as the place where your changes will go.
  3. Give your Pull Request a clear and short title. This title should tell what your new feature does, like 'Add Score Limit to Pong Game'.
  4. Write a short message in the description box. Explain what changes you made and why.
  5. Click the 'Create pull request' button.

Check Your Work Again

You've made your Pull Request! Now, let's check to make sure it's there.

Go to the 'Pull requests' tab in your GitHub project. You should see your new Pull Request listed.

What you should see:

āœ… Your Pull Request should have the title you gave it. āœ… The description should have your summary of changes. āœ… It should say that it's open and ready to be looked at.

If you see these things, you successfully made your first Pull Request!

Documentation

Documentation not available for PY-1.4-BP2.