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

Commit 3106023

Browse files
authored
Merge pull request #8 from githubtraining/rename-default-branch
Rename master to main in all references
2 parents bbf6866 + 9527b9d commit 3106023

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ For more information on the goals of this course, check out the [`course-details
1414

1515
## Contribute
1616

17-
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/master/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
17+
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/main/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
1818

19-
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/master/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
19+
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/main/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
2020

2121
## License
2222

config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ before:
4444
store:
4545
repositoryUrl: '{{ payload.repository.html_url }}'
4646
actionsUrl: '{{ payload.repository.html_url }}/actions'
47-
workflowEditUrl: '{{ payload.repository.html_url }}/edit/master/.github/workflows/my-workflow.yml'
47+
workflowEditUrl: '{{ payload.repository.html_url }}/edit/main/.github/workflows/my-workflow.yml'
4848
branchSettingsUrl: '{{ payload.repository.html_url }}/settings/branches'
4949
- type: createProjectBoard
5050
name: Learning Lab Project Board
@@ -62,7 +62,7 @@ before:
6262
welcomeIssueUrl: "%result.data.html_url%"
6363
welcomeIssueNumber: "%result.data.number%"
6464
data:
65-
quicklink: "{{ store.repositoryUrl }}/new/master?filename=.github/workflows/my-workflow.yml"
65+
quicklink: "{{ store.repositoryUrl }}/new/main?filename=.github/workflows/my-workflow.yml"
6666
actionsUrl: "{{ store.repositoryUrl }}/actions/new"
6767
comments:
6868
- 00_explain-gh-script.md
@@ -183,7 +183,7 @@ steps:
183183
issue: "%store.secondIssueNumber%"
184184
data:
185185
columnID: "%store.columnID%"
186-
quicklink: "%payload.repository.html_url%/edit/master/.github/workflows/my-workflow.yml"
186+
quicklink: "%payload.repository.html_url%/edit/main/.github/workflows/my-workflow.yml"
187187
# new pull request
188188
- title: Modify your workflow file
189189
description: Create a pull request to add changes to your workflow
@@ -237,7 +237,7 @@ steps:
237237
data:
238238
actionsUrl: "%payload.repository.html_url%/actions"
239239

240-
- title: Merge the updated workflow into the master branch
240+
- title: Merge the updated workflow into the main branch
241241
description: Make the workflow available for use on the repository
242242
event: pull_request.closed
243243
link: "{{ store.secondPullUrl }}"
@@ -303,7 +303,7 @@ steps:
303303
listProj: "%actions.projectBoard.data%"
304304
listCol: "%actions.listColumns.data%"
305305
columnID: "%actions.listColumns.data.0.id%"
306-
quicklink: "%payload.repository.html_url%/edit/master/.github/workflows/my-workflow.yml"
306+
quicklink: "%payload.repository.html_url%/edit/main/.github/workflows/my-workflow.yml"
307307

308308
- title: Create better comments
309309
description: Use a templated repsonse as the comment body
@@ -358,7 +358,7 @@ steps:
358358
event: APPROVE
359359

360360
- title: Merge the updated workflow
361-
description: Merge the worklow to the master branch
361+
description: Merge the worklow to the main branch
362362
event: pull_request.closed
363363
link: "{{store.thirdPullUrl}}"
364364
actions:
@@ -393,7 +393,7 @@ steps:
393393
1. Edit your [workflow file]( {{ store.workflowEditUrl }}) and look for errors in the linter built into the browser.
394394
1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow.
395395
396-
If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch.
396+
If you need to make changes to your code, remove the [main branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `main` branch.
397397
</details>
398398
399399
---

responses/00_explain-gh-script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Again, that's not too hard at all. Now let's do the same thing, only using the G
5757
repo: github.context.repo.repo,
5858
owner: github.context.repo.owner,
5959
head: github.context.ref,
60-
base: "master",
60+
base: "main",
6161
title: "from my action",
6262
body: "## I totally used GitHub Script to pull this off 🔥"
6363
})

responses/00_octokit-comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Anything you can do with Octokit can be accomplished with GitHub Script 🎉!
1616

1717
_You may have noticed that when using GitHub Script the method call starts with `github` and not `octokit`. This is because GitHub Script provides you with a pre-authenticated octokit/rest.js client stored in a variable named `github`._
1818

19-
_`context` is a reference to an object containing the [context of the current workflow run](https://github.com/actions/toolkit/blob/master/packages/github/src/context.ts)_
19+
_`context` is a reference to an object containing the [context of the current workflow run](https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts)_

responses/02_workflow-triggered.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Try the following troubleshooting steps:
2222
1. Edit your [workflow file]( {{ store.workflowEditUrl }}) and look for errors in the linter built into the browser.
2323
1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow.
2424
25-
If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch.
25+
If you need to make changes to your code, remove the [main branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `main` branch.
2626
</details>
2727

2828
---

responses/05_workflow-triggered.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Try the following troubleshooting steps:
1010
1. Edit your [workflow file]( {{ store.workflowEditUrl }}) and look for errors in the linter built into the browser.
1111
1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow.
1212

13-
If you need to make changes to your code, remove the [master branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `master` branch.
13+
If you need to make changes to your code, remove the [main branch protection]({{ store.branchSettingsUrl }}) and merge your changes into the `main` branch.
1414
</details>
1515

1616
---

0 commit comments

Comments
 (0)