From 4fc1968f1fd408dd6cbb0ae410a30d83cde12e06 Mon Sep 17 00:00:00 2001 From: David Douard Date: Mon, 14 Jan 2019 11:49:47 +0100 Subject: [PATCH] Rename the bitbucket and github listers to remove the 'tld' part so that we can easily manage its configuration (especially in the docker environment) by referring to this lister as only 'bitbucket' everywhere (ie. python package name and config file names). --- swh/lister/bitbucket/lister.py | 2 +- swh/lister/github/lister.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swh/lister/bitbucket/lister.py b/swh/lister/bitbucket/lister.py index 6885c8e..3079589 100644 --- a/swh/lister/bitbucket/lister.py +++ b/swh/lister/bitbucket/lister.py @@ -11,7 +11,7 @@ from swh.lister.core.indexing_lister import SWHIndexingHttpLister class BitBucketLister(SWHIndexingHttpLister): PATH_TEMPLATE = '/repositories?after=%s' MODEL = BitBucketModel - LISTER_NAME = 'bitbucket.com' + LISTER_NAME = 'bitbucket' def get_model_from_repo(self, repo): return { diff --git a/swh/lister/github/lister.py b/swh/lister/github/lister.py index f841f60..c0e49c4 100644 --- a/swh/lister/github/lister.py +++ b/swh/lister/github/lister.py @@ -13,7 +13,7 @@ class GitHubLister(SWHIndexingHttpLister): PATH_TEMPLATE = '/repositories?since=%d' MODEL = GitHubModel API_URL_INDEX_RE = re.compile(r'^.*/repositories\?since=(\d+)') - LISTER_NAME = 'github.com' + LISTER_NAME = 'github' def get_model_from_repo(self, repo): return {