A key-value store for your CI/CD workflows. Backed by GitHub API.
const { GhkvDataStore } = require('ghkv')options.accessTokenAn access token used to access the GitHub APIoptions.ownerOwner of the repositoryoptions.repoRepository nameoptions.branchBranch used to store data, defaults to the default branch
Retrieves a reference to the document by key.
Retrieves the current document data.
Updates the document.
updater: (data: T | undefined) => TThis function should return an updated document, given the original document. Note that it may be called more than once in case of a conflict due to concurrent updates.options.message(Optional) The commit message.
Updates the document.
dataData to set. In case of concurrent updates, last write wins.options.message(Optional) The commit message.