Risposte:
C'è un'API di problemi . Per ottenere tutti i problemi da un repository, è possibile utilizzare cURL:
curl -i https://api.github.com/repos/username/reponame/issues
Ciò restituisce un elenco codificato JSON di tutti i problemi. E …
curl -i https://api.github.com/repos/username/reponame/issues?status=open
... restituisce tutti i problemi aperti. Ora devi solo convertire JSON in CSV e sei pronto.
curl -X GET -u yourapplicationtoken:x-oauth-basic https://api.github.com/repos/username/reponame/issues?state=all
curl -X GET -u yourapplicationtoken:x-oauth-basic https://api.github.com/repos/username/reponame/issues?state=alldeve avere l' repoambito selezionato. In caso contrario, l'autorizzazione non viene concessa e viene visualizzato un errore 404.
È possibile emettere un hubcomando per questo.
hub(ad es. Su macOS run:) brew install hub.hub issuenella directory repo per elencare i problemi aperti (è in formato Markdown).Vedi: hub --helpper maggiori informazioni:
These GitHub commands are provided by hub:
pull-request Open a pull request on GitHub
fork Make a fork of a remote repository on GitHub and add as remote
create Create this repository on GitHub and add GitHub as origin
browse Open a GitHub page in the default browser
compare Open a compare page on GitHub
release List or create releases (beta)
issue List or create issues (beta)
usage: git issueElenco riepilogo dei problemi aperti per il progetto a cui punta il telecomando "origine".
Nota: Sopra legge git issue, perché si aspetta che hai alias huba git( GH-966 ), ad esempio,
alias git=hub
Un'altra alternativa è utilizzare alcuni strumenti come: IssuesDownload (app Java), export_repo_issues_to_csv.py , ecc.
issue(o issues) non è un hubsottocomando.
Ho preparato questo aiuto: https://runkit.io/fiatjaf/586a5b3110e9fd0014ff8aa7/branches/master/formspree/formspree?status=open che utilizza l' API GitHub .
Sostituisci formspree/formspreecon il tuo nome utente e repository. È un endpoint RunKit . Il codice sorgente è su https://runkit.com/fiatjaf/586a5b3110e9fd0014ff8aa7 .