github-tools / github-tools/github
Allow creating a commit without parents
- Lingua principale
- JavaScript
- Stelle
- 3.8k
- Fork
- 809
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100