dwyl / dwyl/github-backup

How to get closed issues?

Offen
#29 11 Kommentare 1 Reaktion 2 zugewiesene Personen Beansprucht von @nelsonic Auf GitHub ansehen
please-test T4h technical
Vorherrschende Sprache
Elixir
Sterne
33
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

From: https://developer.github.com/v3/issues/#list-issues-for-a-repository
To get the list of issues of a repository we need to send a GET request to ```/repos/:owner/:repo/issues```

By adding the ```state``` query parameter to the query we can choose to get all the issues and not just the open ones:
![image](https://user-images.githubusercontent.com/6057298/36669286-3ac53aa2-1aec-11e8-9883-df826c44352c.png)

We already have the ```get_issues``` function: https://github.com/dwyl/github-backup/blob/295ee9e7cf0bc9b5f6d88e89601c5341a2351956/lib/app_web/controllers/github_api/http_client.ex#L47-L52
We need to update this function to add the ```state``` query parameter with the value `all`

ref:
- https://github.com/dwyl/github-backup/issues/9#issuecomment-368071789
- third checkbox of https://github.com/dwyl/github-backup/issues/24

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.