github-tools / github-tools/github
Allow creating a commit without parents
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.8k
- Forks
- 809
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start at the library entry point that creates Git commits and compare its request construction with the linked GitHub Create a Commit API documentation. Verify that omitting or passing an empty parent produces a root-commit request and that existing parent behavior remains unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- api
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100