Skip to content

Commit a9746d7

Browse files
author
lunaceee
authored
added instructions about GitLab support
1 parent fcbbc42 commit a9746d7

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,26 @@ When building sites with a JAMstack approach, a common pattern is to store all c
66

77
Netlify CMS is an open-source content management UI that allows content editors to work with your content in Git through a familiar content editing interface. This allows people to write and edit content without having to write code or know anything about Git, markdown, YAML, JSON, etc.
88

9-
However, for most use cases you won’t want to require all content editors to have a GitHub account with full access to the source code repository for your website.
9+
However, for most use cases you won’t want to require all content editors to have an account with full access to the source code repository for your website.
1010

11-
Netlify’s Git Gateway lets you setup a gateway to GitHub’s API (more providers coming) that lets tools like Netlify CMS work with content, branches and pull requests on your users’ behalf.
11+
Netlify’s Git Gateway lets you setup a gateway to your choice of Git provider's API ( now available with both GitHub and GitLab 🎉 ) that lets tools like Netlify CMS work with content, branches and pull requests on your users’ behalf.
1212

1313
The Git Gateway works with any identity service that can issue JWTs and only allows access when a JSON Web Token with sufficient permissions is present.
1414

15-
To configure the gateway, see our example.env file
15+
To configure the gateway, see our `example.env` file
1616

1717
The Gateway limits access to the following sub endpoints of the repository:
1818

19-
/repos/:owner/:name/git/
20-
/repos/:owner/:name/contents/
21-
/repos/:owner/:name/pulls/
22-
/repos/:owner/:name/branches/
19+
for GitHub:
20+
```
21+
/repos/:owner/:name/git/
22+
/repos/:owner/:name/contents/
23+
/repos/:owner/:name/pulls/
24+
/repos/:owner/:name/branches/
25+
```
26+
for GitLab:
27+
```
28+
/repos/:owner/:name/files/
29+
/repos/:owner/:name/commits/
30+
/repos/:owner/:name/tree/
31+
```

0 commit comments

Comments
 (0)