cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
955 stars 33 forks source link

Backup GitHub Issues #157

Closed stefnotch closed 9 months ago

stefnotch commented 1 year ago

I've read through the documentation, but I can't find anything about "backing up GitHub/GitLab issues".

Being able to make a local, offline backup of the issue tracker is pretty important for me, as otherwise, GitHub issues are only available on their website.

If this is supported, I'd love to see it documented and advertised. If not, I'd love to see this become supported.

cooperspencer commented 1 year ago

Gickup currently only backs up repositories and wikis. I need to investigate how much work it would take to back up issues as well.

stefnotch commented 9 months ago

Thanks for the answer. Hopefully it'll be possible in the future :)

Part of why I think it's important to back up GitHub issues is the youtube-dl fiasco, where the repository was locked. During that time, none of the information that was stored in the GitHub issues was accessible[1], which was rather troubling.

[1] Well, except through the internet archive.

cooperspencer commented 9 months ago

Fair point. I'll look into it and try to come up with something

cooperspencer commented 9 months ago

I began investigating it, and without an API token, you quickly encounter the API limit. The best option would be to enable this only when the token is in use.

cooperspencer commented 9 months ago

I started working on it. For now it works with a local backup of the issues from github. https://github.com/cooperspencer/gickup/pull/185

cooperspencer commented 9 months ago

Just merged it to main. I will push a new release with those changes today or tomorrow.

cooperspencer commented 9 months ago

just pushed a new release including the backups for issues

stefnotch commented 9 months ago

Woah, that's amazing! Thank you very much.

I'll have fun testing it and can finally properly back up my repositories and the repositories that I care about. And also benefit from being able to read issues while offline, for instance when I'm in a train with a spotty Wifi connection.

cooperspencer commented 9 months ago

I am glad you like it. If anything else comes to mind, please don't hesitate to open another issue/feature request.