From 4f592fbc72968993477369ffabf4b2f4f321f17d Mon Sep 17 00:00:00 2001 From: Steph Locke Date: Tue, 13 Apr 2021 14:47:32 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Update=20Docs:=20Account=20=E2=80=9Cgithub-?= =?UTF-8?q?backend=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/content/docs/github-backend.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/content/docs/github-backend.md b/website/content/docs/github-backend.md index e1b16787c958..a1f6c5096228 100644 --- a/website/content/docs/github-backend.md +++ b/website/content/docs/github-backend.md @@ -1,9 +1,8 @@ --- -title: GitHub group: Accounts weight: 30 +title: GitHub --- - For repositories stored on GitHub, the `github` backend allows CMS users to log in directly with their GitHub account. Note that all users must have push access to your content repository for this to work. Because Github [requires a server](https://github.com/netlify/netlify-cms/issues/663#issuecomment-335023723) for authentication, Netlify facilitates basic GitHub authentication. @@ -17,6 +16,7 @@ To enable basic GitHub authentication: backend: name: github repo: owner-name/repo-name # Path to your GitHub repository + branch: main ``` ## Specifying a status for deploy previews @@ -33,4 +33,4 @@ backend: preview_context: my-provider/deployment ``` -The above configuration would look for the status who's `"context"` is `"my-provider/deployment"`. +The above configuration would look for the status who's `"context"` is `"my-provider/deployment"`. \ No newline at end of file From 25d89626455cc8ea1ddb6b8b6a1fcf1670cc65e8 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Tue, 13 Apr 2021 17:53:15 +0400 Subject: [PATCH 2/2] Update website/content/docs/github-backend.md --- website/content/docs/github-backend.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/content/docs/github-backend.md b/website/content/docs/github-backend.md index a1f6c5096228..51555f8ced61 100644 --- a/website/content/docs/github-backend.md +++ b/website/content/docs/github-backend.md @@ -16,7 +16,8 @@ To enable basic GitHub authentication: backend: name: github repo: owner-name/repo-name # Path to your GitHub repository - branch: main + # optional, defaults to master + # branch: main ``` ## Specifying a status for deploy previews @@ -33,4 +34,4 @@ backend: preview_context: my-provider/deployment ``` -The above configuration would look for the status who's `"context"` is `"my-provider/deployment"`. \ No newline at end of file +The above configuration would look for the status who's `"context"` is `"my-provider/deployment"`.