3-open-a-pull-request.md (2820B)
1 ## Step 3: Open a pull request 2 3 _Nice work making that commit! :sparkles:_ 4 5 Now that you have made a change to the project and created a commit, it’s time to share your proposed change through a pull request! 6 7 **What is a pull request?**: Collaboration happens on a _[pull request](https://docs.github.com/en/get-started/quickstart/github-glossary#pull-request)_. The pull request shows the changes in your branch to other people and allows people to accept, reject, or suggest additional changes to your branch. In a side by side comparison, this pull request is going to keep the changes you just made on your branch and propose applying them to the `main` project branch. For more information about pull requests, see "[About pull requests](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)". 8 9 ### :keyboard: Activity: Create a pull request 10 11 You may have noticed after your commit that a message displayed indicating your recent push to your branch and providing a button that says **Compare & pull request**. 12 13  14 15 To create a pull request automatically, click **Compare & pull request** button, and then skip to step 5 below. Alternately, you practice creating it manually using the first 4 steps. 16 17 1. In the header menu of your repository, click the **Pull requests** tab . 18 2. Click the **New pull request** button. 19 3. Select the following branches using the dropdown menus. 20 21 - **base:** `main` 22 - **compare:** `my-first-branch` 23 24  25 26 4. Click **Create pull request**. 27 28 5. Enter a title for your pull request. By default, the title will automatically be the name of your branch. For this exercise, let's edit the field to say `Add my first file`. 29 30 6. The next field helps you provide a **description** of the changes you made. Please enter a short description of what you’ve accomplished so far. As a reminder, you have: created a new branch, created a file, and made a commit. 31 32  33 34 7. Click **Create pull request**. 35 36 8. Now that you've started a place to collaborate, Mona should already be busy checking your work. Give her a moment and keep watch in the comments. You will see her respond with progress info and the next lesson. 37 38 39 <details> 40 <summary>Having trouble? 🤷</summary><br/> 41 42 If you don't get feedback, here are some things to check: 43 - Make sure your pull request title is correct. 44 - Ensure your pull request has a description. 45 46 </details>