Skip to content

Tool used to query the discussion posts of the condor-info repository

Notifications You must be signed in to change notification settings

casper-network/condor-discussions-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Condor Discussions Indexer

This tool is used to query the discussion posts of the Condor Info repository. It can provide the maintainer's post as well as index the comments and denote which is marked as an answer.

Install

git clone https://github.com/casper-network/condor-discussions-indexer
cd condor-discussions-indexer
npm install

Create a Personal Access Token through GitHub, providing access only to read:discussion.

Create a new .env file:

touch .env

Paste in your new Personal Access Token:

nano .env

Example:

GITHUB_PAT=ghp_sgaSFSjBzf7ltXqWj6Y87ljFRgrOyt0ziIYy

Run

First, create a file usernames.txt in the project root:

touch usernames.txt

and populate it with one user to track per line:

Example:

dylanireland
sczembor
melpadden

The output will only consist of the users listed in the usernames.txt file.

Get a discussion post by providing the discussion number:

npm run get-discussion 19

The script will create a CSV file named discussions_{DISCUSSION_NUMBER}.csv containing each comment as a row of data.

About

Tool used to query the discussion posts of the condor-info repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published