dwyl / github-backup

:octocat: :back: 🆙 Backup your GitHub Issues so you can still work when (they/you are) offline.
https://github-backup.herokuapp.com
GNU General Public License v2.0
32 stars 3 forks source link

Why? What? How? #1

Closed nelsonic closed 6 years ago

nelsonic commented 7 years ago

This repo was born out of the need identified in: https://github.com/dwyl/github-reference/issues/15

Why?

As a person who uses GitHub as their "single-source-of-truth" I need a backup of GitHub issues so that I can work "offline". (either when I have no network or GH is "down")

What?

Backup GitHub issues.

Note: initially we do not need a Web-UI to let people backup their issues, but later we could build UI to make it more useable.

How?

I have a strong preference for using Elixir for this because we are transitioning all our projects to Elixir, but given that this script does not require parallelism/concurrency it's "OK" to write it in which ever language you are most comfortable using.

SimonLab commented 7 years ago

Some questions and comments to try to get a better idea on how to implement the backup:

Let's try with Elixir! The "Programming Elixir" book has already a nice example which explains how to display the first n most recent issues of a repo.

nelsonic commented 7 years ago

@SimonLab if we use the API without OAuth there will be a limit for the number of requests per minute/hour. you're correct that this will work, it will just mean the person has to wait for the script to run over a number of hours instead of working in a few minutes.

Also, @jruts managed to get a GitHub Web Hook with Elixir set up quite quickly: https://github.com/jruts/git_webooks_elixir so might be worth doing a bit of googling.

jruts commented 7 years ago

@nelsonic that is just to play around, it is far from complete :) Elixir is too much fun not to play around with it. I do think it is rather easy to implement this mini project. If you need a ready to use github lib I would recommend tentacat.

nelsonic commented 7 years ago

@jruts thanks for the tip! https://github.com/edgurgel/tentacat looks really good! 😍 (hope your day is going well...)

jay-meister commented 7 years ago

@nelsonic is this mini project no longer desired now you have seen tentacat?

nelsonic commented 7 years ago

@JMurphyWeb I think we just need to write a script that uses Tentacat to fetch all the issues for an org's repos.

nelsonic commented 6 years ago

If we could solve this issue: https://github.com/dear-github/dear-github/issues/129 the world (of GitHub) would be a better place!

Cleop commented 6 years ago

Closing as 'Done' in the Projects board.