Closed scottopell closed 8 years ago
working:
curl -s https://api.github.com/users/scottopell/repos\?type\=sources | jq '{ "max-concurrent-indexers": "1", dbpath: "data", repos: [.[] | {(.name) : { url: .html_url }} ]}'
best guess:
curl -s https://api.github.com/users/scottopell/repos\?type\=sources | jq '{ "max-concurrent-indexers": "1", dbpath: "data", repos: { (.[] | (.name) : { url: .html_url } ) } }'
Ideal output: https://github.com/etsy/Hound/blob/master/config-example.json
{
"max-concurrent-indexers" : 2,
"dbpath" : "data",
"repos" : {
"project1" : {
"url" : "https://www.github.com/YourOrganization/RepoOne.git"
},
"project2" : {
"url" : "https://www.github.com/YourOrganization/RepoOne.git",
}
}
}
Make public repos available via hound code search.
Convert github api output to hound configuration using jq