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

Commit 3de429f

Browse files
brianamarieGitHub Enterprise
authored andcommitted
Merge pull request #3 from briana-the-org/reorder-steps
Reorder steps
2 parents 401e9f2 + e8ee973 commit 3de429f

22 files changed

+54
-154
lines changed

config.yml

Lines changed: 20 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ before:
1111
- type: updateBranchProtection
1212
- type: createIssue
1313
title: Welcome
14-
body: 01_class-introduction-issue.md
14+
body: 00_class-introduction-issue.md
15+
1516
steps:
16-
- title: Enable GitHub Pages
17-
description: Turn on GitHub Pages in your repository.
17+
- title: Generate a GitHub Pages site
18+
description: Generate a GitHub Pages site with the automatic page generator.
1819
event: page_build
1920
link: '{{ repoUrl }}/issues/1'
2021
actions:
2122
- type: respond
2223
issue: 1
23-
with: 02_update-index.md
24+
with: 01_update-index.md
2425
data:
2526
url: 'https://%user.username%.github.io/%payload.repository.name%'
2627

@@ -34,7 +35,7 @@ steps:
3435
required: false
3536
else:
3637
type: respond
37-
with: 06a_pull-request-blank.md
38+
with: 02_pull-request-blank.md
3839
- type: getTree
3940
action_id: tree
4041
sha: '%payload.pull_request.head.sha%'
@@ -43,14 +44,13 @@ steps:
4344
- left: '%actions.tree.data.tree%'
4445
operator: includes
4546
right: 'path:index.html'
46-
- left: '%actions.tree.data.tree%'
47-
operator: includes
48-
right: 'path:index.md'
4947
- type: createReview
50-
body: 02r_merge-pr.md
48+
body: 02_merge-pr.md
5149
event: APPROVE
5250
data:
5351
branch: '%payload.pull_request.head.ref%'
52+
- type: closeIssue
53+
issue: Welcome
5454

5555
- title: Merge your pull request
5656
description: Merge the pull request that customizes your homepage.
@@ -63,56 +63,16 @@ steps:
6363
left: '%payload.pull_request.base.ref%'
6464
operator: ===
6565
right: 'master'
66-
- type: getTree
67-
action_id: tree
68-
sha: '%payload.pull_request.head.sha%'
69-
- type: gate
70-
gates:
71-
- left: '%actions.tree.data.tree%'
72-
operator: includes
73-
right: 'path:index.html'
74-
- left: '%actions.tree.data.tree%'
75-
operator: includes
76-
right: 'path:index.md'
77-
else:
78-
type: respond
79-
with: 02_wrong-file-updated.md
80-
- type: createIssue
81-
action_id: issue
82-
title: Adding a Theme
83-
body: 03_add-a-theme.md
84-
- type: closeIssue
85-
issue: Welcome
86-
- type: removeBranchProtection
87-
- type: respond
88-
with: 04_moving-on-pr.md
89-
data:
90-
url: '%actions.issue.data.html_url%'
91-
92-
- title: Add a theme
93-
description: Using the theme chooser, select a theme for your site.
94-
event: page_build
95-
link: '{{ repoUrl }}/issues'
96-
actions:
97-
- type: getFileContents
98-
action_id: fileContents
99-
filename: _config.yml
100-
- type: gate
101-
left: '/^theme:/m'
102-
operator: test
103-
right: '%actions.fileContents%'
10466
- type: updateBranchProtection
10567
- type: createIssue
10668
action_id: issue
10769
title: Getting ready to blog
108-
body: 05_change-theme.md
70+
body: 03_change-theme.md
10971
- type: respond
110-
with: 04_moving-on.md
111-
issue: Adding a Theme
72+
with: 03_merged-pr.md
11273
data:
11374
url: '%actions.issue.data.html_url%'
114-
- type: closeIssue
115-
issue: Adding a Theme
75+
- type: removeBranchProtection
11676

