Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 2c1c971

Browse files
authored
Merge pull request #25 from githubtraining/suggested-changes
Use suggested changes
2 parents a35fe7e + a038f1c commit 2c1c971

19 files changed

+95
-66
lines changed

config.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ steps:
4444
- type: closeIssue
4545
issue: Welcome
4646
action_id: prev
47-
- type: respond
48-
with: 02-html-structure.md
47+
required: false
48+
- type: createPullRequestComment
49+
body: 02-html-structure.md
50+
file: index.html
51+
position: 1
4952
data:
5053
welcomeLink: "%actions.prev.data.html_url%"
5154

@@ -76,9 +79,10 @@ steps:
7679
type: createReview
7780
body: 03e-add-html.md
7881
event: REQUEST_CHANGES
79-
- type: createReview
80-
event: COMMENT
82+
- type: createPullRequestComment
8183
body: 03-title-tag.md
84+
file: index.html
85+
position: 2
8286

8387
- title: Add a title tag
8488
description: Add a title tag
@@ -159,6 +163,7 @@ steps:
159163
else:
160164
type: closeIssue
161165
issue: Add a header
166+
required: false
162167
- type: getFileContents
163168
filename: index.html
164169
action_id: index_file
@@ -173,9 +178,10 @@ steps:
173178
type: createReview
174179
event: REQUEST_CHANGES
175180
body: 05e-troubleshoot-h1.md
176-
- type: createReview
177-
event: COMMENT
181+
- type: createPullRequestComment
178182
body: 06-add-image.md
183+
file: index.html
184+
position: 5
179185

180186
- title: Add an image
181187
description: Add an image
@@ -248,6 +254,7 @@ steps:
248254
else:
249255
type: closeIssue
250256
issue: Create a list
257+
required: false
251258
- type: getFileContents
252259
filename: index.html
253260
action_id: index_file
@@ -269,9 +276,10 @@ steps:
269276
type: createReview
270277
body: 08e-list.md
271278
event: REQUEST_CHANGES
272-
- type: createReview
279+
- type: createPullRequestComment
273280
body: 09-add-links.md
274-
event: COMMENT
281+
file: index.html
282+
position: 7
275283

276284
- title: Add links
277285
description: Add links

course-description.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

responses/01-welcome.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ It isn't enough to simply create a webpage on GitHub. You must deploy your webpa
2727
> _For more information, see [Configuring a publishing source for GitHub Pages](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/) in the GitHub Help._
2828
2929
<hr>
30-
<h3 align="center">I'll respond in this issue after you've enabled GitHub Pages.</h3>
30+
<h3 align="center">I'll respond in this issue after GitHub Pages has finished deploying your site.</h3>

responses/02-html-structure.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,25 @@ In HTML, spacing doesn't really matter. We've added some tabs to make the code e
2323

2424
### :keyboard: Activity: Add the `html` and `body` tags to `index.html`
2525

26+
Apply this suggested change, or follow the instructions below if you'd like to type out the code manually.
27+
28+
```suggestion
29+
<html>
30+
31+
<body>
32+
Hello there, awesome person!
33+
</body>
34+
35+
</html>
36+
```
37+
2638
1. Click on **Files Changed** to see the newly added `index.html` file.
27-
1. Click on the :pencil: to edit the file.
39+
1. Click on the ellipsis (...) and select **Edit file**.
2840
1. Before the existing content, add an opening `<html>` tag, and an opening `<body>` tag.
2941
1. After the existing content, add a closing `</body>` tag, and a closing `</html>` tag.
3042
1. In the _Commit changes_ section, enter a commit message that describes what you've done.
3143
1. Ensure you've selected _Commit directly to the `add-index` branch_.
3244
1. Click on **Commit changes**.
3345

3446
<hr>
35-
<h3 align="center">Watch below for my response</h3>
47+
<h3 align="center">I'll respond when I detect you've committed in this pull request.</h3>

responses/03-title-tag.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ Finally, the `head` and `title` tags, will be children of the `html` tag, but si
3434

3535
### :keyboard: Activity: Give your page a title
3636

