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
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: config.yml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ template:
10
10
repo: using-github-actions-for-ci-template
11
11
name: github-actions-for-ci
12
12
before:
13
-
# 1. Bot creates [Tic tac toe game](https://github.com/githubtraining/actions-template) for the learner, protects master branch
13
+
# 1. Bot creates [Tic tac toe game](https://github.com/githubtraining/actions-template) for the learner, protects main branch
14
14
# 1. Bot opens a bug report explaining the app is broken, asks learner to figure out what's wrong by adding some testing.
15
15
- type: updateBranchProtection
16
16
- type: createIssue
@@ -32,7 +32,7 @@ before:
32
32
33
33
steps:
34
34
# Step 1
35
-
# 1. Learner opens a PR with a new workflow by using the [templated workflow for Node](https://github.com/actions/starter-workflows/blob/master/ci/node.js.yml)
35
+
# 1. Learner opens a PR with a new workflow by using the [templated workflow for Node](https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml)
36
36
# 1. Bot leaves line-specific comments explaining the pieces that were just added from the templated workflow.
37
37
- title: Use a templated workflow
38
38
description: Create a pull request with a templated workflow
@@ -88,7 +88,7 @@ steps:
88
88
89
89
# Step 2
90
90
# 1. GitHub sends us a workflow run.
91
-
# 1. Bot explains what is happening, and why the page build failed (we don't have a [test script](https://github.com/githubtraining/actions-template/blob/master/package.json#L10))
91
+
# 1. Bot explains what is happening, and why the page build failed (we don't have a [test script](https://github.com/githubtraining/actions-template/blob/main/package.json#L10))
92
92
- title: Run a templated workflow
93
93
description: Wait for GitHub to run the templated workflow and report back the results
# 1. Learner edits the first workflow changing from templated [Node v8,10,12 to just v8,10](https://github.com/githubtraining/actions-template/blob/master/.github/workflows/node.js.yml#L10).
228
+
# 1. Learner edits the first workflow changing from templated [Node v8,10,12 to just v8,10](https://github.com/githubtraining/actions-template/blob/main/.github/workflows/node.js.yml#L10).
229
229
# 1. Bot asks learner to add a build for Windows
230
230
- title: Create a custom GitHub Actions workflow
231
231
description: Edit the existing workflow with new build targets
Copy file name to clipboardExpand all lines: responses/06_custom-workflow.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Our fictional team has a custom workflow that goes beyond the template we've use
14
14
**Access to build artifacts** so that we can deploy them to a target environment
15
15
16
16
<imgalt="icon of a security shield indicating branch protections"align="left"width="50"height="50"src="https://user-images.githubusercontent.com/6351798/88609465-6a1da200-d041-11ea-9c4c-55ffe90a3e72.png"><br/>
17
-
**Branch protections** so that the `master` branch can't be deleted or inadvertently broken
17
+
**Branch protections** so that the `main` branch can't be deleted or inadvertently broken
18
18
19
19
<imgalt="icon of a review approval"align="left"width="50"height="50"src="https://user-images.githubusercontent.com/6351798/88609558-9df8c780-d041-11ea-906f-dd23efd9f65c.png"><br/>
20
20
**Required reviews** so that any pull requests are double checked by teammates
Copy file name to clipboardExpand all lines: responses/17_protect-main.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Awesome! We can now check an additional requirement off our list!
6
6
-:white_check_mark:**dedicated test job** so that we can separate out build from test details
7
7
-:white_check_mark:**access to build artifacts** so that we can deploy them to a target environment
8
8
-:white_check_mark:**obvious approvals** so we can merge quickly and potentially automate merges and deployments
9
-
-**branch protections** so that the `master` branch can't be deleted or inadvertently broken
9
+
-**branch protections** so that the `main` branch can't be deleted or inadvertently broken
10
10
-**required reviews** so that any pull requests are double checked by teammates
11
11
12
12
We'll now use branch protections in combination with this change so that everything goes smoothly. Up until now, I've handled branch protections for you, but I've removed them so that you can learn how to set them.
@@ -21,11 +21,11 @@ Protected branches ensure that collaborators on your repository cannot make irre
21
21
22
22
Next, add branch protections and continue with the course.
23
23
24
-
### :keyboard: Activity: Complete the automated review process by protecting the master branch
24
+
### :keyboard: Activity: Complete the automated review process by protecting the main branch
25
25
26
26
1. Go to [**Branches**]({{ settingsUrl}}/branches) settings. You can navigate to that page manually by clicking on the right-most tab in the top of the repository called **Settings** and then clicking on **Branches**.
27
27
2. Click on [**Add rule**]({{ settingsUrl }}/branch_protection_rules/new) under "Branch protection rules".
28
-
3. Type `master` in **Branch name pattern**.
28
+
3. Type `main` in **Branch name pattern**.
29
29
4. Check **Require pull request reviews before merging**.
30
30
5. Check **Require status checks to pass before merging**.
31
31
6. Check all build and test jobs that you'd like to see in the newly visible gray box.
0 commit comments