andyl (andyl) opened
In #5 @MichaelMure settled on JSON as a serialization format.
Feature request: add a CLI command to export the issue repository.
Something like: git bug export that just exports the whole issue repo as JSON would be great.
andyl (andyl) opened
In #5 @MichaelMure settled on JSON as a serialization format.
Feature request: add a CLI command to export the issue repository.
Something like: git bug export that just exports the whole issue repo as JSON would be great.
Michael Muré (MichaelMure) commented
Alright, a few questions:
I may keep git bug import/git bug export for the bridge operation with external bug trackers, but this feature might be added as a flag of git bug show for example.
andyl (andyl) commented
I need a current snapshot which returns all issues in the repo. Don't need the commit history.
For each issue:
Michael Muré (MichaelMure) commented (edited)
Does it have to be the whole repo in one go or could it be exporting bugs individually and a way to iterate them ?
I'm thinking of doing something similar to git for-each-ref and having a command return a list of ids corresponding to a query, while another command would export a bug state a JSON. That would make the pieces reusable and combinable in various scenario.
andyl (andyl) commented
Does it have to be the whole repo in one go or could it be exporting bugs individually and a way to iterate them ?
Either would be fine.
I'm thinking of doing something similar to git for-each-ref and having a command return a list of ids corresponding to a query, while another command would export a bug state a JSON. That would make the pieces reusable and combinable in various scenario.
That would be great. If you could query on 'last-change-date' then we could avoid a lot of wasted bandwidth.
Michael Muré (MichaelMure) commented (edited)
Just a note, if you care about the bandwidth, you would be better at using git bug pull to get the delta since the last sync as compressed blob and query bugs locally.
Michael Muré (MichaelMure) commented
Closing in favor of https://github.com/MichaelMure/git-bug/issues/392
Michael Muré (MichaelMure) closed the bug