0.0.2 • Published 5 years ago
github-empty-commit v0.0.2
github-empty-commit
Create a empty commit via GitHub API
Installation
yarn add github-empty-commitUsage
import { githubEmptyCommit } from 'github-empty-commit'
const example = async () => {
const success = await githubEmptyCommit({
// The username/organization of the repository owner
owner: 'siberianmh'
// The name of the repository
repo: 'need-some-ice',
})
}API
This module exports a single function that returns an boolean
githubEmptyCommit([options])
optionsObjectownerRequired - The username of the repository ownerrepoRequired - The name of the repositorycommitMessage- The message of created commitref- The branch name in styleheads/some-nice-branch