37+
Apply this suggested change, or follow the instructions below if you'd like to type out the code manually.
38+
39+
```suggestion
40+
<head>
41+
<title>My awesome web page</title>
42+
</head>
43+
44+
```
45+
3746
1. Click on **Files Changed**.
38-
1. Click on the :pencil: to edit the file.
47+
1. Click on the ellipsis (...) and select **Edit file**.
3948
1. Place an opening `<head>` tag and an opening `<title>` tag after the first opening `html` tag, but before the `body` tag.
4049
1. Write out a title after the opening `title` tag.
4150
1. Place a closing `</title>` tag and a closing `</head>` tag after your new title, but before the `body` tag.
@@ -44,4 +53,4 @@ Finally, the `head` and `title` tags, will be children of the `html` tag, but si
4453
1. Click on **Commit changes**.
4554

4655
<hr>
47-
<h3 align="center">Watch below for my response</h3>
56+
<h3 align="center">I'll respond when I detect you've committed in this pull request.</h3>

responses/03e-add-html.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ Let's try again!
99
### :keyboard: Activity: Add the `html` and `body` tags to `index.html`
1010

1111
1. Click on **Files Changed** to see the newly added `index.html` file.
12-
1. Click on the :pencil: to edit the file.
12+
1. Click on the ellipsis (...) and select **Edit file**.
1313
1. Before the existing content, add an opening `<html>` tag, and an opeining `<body>` tag.
1414
1. After the existing content, add a closing `</body>` tag, and a closing `</html>` tag.
1515
1. In the _Commit changes_ section, enter a commit message that describes what you've done.
1616
1. Ensure you've selected _Commit directly to the `add-index` branch_.
17-
1. Click on **Commit changes**.
17+
1. Click on **Commit changes**.
18+
19+
<hr>
20+
<h3 align="center">I'll respond when I detect you've committed in this pull request.</h3>

responses/03e-add-title.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ Let's try again!
1010
### :keyboard: Activity: Give your page a title
1111

1212
1. Click on **Files Changed**.
13-
1. Click on the :pencil: to edit the file.
13+
1. Click on the ellipsis (...) and select **Edit file**.
1414
1. Place an opening `<head>` tag and an opening `<title>` tag after the first opening HTML tag, but before the body tag.
1515
1. Write out a title after the opening title tag.
1616
1. Place a closing `</title>` tag and a closing `</head>` tag after your new title, but before the body tag.
1717
1. In the _Commit changes_ section, enter a commit message that describes what you've done.
1818
1. Ensure you've selected _Commit directly to the `add-index` branch_.
19-
1. Click on **Commit changes**.
19+
1. Click on **Commit changes**.
20+
21+
<hr>
22+
<h3 align="center">I'll respond when I detect you've committed in this pull request.</h3>

responses/04-merge-first-pr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
1. Click on **Delete branch**.
1010

1111
<hr>
12-
<h3 align="center">Watch below for my response</h3>
12+
<h3 align="center">I'll respond when you've merged this pull request.</h3>

responses/05e-troubleshoot-h1.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ Let's try again!
1818
1. Give your branch a descriptive name, like `add-headers-and-images`.
1919
1. Click on **Commit changes**.
2020
1. Give your pull request a title, and a comment.
21-
1. Click on **Create pull request.**
21+
1. Click on **Create pull request.**
22+
23+
<hr>
24+
<h3 align="center">I'll respond when you open a pull request.</h3>

responses/06-add-image.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ You'll also notice that the image tag doesn't need to close since it is consider
1212

1313
### :keyboard: Activity: Add an image to your web page
1414

15+
Apply this suggested change, or follow the instructions below if you'd like to type out the code manually.
16+
17+
```suggestion
18+
<img src="{{ user.avatarUrl }}">
19+
20+
```
21+
1522
1. Click on **Files Changed**.
16-
1. Click on the :pencil: to edit the file.
23+
1. Click on the ellipsis (...) and select **Edit file**.
1724
1. Place an opening `<img>` tag between the body tags. Reminder: you don't need to close an `<img>` tag!
1825
1. Set the `src` attribute to the image you would like to display. You can use your GitHub profile picture: `{{ user.avatarUrl }}`
1926
1. In the _Commit changes_ section, enter a commit message that describes what you've done.
2027
1. Click on **Commit changes**.
2128

2229
<hr>
23-
<h3 align="center">Watch below for my response</h3>
30+
<h3 align="center">I'll respond when I detect you've committed in this pull request.</h3>

0 commit comments

Comments
 (0)