dwyl / dwyl/github-backup

How to get closed issues?

オープン
#29 コメント 11 件 リアクション 1 件 担当者 2 名 @nelsonic が担当を希望しています GitHub で見る
please-test T4h technical
主要言語
Elixir
スター
33
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。