diff --git a/config.yml b/config.yml index 72119b0..c8885e9 100644 --- a/config.yml +++ b/config.yml @@ -39,7 +39,7 @@ steps: - type: gate left: "%payload.pull_request.base.ref%" operator: === - right: master + right: main - type: closeIssue issue: Welcome action_id: prev @@ -153,7 +153,7 @@ steps: - type: gate left: "%payload.pull_request.base.ref%" operator: === - right: master + right: main - type: gate left: "%payload.action%" operator: "!==" @@ -244,7 +244,7 @@ steps: - type: gate left: "%payload.pull_request.base.ref%" operator: === - right: master + right: main - type: gate left: "%payload.action%" operator: "!==" @@ -323,7 +323,7 @@ steps: - type: gate left: "%payload.pull_request.merged%" - type: mergeBranch - head: master + head: main base: add-style - type: createPullRequest title: Add some style to your page diff --git a/index.js b/index.js index bd3004b..fdaa20d 100644 --- a/index.js +++ b/index.js @@ -51,7 +51,7 @@ async function mergeHandler (context, yes, no) { module.exports = course => { course.before(async context => { await context.github.repos.updateBranchProtection(context.repo({ - branch: 'master', + branch: 'main', required_status_checks: null, enforce_admins: true, required_pull_request_reviews: {}, @@ -257,7 +257,7 @@ module.exports = course => { course.log(`New blob after replacement: ${newBlob}`) // await context.github.repos.removeBranchProtection(context.repo({ - // branch: 'master' + // branch: 'main' // })) const rootTree = await context.github.gitdata.getTree(context.repo({ @@ -273,11 +273,11 @@ module.exports = course => { const encodedBlob = Buffer.from(newBlob).toString('base64') await context.github.repos.removeBranchProtection(context.repo({ - branch: 'master' + branch: 'main' })) await context.github.repos.merge(context.repo({ - base: 'master', + base: 'main', head: 'add-style' })) diff --git a/responses/00-openapr.md b/responses/00-openapr.md index 943f370..d00ad1c 100644 --- a/responses/00-openapr.md +++ b/responses/00-openapr.md @@ -8,7 +8,7 @@ It's not very special looking yet, is it? Web hosts (and GitHub Pages) look for 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! -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**. +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**. 2. Add a descriptive title to your pull request, something like "Add the index.html file". 3. Add a descriptive body to your pull request. 4. Click **Create pull request**. diff --git a/responses/01-welcome.md b/responses/01-welcome.md index 764facd..0365b6a 100644 --- a/responses/01-welcome.md +++ b/responses/01-welcome.md @@ -19,7 +19,7 @@ It isn't enough to simply create a webpage on GitHub. You must deploy your webpa ## :keyboard: Activity: Turn on GitHub Pages 1. Under your repository name, click [**Settings**]({{ repoUrl }}/settings). -1. In the **GitHub Pages** section, use the **Select source** drop-down menu to select `master` as your GitHub Pages publishing source. +1. In the **GitHub Pages** section, use the **Select source** drop-down menu to select `main` as your GitHub Pages publishing source. 1. Return to this issue. > _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_. diff --git a/responses/05-h1-tag.md b/responses/05-h1-tag.md index 16aac35..b83e37e 100644 --- a/responses/05-h1-tag.md +++ b/responses/05-h1-tag.md @@ -11,7 +11,7 @@ Headers create prominent text in the body of your web page. Headers come in diff ### :keyboard: Create a header for your web page -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. +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. 2. Between the body tags, add an opening `
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: