github-empty-commit
v0.0.2
Published
Create a empty commit via GitHub API
Downloads
2
Readme
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({
// 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])
options
Objectowner
Required - The username of the repository ownerrepo
Required - The name of the repositorycommitMessage
- The message of created commitref
- The branch name in styleheads/some-nice-branch