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

Commit 6024559

Browse files
authored
Merge pull request #39 from githubtraining/update-branch-name
change "master" to "main"
2 parents 1a4de86 + 134d10a commit 6024559

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ steps:
3939
- type: gate
4040
left: "%payload.pull_request.base.ref%"
4141
operator: ===
42-
right: master
42+
right: main
4343
- type: closeIssue
4444
issue: Welcome
4545
action_id: prev
@@ -153,7 +153,7 @@ steps:
153153
- type: gate
154154
left: "%payload.pull_request.base.ref%"
155155
operator: ===
156-
right: master
156+
right: main
157157
- type: gate
158158
left: "%payload.action%"
159159
operator: "!=="
@@ -244,7 +244,7 @@ steps:
244244
- type: gate
245245
left: "%payload.pull_request.base.ref%"
246246
operator: ===
247-
right: master
247+
right: main
248248
- type: gate
249249
left: "%payload.action%"
250250
operator: "!=="
@@ -323,7 +323,7 @@ steps:
323323
- type: gate
324324
left: "%payload.pull_request.merged%"
325325
- type: mergeBranch
326-
head: master
326+
head: main
327327
base: add-style
328328
- type: createPullRequest
329329
title: Add some style to your page

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function mergeHandler (context, yes, no) {
5151
module.exports = course => {
5252
course.before(async context => {
5353
await context.github.repos.updateBranchProtection(context.repo({
54-
branch: 'master',
54+
branch: 'main',
5555
required_status_checks: null,
5656
enforce_admins: true,
5757
required_pull_request_reviews: {},
@@ -257,7 +257,7 @@ module.exports = course => {
257257
course.log(`New blob after replacement: ${newBlob}`)
258258

259259
// await context.github.repos.removeBranchProtection(context.repo({
260-
// branch: 'master'
260+
// branch: 'main'
261261
// }))
262262

263263
const rootTree = await context.github.gitdata.getTree(context.repo({
@@ -273,11 +273,11 @@ module.exports = course => {
273273
const encodedBlob = Buffer.from(newBlob).toString('base64')
274274

275275
await context.github.repos.removeBranchProtection(context.repo({
276-
branch: 'master'
276+
branch: 'main'
277277
}))
278278

279279
await context.github.repos.merge(context.repo({
280-
base: 'master',
280+
base: 'main',
281281
head: 'add-style'
282282
}))
283283

responses/00-openapr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It's not very special looking yet, is it? Web hosts (and GitHub Pages) look for
88

99
To help you get started, I have already created an `index.html` file for you on a branch called: `add-index`. All you need to do is create the pull request. Don't worry, I'll help you!
1010

11-
1. Create a pull request. You can either [use this direct link]({{ repoUrl }}/compare/master...add-index?expand=1), or go to the **Code** tab, click on **New Pull Request**, select **base: master**, and **compare: add-index**.
11+
1. Create a pull request. You can either [use this direct link]({{ repoUrl }}/compare/main...add-index?expand=1), or go to the **Code** tab, click on **New Pull Request**, select **base: main**, and **compare: add-index**.
1212
2. Add a descriptive title to your pull request, something like "Add the index.html file".
1313
3. Add a descriptive body to your pull request.
1414
4. Click **Create pull request**.

responses/01-welcome.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ It isn't enough to simply create a webpage on GitHub. You must deploy your webpa
1919
## :keyboard: Activity: Turn on GitHub Pages
2020

2121
1. Under your repository name, click [**Settings**]({{ repoUrl }}/settings).
22-
1. In the **GitHub Pages** section, use the **Select source** drop-down menu to select `master` as your GitHub Pages publishing source.
22+
1. In the **GitHub Pages** section, use the **Select source** drop-down menu to select `main` as your GitHub Pages publishing source.
2323
1. Return to this issue.
2424

2525
> _I may take up to a minute to respond as I wait for GitHub Pages to create a deployment of your repository. If you don't see anything after a minute, refresh this page_.

responses/05-h1-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Headers create prominent text in the body of your web page. Headers come in diff
1111
### :keyboard: Create a header for your web page
1212

1313

14-
1. Edit the `index.html` file in your master branch by [using this direct link]({{ repoUrl }}/edit/master/index.html) or going to the **Code** tab, clicking on the `index.html` file, clicking the pencil :pencil: to edit the HTML.
14+
1. Edit the `index.html` file in your main branch by [using this direct link]({{ repoUrl }}/edit/main/index.html) or going to the **Code** tab, clicking on the `index.html` file, clicking the pencil :pencil: to edit the HTML.
1515
2. Between the body tags, add an opening `<h1>` tag, some content for the header, and a closing `</h1>` tag.
1616
3. In the _Commit changes_ section, enter a commit message that describes what you've done.
1717
4. Ensure you've selected _Create a new branch for this commit and start a pull request_.

responses/08-create-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For the next exercise, you are going to create a list of your favorite websites.
4242

4343
### :keyboard: Activity: Create a list of your favorite sites
4444

45-
1. Edit the `index.html` file in your master branch by [using this direct link]({{ repoUrl }}/edit/master/index.html) or going to the **Code** tab, clicking on the `index.html` file, clicking the pencil :pencil: to edit the HTML.
45+
1. Edit the `index.html` file in your main branch by [using this direct link]({{ repoUrl }}/edit/main/index.html) or going to the **Code** tab, clicking on the `index.html` file, clicking the pencil :pencil: to edit the HTML.
4646
1. Inside the body tag, create a list, either ordered or unordered, of your favorite sites on the internet.
4747
1. In the _Commit changes_ section, enter a commit message that describes what you've done.
4848
1. Ensure you've selected _Create a new branch for this commit and start a pull request_.

responses/08e-list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Let's try again!
88

99
### :keyboard: Create a list of your favorite sites
1010

11-
1. Edit the `index.html` file in your master branch by [using this direct link](https://github.com/{{ user.username }}/{{ repo }}/edit/master/index.html) or going to the **Code** tab, clicking on the `index.html` file, clicking the pencil :pencil: to edit the HTML.
11+
1. Edit the `index.html` file in your main branch by [using this direct link](https://github.com/{{ user.username }}/{{ repo }}/edit/main/index.html) or going to the **Code** tab, clicking on the `index.html` file, clicking the pencil :pencil: to edit the HTML.
1212
1. Inside the body tag, create a list, either ordered or unordered, of your favorite sites on the interwebs.
1313
1. In the _Commit changes_ section, enter a commit message that describes what you've done.
1414
1. Ensure you've selected _Create a new branch for this commit and start a pull request_.
@@ -18,4 +18,4 @@ Let's try again!
1818
1. Click on **Create pull request.**
1919

2020
<hr>
21-
<h3 align="center">I'll respond in your new pull request.</h3>
21+
<h3 align="center">I'll respond in your new pull request.</h3>

0 commit comments

Comments
 (0)