damus-github-export

Damus issue data exported from github
git clone git://jb55.com/damus-github-export
Log | Files | Refs | README | LICENSE

commit 5e61a792b29063a2018c492b78edc0fe6be7a438
parent fe189269b9bc3290fb39575cad50c788e33a1304
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 17 Mar 2024 12:48:56 +0000

add dump tool

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
A.envrc | 1+
Adump | 18++++++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/.envrc b/.envrc @@ -0,0 +1 @@ +source .privenv diff --git a/dump b/dump @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -eou pipefail + +mkdir -p exported + +projects=(android notedeck nostrdb nostrdb-rs strfry-push-notify notecrumbs api damus) +for project in "${projects[@]}" +do + +echo "exporting '$project' issues and comments..." +node src/index.js -t $GITHUB_TOKEN -o damus-io -r $project -c -e +echo "done exporting 'exported/$project.json'" + +jq . "$project".json > exported/"$project".json +rm "$project".json + +done