0.5.0 • Published 5 months ago

@commitspark/git-adapter-github v0.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Introduction

Commitspark is a workflow-first Content Management System based on Git and GraphQL.

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. commitspark
repositoryNameTrueGitHub repository name, e.g. git-adapter-github
personalAccessTokenTrueGitHub personal access token (see details below)
pathSchemaFileFalsecommitspark/schema/schema.graphqlPath to schema file in repository
pathEntryFolderFalsecommitspark/entries/Path to folder for content entries

Personal Access Token

Both "Tokens (classic)" and "Fine-grained tokens" are supported. See the GitHub documentation.

Tokens (classic)

A token with repo scope is required.

Fine-grained tokens

A token with the following repository permissions is required for read-only access:

PermissionAccess
ContentsRead-only
MetadataRead-only

License

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