github-empty-commit
Create a empty commit via GitHub API
Installation
yarn add github-empty-commit
Usage
import { githubEmptyCommit } from 'github-empty-commit'
const example = async () => {
const success = await githubEmptyCommit({
owner: 'siberianmh'
repo: 'need-some-ice',
})
}
API
This module exports a single function that returns an boolean
githubEmptyCommit([options])
options
Object
owner
Required - The username of the repository ownerrepo
Required - The name of the repositorycommitMessage
- The message of created commitref
- The branch name in style heads/some-nice-branch
License
MIT