github: make GitHubLister's api_baseurl init argument optional

This commit is contained in:
David Douard 2019-08-30 17:25:07 +02:00
parent 8950b0b32d
commit b87cd5d309

View file

@ -12,6 +12,7 @@ from swh.lister.github.models import GitHubModel
class GitHubLister(IndexingHttpLister):
PATH_TEMPLATE = '/repositories?since=%d'
MODEL = GitHubModel
DEFAULT_URL = 'https://api.github.com'
API_URL_INDEX_RE = re.compile(r'^.*/repositories\?since=(\d+)')
LISTER_NAME = 'github'
instance = 'github' # There is only 1 instance of such lister