How to get closed issues?

Open
#29 11 comments 1 reaction 2 assignees View on GitHub

@nelsonic is already working on this.

Since Apr 6, 2018.

Assessment

This issue has not been assessed yet.

Description

please-test T4h technical

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

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:

Dominant language
Elixir
Stars
33
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dwyl/github-backup

All issues in dwyl/github-backup

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.