Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to raw JSON for issues? #235

Closed
io7m opened this issue Nov 22, 2015 · 2 comments
Closed

Access to raw JSON for issues? #235

io7m opened this issue Nov 22, 2015 · 2 comments

Comments

@io7m
Copy link

io7m commented Nov 22, 2015

Hello.

I currently use the github-api package to maintain a local mirror of my repositories. I would like to be able to maintain a local copy of all issues, open or closed. Right now, I could use the API to pull a list of GHIssue objects and then manually serialize them all. However, this suffers from two problems: It's a maintenance burden, and I'd need to constantly check the API to ensure that new fields haven't been added that my manual serialization would otherwise miss. The github-api package obviously has access to the raw JSON, so is there any way that it could expose it so that I could write it directly to disk?

@kohsuke
Copy link
Collaborator

kohsuke commented Dec 1, 2015

We don't keep JSON in memory, so you'd be better off making direct HTTP calls by using GHIssue.getApiURL().

@kohsuke kohsuke closed this as completed Dec 1, 2015
@io7m
Copy link
Author

io7m commented Dec 2, 2015

OK, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants