github-tools / github-tools/github

Allow creating a commit without parents

Open
#413 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.8k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

Currently the library always sets a parent, failing GitHub's input validation if giving a falsy parent.

However, [GitHub's commit API](https://developer.github.com/v3/git/commits/#create-a-commit) allows creating commits without parents:

> `parent` The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.