You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{alt='Commit changes pop-up dialog with the sections Commit message, Extended commit message, and the radio option for "Commit directly to `main`" or "Create a new branch" circled'}
49
49
50
50
Rather than committing directly to the main branch, we will instead make a
{alt='Commit changespop-up dialog, zoomed in on the "Create a new branch" radio button when clicked, which defaults a branch name that can be changed'}
54
54
55
55
GitHub will autopopulate a branch name for us. We can choose to keep it or
56
56
change it.
@@ -60,7 +60,7 @@ change it.
60
60
Once we click "Commit changes," the page will load the "Open a pull request"
61
61
page with our commit message as the title.
62
62
63
-
{alt='Open a pull request page reloaded'}
63
+
{alt='Open a pull request page loaded - shows the commit message from the previous step as the Title, empty "Write" section'}
64
64
65
65
A new PR has several parts:
66
66
@@ -70,7 +70,7 @@ A new PR has several parts:
70
70
71
71
To open the issue, click the "Create pull request" button.
72
72
73
-
{alt='Newly opened PR with proposed changes'}
73
+
{alt='Newly opened PR with proposed changes - main page shows the Title, description, list of commits, and merge options'}
74
74
75
75
::::::::::::::::::::::::::::::::::::::: challenge
76
76
@@ -96,21 +96,21 @@ have commented on or subscribed to the PR.
96
96
Simply click in the comment box at the bottom of the PR, type whatever
97
97
you'd like, and click "Comment."
98
98
99
-
{alt='Add a comment to a PR'}
99
+
{alt='Comment box on a Pull Request - Write section includes a statement, "I am writing a comment on this PR"'}
100
100
101
101
Another useful feature for GitHub is linking Issues and PRs. This is actually
102
102
very simple. In the PR's description or in a comment, mention the relevant
103
103
Issue using `#` and the Issue number.
104
104
105
-
{alt='Link a PR to an Issue'}
105
+
{alt='An image using the pound symbol (#) to pop-up options for linking other Issues or Pull Requests'}
106
106
107
107
This will create a link to the Issue.
108
108
109
-
{alt='Link to the Issue'}
109
+
{alt='An image showing the pop-up to a linked issue. The pop-up shows a small preview of the linked issue that includes the title and some portion of the description.'}
110
110
111
111
You can also edit the information in the right-hand column.
112
112
113
-
{alt='Information block with reviewers, assignees, labels, projects'}
113
+
{alt='Information block on the right-hand side that includes reviewers, assignees, labels, projects'}
114
114
115
115
We will cover the following options:
116
116
@@ -148,11 +148,11 @@ are going to skip it for now.
148
148
149
149
Merging a PR is quite simple - just click the "Merge pull request" button.
150
150
151
-
{alt='A simple merge with our exercise PR'}
151
+
{alt='The merge options on the example PR that shows that the branch has no conflicts and the "Merge pull request" button highlighted'}
152
152
153
153
The dropdown on the "Merge pull request" shows several options:
154
154
155
-
{alt='Merge PR dropdown with three options'}
155
+
{alt='Merge PR dropdown with three options - Create a merge commit, Squash and merge, Rebase and merge'}
156
156
157
157
We will not cover all of these options here, but read more about them in
158
158
[GitHub's official documentation](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request#merging-a-pull-request).
@@ -161,7 +161,7 @@ When you click the "Merge pull request" button, a new dialog box appears,
161
161
prompting for the commit message. Once you have made the preferred edits,
{alt='Confirm merge dialog box - shows the merge commit message, an extended message, and a button to confirm the merge'}
165
165
166
166
The changes have been incorporated back into the `main` branch.
167
167
@@ -181,8 +181,8 @@ You now know the basic actions you can take on a GitHub Pull Request!
0 commit comments