11777
- title: Customize site details
11878
description: Edit the configuration file to display your information.
@@ -140,7 +100,7 @@ steps:
140100
left: '%payload.pull_request.body%'
141101
else:
142102
type: respond
143-
with: 06a_pull-request-blank.md
103+
with: 02_pull-request-blank.md
144104
- type: getFileContents
145105
filename: _config.yml
146106
action_id: file
@@ -151,10 +111,10 @@ steps:
151111
else:
152112
type: createReview
153113
event: REQUEST_CHANGES
154-
body: 05r_wrong-theme.md
114+
body: 04_wrong-theme.md
155115
- type: createReview
156116
event: COMMENT
157-
body: 07_create-blog-post.md
117+
body: 04_create-blog-post.md
158118
data:
159119
branch: '%payload.pull_request.head.ref%'
160120

@@ -207,7 +167,7 @@ steps:
207167
- left: '%actions.filename%'
208168
else:
209169
- type: createReview
210-
body: 07b_incorrect-post.md
170+
body: 05_incorrect-post.md
211171
event: REQUEST_CHANGES
212172
data:
213173
directory: '%actions.directory%'
@@ -216,7 +176,7 @@ steps:
216176
extension: '%actions.extension%'
217177
filename: '%actions.filename%'
218178
- type: createReview
219-
body: 08_add-front-matter.md
179+
body: 05_add-front-matter.md
220180
event: COMMENT
221181

222182
- title: Add blog post metadata
@@ -261,14 +221,14 @@ steps:
261221
- left: '%actions.date%'
262222
else:
263223
- type: createReview
264-
body: 08r_incorrect-front-matter.md
224+
body: 06_incorrect-front-matter.md
265225
event: REQUEST_CHANGES
266226
data:
267227
date: '%actions.date%'
268228
title: '%actions.title%'
269229
dashes: '%actions.dashes%'
270230
- type: createReview
271-
body: 09_merge-and-celebrate.md
231+
body: 06_merge-and-celebrate.md
272232
event: APPROVE
273233

274234
- title: Merge your first post
@@ -279,6 +239,6 @@ steps:
279239
- type: gate
280240
left: '%payload.pull_request.merged%'
281241
- type: respond
282-
with: 10_next-steps.md
242+
with: 07_next-steps.md
283243
data:
284244
url: 'https://%user.username%.github.io/%payload.repository.name%'
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,26 @@ In this course, you'll create a blog hosted on GitHub Pages and learn how to:
1212

1313
### New to GitHub?
1414

15-
For this course, you'll need to know how to create a branch on GitHub, commit changes using Git, and open a pull request on GitHub. If you need a refresher on the GitHub flow, check out the [the Introduction to GitHub course]({{ host}}/courses/introduction-to-github).
15+
For this course, you'll need to know how to create a branch on GitHub, commit changes using Git, and open a pull request on GitHub. If you need a refresher on the GitHub flow, check out the [the Introduction to GitHub course]({{ host }}/courses/introduction-to-github).
1616

17-
### :keyboard: Activity: Turn on GitHub Pages
17+
### :keyboard: Activity: Generate a GitHub Pages site
1818

