drdhaval2785 / github_issue_backup

a script to backup github issues
0 stars 0 forks source link

Optionally don't create html files #42

Open funderburkjim opened 4 years ago

funderburkjim commented 4 years ago

Hi, Dhaval - Recently, I've run into the problem of forgetting where some issue comments are located -- many repositories and many issues -- hard to search them.

I'm thinking of creating a file which has summary information on all the issues for a big list of repositories. Think of a single table that has each issue of each repository with the title of the issue, maybe a couple of other pieces of information.

Luckily I was able to find this github_issue_backup that you made several years ago. I cloned it and ran a sample, which still works!

sh github_issue_backup.sh  funderburkjim testing -a bkup_2020 -l -n

I used the '-n' to avoid images.

Now I plan to write a script which parses all .txt files: bkup_2020/funderburkjim/testing/N.txt files, and outputs just the summary information of interest to me currently.

So, for this project, I don't really need the html files (i.e., the issue comments), and think it would be both faster and require less local storage to just skip retrieving them.

Would it be easy for you to add an additional value for the last parameter, maybe 'nn' which would indicate to skip the html files (as well as the images)?

funderburkjim commented 4 years ago

One other minor suggestion:

Add something in .gitignore , so that a user may place his output files within the repository, but so those output files won't be tracked by git.

Maybe temp* or bkup*

funderburkjim commented 4 years ago

@drdhaval2785 Have you considered these suggestions?

drdhaval2785 commented 4 years ago

@funderburkjim I saw the suggestions, but I would not be able to implement it in near future, due to administrative exigencies.