0.7.2 • Published 1 year ago

@contentlab/git-adapter-gitlab v0.7.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Introduction

Contentlab is a library that generates a fully functional CRUD GraphQL API for structured text data exclusively from files in a Git repository.

This repository holds code that implements access to Git repositories hosted on GitLab (SaaS).

Usage

Instantiate the adapter with createAdapter() and then call setRepositoryOptions() with GitLabRepositoryOptions on the instance. These options are as follows:

Option nameRequiredDefault valueDescription
projectPathTrueGitLab (SaaS) project path, e.g. myorg/myrepo
tokenTrueGitLab (SaaS) personal access token
pathSchemaFileFalseschema/schema.graphqlPath to schema file in repository
pathEntryFolderFalseentries/Path to folder for content entries

License

The code in this repository is licensed under the permissive ISC license (see LICENSE).