1919
The first step to publishing your blog to the web is to enable GitHub Pages on this repository <sup>[:book:](https://help.github.com/articles/github-glossary/#repository)</sup>. When you enable GitHub Pages on a repository, GitHub takes the content that's on the master branch and publishes a website based on its contents.
2020

2121
1. Under your repository name, click [**Settings**](https://github.com/{{ owner }}/{{ repo }}/settings)
22-
1. In the "GitHub Pages" section, use the Select source drop-down menu to select the `master branch` as your GitHub Pages publishing source.
23-
1. Click **Save**
22+
1. In the "GitHub Pages" section, click **Launch automatic page generator**
23+
1. Edit the **Project name** and **Body** to be what you'd like your main page to display
24+
1. Click **Continue to layouts**
25+
1. Select a layout
26+
1. Click **Publish page**
2427

25-
After GitHub Pages is enabled, we'll be ready to create some content.
28+
After GitHub Pages is enabled and the site is started, we'll be ready to create some more content.
2629

2730
For a printable version of the steps in this course, check out the [Quick Reference Guide]({{ host }}/public/{{ course.slug }}.pdf).
2831

2932
> Turning on GitHub Pages creates a deployment of your repository. I may take up to a minute to respond as I await the deployment.
3033
3134
<hr>
32-
<h3 align="center">Return to this issue for my next comment</h3>
35+
<h3 align="center">Return to this issue for my next comment.</h3>
3336

3437
> _Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response from me, wait a few seconds and refresh the page for your next steps._
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ Great job! Now that GitHub Pages is enabled, you can view your website here: htt
44

55
You can customize your homepage by adding content to either an `index` file or the `README.md` file. GitHub Pages first looks for an `index` file. If an `index` file is found, GitHub Pages uses the content in the file to create the homepage. If an `index` file isn’t found, it uses the `README.md` to create the homepage.
66

7-
Your repository has an `index.md` file so we can update it to include your personalized content.
7+
Your repository has an `index.html` file so we can update it to include your personalized content.
88

99
### :keyboard: Activity: Create your homepage
1010

11-
1. Navigate to the **Code** tab of this repository, and browse to the `index.md` file.
12-
1. In the upper right corner, click the :pencil2: pencil icon to open the file editor.
13-
1. Type the content you want on your homepage and remember, [you can use Markdown](https://help.github.com/articles/basic-writing-and-formatting-syntax/) to format your content.
14-
1. Scroll to the bottom, type a commit message, and click **Create a new branch for this commit and start a pull request**.
15-
1. Open a pull request.
11+
1. Navigate to the **Code** tab of this repository, and browse to the `index.html` file
12+
1. In the upper right corner, click the :pencil2: pencil icon to open the file editor
13+
2. Type the content you want on your homepage
14+
3. Scroll to the bottom, type a commit message, and click **Create a new branch for this commit and start a pull request**
15+
4. Open a pull request
1616

1717
> Once you have created your pull request, I will move over there to discuss next steps.
1818
1919
<hr>
20-
<h3 align="center">Look for my next response in your pull request</h3>
20+
<h3 align="center">Look for my next response in your pull request.</h3>

responses/01r_wrong-source.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ You can merge<sup>[:book:](https://help.github.com/articles/github-glossary/#mer
99
1. Click **Delete branch**
1010

1111
<hr>
12-
<h3 align="center">Watch below for my response</h3>
12+
<h3 align="center">Watch below for my response.</h3>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ For example, if you type `closes #2` in your pull request description, the open
88
If you would like assistance troubleshooting the issue you are encountering, create a post on the [GitHub Community]({{ communityBoard }}) board. You might also want to search for your issue to see if other people have resolved it in the past.
99

1010
<hr>
11-
<h3 align="center">Check below for next steps</h3>
11+
<h3 align="center">Check below for next steps.</h3>

responses/02r_wrong-file-updated.md

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

responses/03_add-a-theme.md

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Step 5: Customize Site Details
1+
## Step 4: Customize Site Details
22

33
Great work! You can see your selected theme in action [here](https://{{ user.username }}.github.io/{{ repo }}). If you don't see your changes right away, refresh the page.
44

@@ -12,11 +12,11 @@ You can check out the `_config.yml` file on the **Code** tab of your repository.
1212

1313
Let's change the `_config.yml` so it's a perfect fit for your new blog. First, we need to use a blog-ready theme. For this activity, we will use a theme named `minima`.
1414

15-
1. Navigate to the **Code** tab of this repository, and browse to the `_config.yml` file.
16-
1. In the upper right corner, click :pencil2: to open the file editor.
17-
1. Change `theme:` to **minima** and modify the other configuration variables such as `title:`, `author:`, and `description:` to customize your site.
18-
1. Click **Create a new branch for this commit and start a pull request**.
19-
1. Open a pull request.
15+
1. Navigate to the **Code** tab of this repository, and browse to the `_config.yml` file
16+
1. In the upper right corner, click :pencil2: to open the file editor
17+
1. Change `theme:` to **minima** and modify the other configuration variables such as `title:`, `author:`, and `description:` to customize your site
18+
1. Click **Create a new branch for this commit and start a pull request**
19+
1. Open a pull request
2020

2121
<hr>
22-
<h3 align="center">Look for my next response in your pull request</h3>
22+
<h3 align="center">Look for my next response in your pull request.</h3>
File renamed without changes.

0 commit comments

Comments
 (0)