1.1.0 • Published 3 years ago
@qiwi/repocrawler-gerrit v1.1.0
@qiwi/repocrawler-gerrit
Gerrit crawler
Installation
yarn add @qiwi/repocrawler-gerrit
npm i @qiwi/repocrawler-gerrit
Usage
import { createGerritCrawler } from '@qiwi/repocrawler-gerrit'
const crawler = createGerritCrawler(
{
baseUrl: 'foo',
auth: {
username: 'bar',
password: 'baz'
}
},
{
ratelimit: {
period: 1000,
count: 4
}
}
)
crawler.fetchRepoInfo({ out: 'path/to/save/data', paths: ['src/main/ts/index.ts'], orgs: ['organization1', 'organization2'] })
.then(() => console.log('Done.'))
API
See here