mattduck / gh2md

Export Github repository issues, pull requests and comments to markdown.
MIT License
254 stars 45 forks source link

Is possible to export each issue in a separated file? #13

Closed guilhermeprokisch closed 3 years ago

guilhermeprokisch commented 4 years ago

I want to export each issue in a separated file. It's possible to do?

mattduck commented 4 years ago

That's not currently feature, but it wouldn't be a huge amount of work to implement. I'll try to get to it sometime, but realistically it's going to be at least a few weeks until I sit down to look at it.

lhoupert commented 3 years ago

Hi there! I would also be really interested in this possibility. I am using github issues as get-things-done lists :-) and it would be great to be able to easily export each individual issue as a md file. I got the idea after reading this nice article (https://rabernat.medium.com/advising-and-collaborating-during-a-pandemic-and-sabbatical-ca9531b82b6d).

mattduck commented 3 years ago

it's going to be at least a few weeks until I sit down to look at it.

This was not a good estimate, my bad. Nearly a year late but I finally sat down and implemented multiple file support this morning.

Now if you pass the argument --multiple-files, your output path will be treated as a directory (instead of the default markdown file), and each issue/PR will be written to its own file, using the same formatting that it has when it's written to a single file. You can see an example of this at https://github.com/mattduck/gh2md/tree/master/examples/gh2md-multiple-files-example.

There is a new 1.0.1 release of gh2md that includes this feature. (It also removes support for user+password login as Github dropped supporting this a while back).

Hopefully this will be useful for somebody in the future. I'm going to close this as done but LMK if any feedback/issues.

guilhermeprokisch commented 3 years ago

Thanks, @mattduck!