github-tools / github-tools/github
Add support for listing Review Comments on a Pull Request
- Lingua principale
- JavaScript
- Stelle
- 3.8k
- Fork
- 809
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Currently it's only possible with this library to list comments on an issue, but those are not the same as "Review Comments" on a PR.
See Github's documentation on [Review Comments](https://developer.github.com/v3/pulls/comments/) vs [Comments](https://developer.github.com/v3/issues/comments/):
> Pull Request Review Comments are comments on a portion of the unified diff. These are separate from Commit Comments (which are applied directly to a commit, outside of the Pull Request view), and Issue Comments (which do not reference a portion of the unified diff).
In order to list review comments on a Pull Request, you need to make a call to
`GET /repos/:owner/:repo/pulls/:number/comments`
versus the call for regular issue comments which is
`GET /repos/:owner/:repo/issues/:number/comments`
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia individuando il punto di ingresso della libreria che elenca i commenti sulle issue e confronta la sua richiesta con GET /repos/:owner/:repo/pulls/:number/comments. Aggiungi il modo corrispondente per elencare i commenti di revisione delle pull request, quindi verifica che utilizzi l'endpoint review-comments invece dell'endpoint issue-comments.
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
- Specificata chiaramente
- Idoneità per principianti
- 35/100