github-tools / github-tools/github

Error 422 by posting a new tree

Ouverte
#533 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
3.8k
Forks
809
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi
I am having an issue by posting a new tree on my Github. I wonder if it is my json file:
{"tree": [{
"path": "graphics",
"mode": "040000",
"type": "tree"
},
{
"path": "locale",
"mode": "040000",
"type": "tree"
},
{
"path": "methods",
"mode": "040000",
"type": "tree"
},
{
"path": "migrations",
"mode": "040000",
"type": "tree"
},
{
"path": "prototypes",
"mode": "040000",
"type": "tree"
}]}
, the url I use: https://api.github.com/repos/MyName/MyRepos/git/trees
So, I have this (422) Unprocessable Entity issue, and no further info.
Can you help?
Many thanks
Niko

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

No repository file, test, or entry point is named. Start by checking the Git trees API requirements against the supplied JSON and URL, then reproduce the 422 response; done means identifying the missing or invalid request detail and documenting or correcting it.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github, javascript
Domaine
api
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
15/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.