mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Merge pull request #72 from Xuanwo/fix-gitlab-support
Fix gitlab support
This commit is contained in:
commit
07a97e04c5
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ __pycache__/
|
|||
*.pyc
|
||||
*.pyo
|
||||
.travis.pub
|
||||
.pytest_cache/
|
||||
|
|
|
@ -11,8 +11,8 @@ from ..sortversion import sort_version_keys
|
|||
|
||||
logger = structlog.get_logger(logger_name=__name__)
|
||||
|
||||
GITLAB_URL = 'https://%s/api/v3/projects/%s/repository/commits?ref_name=%s'
|
||||
GITLAB_MAX_TAG = 'https://%s/api/v3/projects/%s/repository/tags'
|
||||
GITLAB_URL = 'https://%s/api/v4/projects/%s/repository/commits?ref_name=%s'
|
||||
GITLAB_MAX_TAG = 'https://%s/api/v4/projects/%s/repository/tags'
|
||||
|
||||
async def get_version(name, conf, **kwargs):
|
||||
repo = urllib.parse.quote_plus(conf.get('gitlab'))
|
||||
|
|
Loading…
Add table
Reference in a new issue