dwyl / dwyl/github-backup

How to get closed issues?

Đang mở
#29 11 bình luận 1 reaction 2 người được giao Được @nelsonic nhận Xem trên GitHub
please-test T4h technical
Ngôn ngữ chính
Elixir
Star
33
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.