0.2.2 • Published 1 year ago

@contentlab/git-adapter-github v0.2.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 GitHub.

Usage

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

Option nameRequiredDefault valueDescription
repositoryOwnerTrueGitHub repository owner, e.g. contentlab-sh
repositoryNameTrueGitHub repository name, e.g. git-adapter-github
personalAccessTokenTrueGitHub personal access token (classic) with at least repo scope
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).